← コア一覧
SunsoftGA9201 (YoAaronD)
実基板での測定値を記載 — 4
- rtl/shangha3_board.sv:543 Mixers: Shanghai III levels measured against the PCB (shangha3_mixer.sv); heberpop/blocken FM + OKI (ga9201_mixer.sv)
- rtl/shangha3_mixer.sv:3 Balance measured against Aaron's PCB recording (v0.1.6, see CHANGELOG): the OKI sits about 8-12 dB higher relative to the YM2149 than the first guess (oki*2 + ay*12), so the ratio is now 3x that (oki*8 + ay*16), which also brings the overal
- rtl/shangha3_video_timing.sv:5 Measured on Aaron's PCB with an OSSC (20261024): "262-p, 15.62 kHz, 59.63 Hz".
- rtl/shangha3_video_timing.sv:33 PCB-measured (MAME: 263)
MAMEのソースを引用 — 41
- SunsoftGA9201.sv:162 SYSTEM (MAME shangha3): 0 coin1, 1 coin2, 2 service1 (service credit), 3 start1, 4 start2, 5 service-mode switch (OSD "Service Mode").
- rtl/ga9201_mixer.sv:3 Default = MAME's balance and level, measured: MAME's heberpop -wavwrite output fitted as a*(fm_left+fm_right) + b*oki, with the core's own jt12 and jt6295 replayed from MAME's register log (scripts/snd2_replay.sh, scripts/mix_fit.py) over 3
- rtl/ga9201_mixer.sv:7 jt6295's output is the 12-bit ADPCM sum; MAME scales the OKI to 16 bits (x16).
- rtl/ga9201_mixer.sv:8 MAME's peak there is 31358 of 32767, so the level is kept as MAME's. snd = 0.297 * (fm_left + fm_right) + 15.8 * oki (No PCB measurement yet for these games, unlike Shanghai III.) The OSD "OKI (drums/FX)" option moves the OKI in 3 dB steps
- rtl/ga9201_mixer.sv:34 MAME balance and level
- rtl/ga9201_sound.sv:4 Behavioural reference: MAME src/mame/sunelectronics/shangha3.cpp (heberpop_state::sound_program_map / sound_io_map, heberpop() machine config).
- rtl/ga9201_sound.sv:6 No MAME code is included here.
- rtl/ga9201_sound.sv:8 Z80 6 MHz (48/8) program 0000-F7FF (ROM, through the SDRAM cache), RAM F800-FFFF I/O (A7..A0) 00-03 YM3438, 80 OKI M6295, C0 sound latch (read) heberpop also writes 40/41 (unknown; ignored, as MAME) INT sound
- rtl/ga9201_sound.sv:13 The game runs in interrupt mode 0; the board puts FF (RST 38h) on the bus during the acknowledge, as MAME.
- rtl/ga9201_sound.sv:120 I/O decode (A7..A0, as MAME's global_mask(0xff))
- rtl/shangha3_blitter.sv:3 Behavior follows MAME shangha3.cpp's description of the chip and is checked pixel-for-pixel against our software model (sim/refmodel/blitter.c).
- rtl/shangha3_blitter.sv:119 MAME's blitter draws instantly at "go", so a queued run must see RAM exactly as it was at its go: while a run is queued, the board holds every CPU write to the list and tilemap areas until that run's own snapshot has copied them (scan_from
- rtl/shangha3_blitter.sv:174 e_code wrapped to the ROM's tile count, as MAME's code % total
- rtl/shangha3_blitter.sv:197 draw from the snapshots; work RAM is not touched The board holds CPU writes to RAM the blitter has yet to read, which gives the same result as MAME's instantaneous blitter.
- rtl/shangha3_blitter.sv:232 Tile number from a 16-bit code, wrapped to the graphics ROM size as MAME's gfx element does (code % total): 16,384 tiles (2 MB) on Shanghai III, 28,672 (3.5 MB, 0x7000) on heberpop/blocken.
- rtl/shangha3_blitter.sv:259 MAME darkens a second time through its generic shadow bank, which the PCB does not (Aaron's cursor videos, 20261024).
- rtl/shangha3_board.sv:7 Behavioural reference: MAME src/mame/sunelectronics/shangha3.cpp (BSD-3-Clause, Nicola Salmoria).
- rtl/shangha3_board.sv:8 No MAME code is included here.
- rtl/shangha3_board.sv:232 Address decode (MAME shangha3_state / heberpop_state / blocken_state ::program_map)
- rtl/shangha3_board.sv:368 Protection at 20004E: MAME returns this sequence on successive reads
- rtl/shangha3_board.sv:589 On the PCB the title, mode select and zodiac screens run at 30 updates per second and gameplay and the demo at 60 (Aaron's videos; the mode-select timeout takes 14.9 s on the PCB and 7.4 s in MAME).
- rtl/shangha3_board.sv:611 On heberpop the same model halves the attract mode's speed against MAME (its screens are full of large sprites); without a PCB to check, those games run like MAME (no hold).
- rtl/shangha3_board.sv:622 MAME's blitter is instantaneous.
- rtl/shangha3_video.sv:12 Each frame shows what was drawn before vblank, which puts each blitter result one frame later than MAME (measured with scripts/mame_latency.py; see docs/DEVELOPMENT.md).
- rtl/shangha3_video.sv:24 Entries with bit 11 set use the darkened shadow bank (x0.6, as in MAME).
- rtl/shangha3_video.sv:73 Board reset (including every ROM download) clears the draw buffer, as MAME starts with an empty bitmap.
- rtl/shangha3_video.sv:296 5-bit colour -> 8 bits; shadowed pixels x0.6 (as in MAME).
- rtl/shangha3_video_timing.sv:6 MAME uses 263 lines (59.41 Hz) and notes "refresh rate is unknown"; the core used that until v0.1.8 (OSSC: "263-p, 59.40 Hz").
- rtl/shangha3_video_timing.sv:9 HSYNC / VSYNC positions are NOT known (MAME doesn't need them).
- rtl/shangha3_video_timing.sv:33 PCB-measured (MAME: 263)
- README.md:23 Use MAME 0.289 sets (`mame -verifyroms shangha3j heberpop blocken`).
- README.md:33 Copy the ROM zip(s) to `/media/fat/games/mame/`.
- README.md:47 (MAME shows solid flashes there.)
- README.md:54 The game runs at MAME's speed.
- README.md:58 MAME marks Blocken's graphics as imperfect: some zoomed graphics are drawn wrongly, and the graphics chip's rotation isn't emulated.
- README.md:58 MAME is the only reference available, so the core draws Blocken as MAME does, including those faults.
- README.md:79 For Hebereke no Popoon and Blocken it is MAME's balance (no PCB recording yet).
- README.md:144 | Players (MAME's name; probably lives) | **1**, 2, 3, 4 |
- README.md:151 See [docs/DEVELOPMENT.md](docs/DEVELOPMENT.md): Quartus build, simulations, the MAME comparison tools, and how the core was verified.
- README.md:162 **The MAME team:** the `shangha3.cpp` driver by Nicola Salmoria (Shanghai III, Hebereke no Popoon, Blocken), used as a behavioral reference.
- README.md:162 No MAME code is in the core.
MAMEと一致する、MAMEに合わせた、またはMAMEで確認したと記載 — 4
- README.md:11 Shanghai III was checked against MAME and against an original Shanghai III PCB: boot, picture, gameplay and sound balance.
- README.md:11 Hebereke no Popoon and Blocken were checked against MAME (no PCB yet).
- README.md:13 Hebereke no Popoon and Blocken are in development: Hebereke no Popoon runs in simulation and matches MAME; neither has run on hardware yet.
- README.md:99 Their balance and level match MAME's output (measured: within 0.3 dB in loudness).