← コア一覧
metamorphicforce (king1720)
MAMEのドライバにもある実基板の情報・測定値を引用 — 1
MAMEのソースを引用 — 80
- MetamorphicForce.sv:5 The machine (rtl/) descends from the Monster Maulers core for MiSTer, itself from the Gaiapolis core written for the Analogue Pocket by plasticbugs (https://github.com/plasticbugs/analogue-pocket-gaiapolis): Gaiapolis, Monster Maulers and M
- MetamorphicForce.sv:178 keyboard: 1-4 start, 5-8 coin, F2 test (MAME's defaults)
- MetamorphicForce.sv:204 a player's byte as the board's input words carry it, active low (MAME's KONAMI16_LSB / MSB): bit0 left, 1 right, 2 up, 3 down, 4-6 buttons 1-3, 7 start
- MetamorphicForce.sv:450 Colours: the board's video DAC (a Konami 054573 per channel) is not linear: its output rises faster near the top, so mid tones come out darker than MAME's straight 8-bit palette.
- MetamorphicForce.sv:451 Board DAC looks each channel up in the DAC's curve (tools/make_dac_table.py: black stays 0, 0xEF, the brightest the game writes, is 255); MAME passes the palette through.
- rtl/er5911.sv:2 ER5911 serial EEPROM, 128 x 8, as MAME's eeprom_serial_er5911_device models it (eepromser.cpp): a start bit, a 2-bit opcode and a 9-bit address field (only the low 7 bits select a cell) on rising CLK while CS is high; READ shifts data out M
- rtl/er5911.sv:8 the Pocket repository's tools/eeprom_replay.py checks this protocol against MAME's pin traffic.
- rtl/er5911.sv:98 a 1 on DI at a rising clock is the start bit (edges that coincide with CS rising are ignored, as MAME does)
- rtl/k053247_draw.sv:29 MAME's absolute coordinates of the picture's first pixel ...
- rtl/k053250_lvc.sv:4 Semantics are MAME's k053250.cpp (k053250_device::draw / pdraw_scanline32 / dma), which is the spec the benches compare with (sim/tb_lvc.cpp carries a transcription of it).
- rtl/k053250_lvc.sv:25 One pixel is evaluated as (MAME: src_fx = HALF - flip + k * (zoom << 10), idx = src_fx >> 16, folded to 6-bit fractions): clip (source clipping on): k = pos' + scroll, drawn while k >= 0 and (k + 1) * zoom <= (clipmask + 1) << 6 (zoom 0:
- rtl/k053250_lvc.sv:41 MAME's absolute x of the first visible pixel (cliprect.min_x)
- rtl/k054321.sv:6 MAME models the gain as 2^((volume - 40) / 10) with 40 as "normal"; mf_core applies it.
- rtl/k054539.sv:3 Modelled on MAME's k054539.cpp.
- rtl/k054539.sv:16 Rendering follows sound_stream_update: per 48 kHz sample, each keyed channel steps its 16.16 position by the 24-bit delta, fetching 8-bit PCM, 16-bit PCM or 4-bit DPCM from the ROM (looping at the end marker if reg 0x201 bit 0 is set, else
- rtl/k054539.sv:25 While 0x22f bit 0 is set (MAME's UPDATE_AT_KEYON, its default) a write to a channel's position registers is held in a latch and only copied into the registers by that channel's key-on.
- rtl/k054539.sv:28 Volumes are Q2.14 tables from tools/gen_k054539_tables.py; the per-channel gain MAME applies at reset for this game (chip 1 channels 4-7 x2.0, the "voice" channels) comes in through GAIN_Q14.
- rtl/k054539.sv:78 UPDATE_AT_KEYON (MAME's default for every game, k054539.cpp): while the chip is enabled (0x22f bit 0) a write to a channel's position registers (0x0c-0x0e of its 0x20 block) is held in a latch and the register keeps its value; the key-on wr
- rtl/k054539.sv:260 Every position step fetches a sample, as MAME does, so a pitch above 1.0 costs one ROM read per step; DPCM depends on that.
- rtl/k054539.sv:309 the Q2.14 fraction bits of the product are dropped, as MAME does
- rtl/k054539.sv:353 16-bit samples are read as two bytes at cur_pos and cur_pos + 1, whatever the alignment (MAME: read_byte(pos) | read_byte(pos + 1) << 8); an odd start address is common in this game's music
- rtl/k054539.sv:430 a 16-bit sample steps two bytes (MAME: pdelta <<= 1)
- rtl/k054539.sv:475 MAME adds the ring position twice: rdelta = (delay + pos) & 0x3fff, then the entry is rbase[(rdelta + pos) & 0x1fff].
- rtl/k054539.sv:483 the ring holds int16; MAME truncates the scaled sample the same way
- rtl/k056832_tilemap.sv:7 A pen is the palette entry itself, ((layer colour base | tile colour) * 16) + pixel, with the tile colour taken as `color >> 2 & 0xf` (MAME's viostorm_tile_callback).
- rtl/k056832_tilemap.sv:32 The Hall of Fame screen uses row scroll on two layers that are two pages high, with the global Y flip set (its title slides in with a different offset for every strip of eight rows): those frames are in the checked set, and the entry index
- rtl/k056832_tilemap.sv:48 raster line of a picture row minus MAME's absolute y of it (17 - 15)
- rtl/k056832_tilemap.sv:102 metamrph per-layer pixel offsets (mystwarr_v.cpp, VIDEO_START metamrph: set_layer_offs(0, -2+4, 0), (1, 0+4, 0), (2, 2+4, 0), (3, 3+4, 0))
- rtl/k056832_tilemap.sv:107 Y is supported (this game runs with it set: its data are stored "software Y-flipped"): MAME flips every page's tilemap, so a page's rows come out mirrored, its scroll is taken around the visible area's centre and the K056832's register 0x1e
- rtl/k056832_tilemap.sv:113 MAME's absolute y of the row being rendered (cliprect.min_y is 15 here)
- rtl/k056832_tilemap.sv:239 whatever dy is: MAME's override for the "software flipped" games) row scroll (mode 2), unflipped: e = (dy + y) & ~7, one entry for eight lines row scroll, Y flipped: e = 248 - 8 * ((y + (dy & 7)) >> 3) with y the absolute row a
- rtl/k056832_tilemap.sv:244 A layer more than one page high (rowspan 1 or 3: two or four pages, MAME's loop over the page rows) takes its entry from the layer row instead: unflipped it is the same e = dy + y (the entries run on through the pages, 512 of them in the la
- rtl/k056832_tilemap.sv:320 xy scroll (3, and the reserved 1: MAME's `default`)
- rtl/mf_core.sv:21 raster line at which the sprite list and the K053250's buffer are taken: MAME's update (vpos 253) is 2 lines earlier than this raster
- rtl/mf_core.sv:22 MAME line 24: the picture here sits 2 lines lower
- rtl/mf_core.sv:23 MAME line 248
- rtl/mf_core.sv:140 the instants of the frame, from the raster: MAME's scantimer fires at pixel 0 of a line
- rtl/mf_core.sv:148 the vblank's start: MAME's frame number counts here
- rtl/mf_core.sv:269 The sprite table the renderers work from is a copy of the sprite RAM taken at OBJ_BUILD_LINE, as MAME's list is taken at its update: the game writes its table during the visible frame as well, and a renderer reading the live RAM line by lin
- rtl/mf_main.sv:4 Address decode follows docs/hardware.md section 3 (MAME's metamrph_map in mystwarr.cpp).
- rtl/mf_main.sv:5 The CPU is TG68K.C, paced by a token bucket the way the S.T.U.N. Runner core paces its 68010 -- STEP_COST_BUS/STEP_COST_INT/STEP_GAIN set the step rate; the values are calibrated against MAME's frame timing.
- rtl/mf_main.sv:183 --------------------------------------------------------- decode (MAME's metamrph_map)
- rtl/mf_main.sv:291 The bank is the low byte of regs[0x1a] | regs[0x1b] << 16 (MAME takes it modulo the region's 640 banks; only the first 256 hold ROM).
- rtl/mf_main.sv:309 MAME's eeprom_r: a low-byte access reads IN1 (its bits 1:0 the EEPROM's DO and READY), otherwise 0
- rtl/mf_main.sv:371 IRQ6 at the first scanline (MAME line 24), IRQ5 at line 248 if the K053246 enables it: each is asserted and held until the kernel's interrupt-acknowledge cycle (MAME's HOLD_LINE)
- rtl/mf_main.sv:398 a byte of the K053250's ROM at 0x80000 * regs[6] + 0x800 * regs[7] + offset / 2 (regs[6] != 0 is beyond the ROM: MAME reads past its region there; this reads 0)
- rtl/mf_sound.sv:199 MAME routes each chip's output 0 to the right speaker and output 1 to the left ("stereo channels are inverted", mystwarr.cpp), which a comparison of this core's audio with MAME's confirms (the pan balance of the two correlates -0.76 without
- rtl/mf_video.sv:14 MAME's raster agrees (set_raw(6 MHz, 384, ..., 264)); its picture sits at y 15 of the frame there (a driver choice, K053252 offsets (24, 15)) where this one has it at 17 as the chip's registers place it, so MAME's line numbers are these min
- rtl/mf_video.sv:28 (A frame rendered by the machine against MAME's of the same state is the check: sim/tb_mm.cpp with DUMPSTATE, see tools/cmp_state.py.
- README.md:5 The machine descends from the Monster Maulers core for MiSTer, which descends from the Gaiapolis core that **plasticbugs** wrote for the Analogue Pocket ([analo
- README.md:26 Everything else below is simulation and the Quartus tool flow, against MAME 0.289 (the reference for every comparison; MAME marks these sets `MACHINE_IMPERFECT_
- README.md:29 **Video, frame for frame.** `sim/tb_frame*`: a frozen MAME machine state (the Lua probes in `tools/lua/` dump the video chips' registers and RAMs) is rendered t
- README.md:34 For 13 of them MAME was run again with each layer set enabled alone: the tile layers and the K053250 alone are pixel-identical in every one, and the differences
- README.md:38 A fourth set, added with 20261014, is MAME's **Hall of Fame** screen (65 frames, every 15th from 8,940 of the attract loop): **60 pixel-identical**, the other 5
- README.md:41 **K053250.** `sim/tb_lvc*`: the plane's renderer against a transcription of MAME's `k053250_device::draw` on random line RAM, registers, ROM and frame timing, i
- README.md:47 **ROM path.** `tools/make_mra.py`, `tools/mf_rom.py` and `tools/mra_build.py` rebuild MAME's memory regions from the zip and `tools/check_regions.py` compares t
- README.md:55 The only differences are two registers that the bench reads at another instant of the frame than MAME's dump.
- README.md:56 Over 5.5 s of the attract mode's sound the two channels follow MAME's within 1 dB per half second and 0.1 dB overall, envelopes correlating at 0.90.
- README.md:126 Fixed in `rtl/k056832_tilemap.sv`: for a layer two or four pages high the entry follows MAME's loop over the page rows (`ay - 1 - y` flipped, `ay + y` unflipped
- README.md:128 Checked against a transcription of that loop (`tools/ls_model.py`: 7.4 million rows over 1 / 2 / 4 pages, flipped or not, line and row scroll, scrolls -600..599
- README.md:134 A 120,000-frame scripted play-through and 40,000 frames of the attract mode were logged in MAME for the K056832's layer configurations (`tools/lua/cfg_log.lua`)
- README.md:141 **20261019** -- MRAs only (the core is `metamorphicforce_20261014.rbf` as it was): the game has two buttons, Attack and Jump, as the cabinet does, and the MRAs
- README.md:148 A real board's mid tones are darker than MAME's straight palette; the table is the Gaiapolis core's model of the Konami 054573 DAC, and a recording of a Metamor
- README.md:150 Checked in the whole top level's bench (`sim/emu/run_emu.sh` with the default and with `COLOURS_MAME=1`, and `sim/emu/dac_check.py`): every pixel of the Board D
- README.md:189 | Colours | Board DAC, MAME | Board DAC (the default) puts R, G and B through the curve of the board's video DAC: darker mid tones, as on a real board. MAME is
- README.md:211 **Colours.** A real board's picture has darker mid tones than MAME's. MAME shows the palette as straight 8-bit values, which is what the colour chip computes; t
- README.md:219 The check against this game's board: a recording of a Metamorphic Force PCB (Ver AAA, through an OSSC) against MAME's frames of the same screens, flat areas onl
- README.md:221 On the select-player screen the DAC model fits with rms 2.3 levels of 255 where a straight line (MAME) is 17.6 off and the best plain gamma curve 3.3; over the
- README.md:232 The brightness path (K054338 registers 11 and 12, selected per layer by the K055555): on the board it sets the current the DACs run on, and the mixer here scale
- README.md:242 With Colours on MAME a MiSTer gamma file can still be used.
- README.md:253 The game is horizontal (ROT0) and has two buttons, Attack and Jump (the arcade cabinet has two; MAME defines a third that the game does not use).
- README.md:263 | picture | 288 x 224, MAME visarea y 17 | the same raster; MAME's visarea starts at line 15 (the benches account for the 2 lines) |
- README.md:269 | interrupts | IRQ5 at vblank | IRQ6 at MAME line 24, IRQ5 at line 248 (if the K053246's sprite IRQ is enabled) |
- README.md:276 Known differences from MAME
- README.md:278 Both are cases where MAME's software mixer does something one pixel at a time that the chips' pipeline cannot; the frame bench's single-layer renders (below) sh
- README.md:282 **Overlapping translucent sprites.** MAME blends sprite by sprite in turn (each blended onto what is there, including an earlier translucent sprite); this core'
- README.md:287 **A pixel shadowed twice.** The renderer keeps one shadow flag per pixel; MAME's mixer darkens a pixel once for every shadow sprite that covers it.
- README.md:288 4 frames of the corpus have such pixels (28 to 543 of them, each one shadow step darker in MAME).
- README.md:291 **The 68000's pace.** The kernel is TG68K.C paced by a token bucket calibrated against MAME's frame timing; state dumps of the video chips' registers and RAMs a
- README.md:329 **plasticbugs** -- the Gaiapolis core for the Analogue Pocket, the machine this one is built on (`rtl/`, the SDRAM controller `target/mister/sdram_ctrl.sv` and
MAMEと一致する、MAMEに合わせた、またはMAMEで確認したと記載 — 6
- rtl/k056832_tilemap.sv:16 Semantics follow the Pocket repository's tools/render_model.py, which is pixel-exact against MAME across the frozen-state corpus; see docs/hardware.md section 6.
- rtl/k056832_tilemap.sv:251 Checked against a transcription of MAME's loop (tools/ls_model.py): every row of 256, for 1 / 2 / 4 pages, flipped or not, line or row scroll, scrolls -600..599, each drawn by exactly one page, 0 differences.
- README.md:32 **101 of the 115 are pixel-identical.** The other 14 differ only where MAME's software mixer does what the chips' pipeline cannot (see "Known differences"): 10
- README.md:51 With the power-on tests and two splash delays cut (the same patch applied to MAME's run), the machine reaches the game's main loop within 8 frames and at frames
- README.md:58 **The power-on tests.** The same bench with no shortcut, 830 frames from reset: the game's own RAM tests (work RAM, K053250 RAM, sprite RAM and the 12 KB of pla
- README.md:143 Checked in MAME: the same scripted play-through twice, with Button 3 never pressed and with it held half the time, differs only in the game's own copy of the in
MAMEドライバと同じ文言を含む(出典の明記なし) — 9
- rtl/k053247_draw.sv:35 k055673 set_config(K055673_LAYOUT_RNG, -51, -24) for metamrph — 共通の文言: konami/mystwarr.cpp:1039
- rtl/k053247_objlist.sv:7 order = pri<<24 | zcode<<16 | offs<<5 | drawmode<<4 | shadow — 共通の文言: konami/konamigx_v.cpp:618
- rtl/k053247_objlist.sv:25 metamrph_sprite_callback: priority_mask = (color & 0xe0) >> 2, and a shadow code of 3 sets — 共通の文言: konami/mystwarr_v.cpp:97
- rtl/k056832_tilemap.sv:12 separate blend level only through the K055555's V_INMIX_ON, which the game sets — 共通の文言: konami/mystwarr_v.cpp:61
- rtl/k056832_tilemap.sv:103 set_layer_offs(0, -2+4, 0), (1, 0+4, 0), (2, 2+4, 0), (3, 3+4, 0)) — 共通の文言: konami/mystwarr_v.cpp:191
- rtl/mf_core.sv:232 mystwarr_state::screen_update_metamrph: K055555_get_palette_index(4) << 4 — 共通の文言: konami/mystwarr_v.cpp:288
- rtl/mf_main.sv:291 K056832 readback (k056832_device::mw_rom_word_r). The bank is the low byte — 共通の文言: konami/k054156_k054157_k056832.cpp:818
- rtl/mf_mixer.sv:129 drawn without any alpha (gx_draw_basic_extended_tilemaps_1 computes one but k053250_device::draw takes — 共通の文言: konami/konamigx.h:157
- rtl/mf_sound.sv:159 MACHINE_RESET metamrph: "boost voice (chip 0 channel 4-7) and soften other channels": chip 1 channels — 共通の文言: konami/mystwarr.cpp:922