← コア一覧
mysticwarriors (decoryah)
MAMEのドライバにない実基板の資料を引用 — 4
- README.md:76 The model and the option are the Gaiapolis core's (the same chips: Gaiapolis's board, PWB353396A, from Franck78's schematic; Mystic Warriors is among the games
- README.md:83 The 054573, traced from the Gerbers and BOM of Ace's reproduction ([UKVAC](https://www.ukvac.com/forum/threads/konami-054573-and-054574-reproductions.84054/)):
- README.md:118 | Video against MAME 0.289 | **678 of 678 frozen-state corpus frames pixel-identical** to MAME 0.289's snapshots of the same frames: the attract mode (the intro
- README.md:120 | Whole machine | `sim/run_mw.sh`: the real 68000 and Z80 programs from reset through `mw_mem`, the SDRAM controller and a behavioural SDRAM. The game's own pow
MAMEのドライバにもある実基板の情報・測定値を引用 — 2
MAMEのソースを引用 — 66
- MysticWarriors.sv:5 The machine (rtl/) descends from the Violent Storm, Metamorphic Force and Monster Maulers cores for MiSTer, themselves from the Gaiapolis core written for the Analogue Pocket by plasticbugs (https://github.com/plasticbugs/analogue-pocket-ga
- MysticWarriors.sv:176 keyboard: 1-4 start, 5-8 coin, F2 test (MAME's defaults)
- MysticWarriors.sv:203 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 button 1 (shoot), 5 button 2 (jump), 6 button 3 (released), 7 start
- MysticWarriors.sv:210 494000: P1 low byte, P2 high byte; 494002: P3 low byte, P4 high byte (MAME's P1_P2 / P3_P4)
- MysticWarriors.sv:446 Each 8-bit colour goes to a Konami 054573 per channel, a conductance divider whose output rises faster near the top than a linear DAC (MAME) gives, so the mid tones are darker; the K054338's brightness is the current the 054573s run on (thr
- MysticWarriors.sv:448 Board DAC (the default) looks each channel up in that curve (tools/make_dac_table.py; black stays 0, 0xff is 255) and scales it by the frontmost pixel's brightness, which the mixer then leaves out of the colour; MAME passes the mixer's colo
- 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:31 MAME's absolute coordinates of the picture's first pixel ...
- rtl/k054321.sv:6 MAME models the gain as 2^((volume - 40) / 10) with 40 as "normal"; mw_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 modulo the 2,048 entries, with the tile colour taken as `color >> 1 & 0xf` (MAME's mystwarr_tile_callback); a 5-bit pixel spans two colour units, as in MAME
- rtl/k056832_tilemap.sv:12 The callback's per-tile mix code (attribute bits 3:2) becomes the tile's category, and konamigx_state::gx_draw_basic_tilemaps draws each category with the K054338 level of the code (cat & ~V_INMIX_ON) | (V_INMIX & V_INMIX_ON): every tile bl
- rtl/k056832_tilemap.sv:33 Scroll modes: 1 and 3 are xy scroll (MAME's "default" case; this game sets 1 on every layer at reset, Violent Storm uses 3); 0 (line scroll) and 2 (row scroll) read the per-line/per-8-line X scroll from the scroll page in tile RAM exactly a
- rtl/k056832_tilemap.sv:49 raster line of a picture row minus MAME's absolute y of it (16 - 16)
- rtl/k056832_tilemap.sv:104 mystwarr per-layer pixel offsets (mystwarr_v.cpp, VIDEO_START mystwarr: set_layer_offs(0, -2-3, 0), (1, 0-3, 0), (2, 2-3, 0), (3, 3-3, 0))
- rtl/k056832_tilemap.sv:109 Y is supported, carried over from the Metamorphic Force renderer, whose game runs with it set (its data are stored "software Y-flipped"); Violent Storm never sets it (regs[0] = 0x0044 in every state dumped), and neither, as far as has been
- rtl/k056832_tilemap.sv:117 MAME's absolute y of the row being rendered (cliprect.min_y is 15 here)
- rtl/k056832_tilemap.sv:252 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/mw_core.sv:22 MAME's scanline numbers are this raster's lines: the driver's set_size(512, 256) holds only until the game programs the K053252 at boot, when k053252_device::res_change sets the screen to the chip's 384 x 264 raster with the picture at (24,
- rtl/mw_core.sv:24 Measured in MAME 0.289 (tools/lua/input_reads.lua): the IRQ4 vector is fetched 3 us into the frame, the IRQ2 vector 15,363 us (line 240), the frame update 15,960 us.
- rtl/mw_core.sv:25 So: IRQ2 at line 240, pixel 0 (vblank start); IRQ4 at line 0, pixel 0; MAME's screen update, which takes the sprite list, at vblank end: set_vblank_time(600 us) after line 240, 3,600 pixel periods = line 249, pixel 144
- rtl/mw_core.sv:29 where the sprite list is taken (MAME's update)
- rtl/mw_core.sv:148 the instants of the frame, from the raster (see the parameters above for how MAME's lines map to this one)
- rtl/mw_core.sv:268 The sprite table the renderers work from is a copy of the sprite RAM taken at (OBJ_BUILD_LINE, OBJ_BUILD_HPOS), 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 li
- rtl/mw_main.sv:4 Address decode follows docs/hardware.md section 3 (MAME's mystwarr_map in mystwarr.cpp).
- rtl/mw_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 the Gaiapolis, Monster Maulers and Violent Storm cores were calibrated with
- rtl/mw_main.sv:58 the scanline interrupts (mystwarr_interrupt): one pulse each at the instant MAME's scanline 240 (IRQ2) and 0 (IRQ4) fall in this raster; each raised only while the IRQ control byte's bit 0 is set, and held until acknowledged (HOLD_LINE)
- rtl/mw_main.sv:248 MAME's test is (word offset & 0x78) == 0, i.e. A[7:4] all clear -- four bits, not three.
- rtl/mw_main.sv:277 The bank is regs[0x1a] | regs[0x1b] << 16, taken modulo the 640 banks of MAME's 5 MB region; only the first 256 hold ROM (2.5 MB of five-byte groups), the rest read 0.
- rtl/mw_main.sv:354 mystwarr_interrupt: nothing is raised while the IRQ control byte's bit 0 is clear; a raised level is held until the kernel's interrupt-acknowledge cycle -- a *read* with FC = 111, the level on A3:1, which TG68K performs even with IPL_autove
- rtl/mw_main.sv:426 the u16s just above them are the fifth plane area, as MAME's flat region has it
- rtl/mw_mixer.sv:17 * Tile blending (konamigx_state::gx_draw_basic_tilemaps, MAME after 0.289).
- rtl/mw_mixer.sv:77 Off (MAME): each colour is scaled as above and `bri` is not used.
- rtl/mw_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/mw_video.sv:17 MAME's frame is this raster once the game has programmed the K053252 (k053252_device::res_change sets the screen to the chip's 384 x 264; the driver's set_size(512, 256) holds only until then), so its scanline numbers are these lines (mw_co
- rtl/mw_video.sv:31 (A frame rendered by the machine against MAME's of the same state was the check in the Monster Maulers core, whose module this is.
- README.md:11 **Status.** Second release (20261029, the Colours option: the board's video DAC curve): **tested on a real MiSTer by the repository owner, and it works** (as wa
- README.md:45 | 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, with the
- README.md:67 | tile blending | MAME 0.289's "last mix code" | none | **per tile** (current MAME's rule) |
- README.md:75 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; the board's vi
- README.md:101 MAME scales each colour by it before mixing; on the board it is the DAC current, the same factor on the finished colour after the curve, so curve(c) x bri, whic
- README.md:109 Switch MiSTer's own gamma correction (Video processing) off with Board DAC, or the curve is applied twice; with Colours on MAME a MiSTer gamma file can still be
- README.md:119 | Whole machine against MAME 0.289 | The system bench's chip state at raster line 249, pixel 144 (the instant of MAME's frame update) equals MAME's at the same
- README.md:120 | Whole machine | `sim/run_mw.sh`: the real 68000 and Z80 programs from reset through `mw_mem`, the SDRAM controller and a behavioural SDRAM. The game's own pow
- README.md:128 In play, the whole machine stays frame-exact with MAME only until stage 1 starts: the game's five-frame unpacking of the stage takes the core's 68000 a frame le
- README.md:132 The frame-for-frame comparison with MAME 0.289 (above) covers what the scripted inputs and the stage byte reach: one player with the default ninja, the bosses o
- README.md:135 The whole machine (the real 68000 and Z80 programs) has been simulated only into the start of stage 1; later play is covered by the frozen-state comparison of t
- README.md:137 The tile blending follows the current MAME (each tile with its own mix code), not 0.289's; the additive mode likewise (`docs/hardware.md`, section 4).
- README.md:141 SHDPRISEL's shadow conditions 1 and 2 (the "topmost screen" comparison the current MAME added) are not modelled; the game does not use them (SHDPRISEL is 0x3F i
- README.md:143 Sprite codes beyond the 4 MB sprite ROM (0x8000 and up) read as blank: `mw_mem` maps the sprite row address without wrapping it, where MAME takes the code modul
- README.md:157 | `sim/` | Verilator benches: the whole machine (`run_mw.sh`), the frozen-state frame bench (`run_frames.sh`: the video pipeline from a MAME state, against MAME
- README.md:180 MAME 0.289 is run by `tools/mame_run.ps1` with the probes of `tools/lua/` (the paths of MAME, its ROMs and a work directory are its parameters); `tools/make_cor
- README.md:191 **plasticbugs** -- the Gaiapolis core for the Analogue Pocket, the machine this one descends from (`rtl/`, the SDRAM controller `target/mister/sdram_ctrl.sv` an
- README.md:199 **The MAME team** -- `mystwarr.cpp` and the Konami device files: the reference for everything here.
MAMEと一致する、MAMEに合わせた、またはMAMEで確認したと記載 — 5
- rtl/k056832_tilemap.sv:19 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.
- README.md:90 Against a recording of a Mystic Warriors PCB (a 1CC run; its attract mode, 100 frames matched one for one with MAME 0.289's frames of the Japanese set, 32 colou
- README.md:118 | Video against MAME 0.289 | **678 of 678 frozen-state corpus frames pixel-identical** to MAME 0.289's snapshots of the same frames: the attract mode (the intro
- README.md:122 | Colours | `sim/emu/run_emu.sh` with the fast load into the intro (250 frames): Colours on MAME gives the picture of the build before the option byte for byte,
- README.md:130 The pictures of every state are identical to MAME's (the corpus above); it is the game's timeline that drifts.
MAMEドライバと同じ文言を含む(出典の明記なし) — 11
- rtl/k053247_draw.sv:37 k055673 set_config(K055673_LAYOUT_GX, -48, -24) for mystwarr — 共通の文言: konami/mystwarr.cpp:990
- rtl/k053247_objlist.sv:7 order = pri<<24 | zcode<<16 | offs<<5 | drawmode<<4 | shadow — 共通の文言: konami/konamigx_v.cpp:618
- rtl/k056832_tilemap.sv:13 konamigx_state::gx_draw_basic_tilemaps draws each category with the K054338 level of the code — 共通の文言: konami/konamigx_v.cpp:782
- rtl/k056832_tilemap.sv:14 (cat & ~V_INMIX_ON) | (V_INMIX & V_INMIX_ON): every tile blends with its own code (MAME after — 共通の文言: konami/konamigx_v.cpp:803
- rtl/k056832_tilemap.sv:105 set_layer_offs(0, -2-3, 0), (1, 0-3, 0), (2, 2-3, 0), (3, 3-3, 0)) — 共通の文言: konami/mystwarr_v.cpp:211
- rtl/k056832_tilemap.sv:366 mystwarr_tile_callback: priority = attr >> 2 & 3 — 共通の文言: konami/mystwarr_v.cpp:62
- rtl/mw_core.sv:230 mystwarr_state::screen_update_mystwarr: K055555_get_palette_index(4) << 5 (only its low bit survives the — 共通の文言: konami/mystwarr_v.cpp:273
- rtl/mw_main.sv:277 K056832 readback (k056832_device::mw_rom_word_r). The bank is regs[0x1a] | regs[0x1b] << 16, taken — 共通の文言: konami/k054156_k054157_k056832.cpp:818
- rtl/mw_mixer.sv:17 * Tile blending (konamigx_state::gx_draw_basic_tilemaps, MAME after 0.289). A tile's — 共通の文言: konami/konamigx_v.cpp:782
- rtl/mw_mixer.sv:19 draws each category with the code (cat & ~V_INMIX_ON) | (V_INMIX & V_INMIX_ON), — 共通の文言: konami/k055555.cpp:65
- rtl/mw_mixer.sv:20 so every tile blends with its own code, and with V_INMIX_ON all set every tile — 共通の文言: konami/konamigx_v.cpp:803