← コア一覧
Arcade-Vamphalf (ppriest)
実基板で確認したと記載 — 1
- README.md:205 MAME's `vamphalf.cpp`, `vamphalf_prot.cpp`, `qs1000.cpp` and `e132xs` are the reference, except for the QS1000's sound levels, which are set from and checked ag
MAMEとの相違点を記載 — 2
- rtl/vh_eeprom93c46.v:109 MAME ignores a CLK edge at the same moment as the CS rise
- README.md:35 Boong-Ga Boong-Ga: the Test menu's items can be used (Start to move, Right to select) (unlike MAME)
MAMEのソースを引用 — 135
- Vamphalf.sv:3 Vamphalf (MAME misc/vamphalf.cpp): the driver's Hyperstone E1 boards; sets in scripts/build_mra.py SETS.
- Vamphalf.sv:46 Rotation: Auto follows the set's MAME rotation from the mod byte (Mission Craft ROT90, Wivern Wings ROT270, the others ROT0).
- Vamphalf.sv:230 MAME "common" P1_P2, active low: per player U D L R, buttons 1-4.
- Vamphalf.sv:234 MAME's default keys (rtl/mame_keys.sv) ORed into the pads.
- Vamphalf.sv:234 F2 is MAME's service switch (SYSTEM bits 3 and 4, IPT_SERVICE, momentary: PORT_SERVICE_NO_TOGGLE), on the pads' Service Mode bit (12); 9 is SERVICE1.
- rtl/e1/e1_cpu.sv:1 Hyperstone E1-16 / E1-32 CPU core, written from MAME's interpreter (src/devices/cpu/e132xs/e132xs.cpp, e132xsop.hxx, e1defs.h; BSD-3-Clause, copyright-holders Pierpaolo Prazzoli and the MAME team).
- rtl/e1/e1_cpu.sv:8 Behaviour follows the interpreter, including its quirks; each is marked "MAME:" where it is not what the ISA manual says.
- rtl/e1/e1_cpu.sv:14 Not implemented: power-down, floating point (the FP opcodes trap to their emulation code as in MAME).
- rtl/e1/e1_cpu.sv:271 MAME adjust_timer_interrupt: fire when TR has reached TCR and the interrupt is enabled
- rtl/e1/e1_cpu.sv:307 MAME: a user-mode write that sets L is a privilege error (checked here, applied at commit)
- rtl/e1/e1_cpu.sv:314 raw write: no side effects (MAME writes global_regs[] directly in several places)
- rtl/e1/e1_cpu.sv:382 MAME: subtracts the halfword count, not bytes
- rtl/e1/e1_cpu.sv:383 MAME: RET does not set P
- rtl/e1/e1_cpu.sv:455 MAME: the interpreter sets ILC from this table once, before the first instruction after reset (get_instruction_length); the long-branch and 0xb0-0xbc entries are what MAME does
- rtl/e1/e1_cpu.sv:886 MAME: RET with PC/SR source does nothing
- rtl/e1/e1_cpu.sv:894 MAME: the loop runs after the exception entry, with the new frame pointer
- rtl/e1/e1_cpu.sv:914 MAME: same-register and PC/SR sources do nothing
- rtl/e1/e1_cpu.sv:979 MAME: tests src_code against SR even for a local source
- rtl/e1/e1_cpu.sv:998 MAME: BCR, TPR, FCR and MCR read as zero
- rtl/e1/e1_cpu.sv:1374 SETADR: the wrap carry goes into bit 9, as MAME's original comment says; MAME's code puts it in bit 0 (MAME_KLUDGES.md, CPU and I/O: mrkickera hangs with it)
- rtl/e1/e1_cpu.sv:1707 MAME's get_lhs is the LOW half, get_rhs the HIGH half.
- rtl/e1/e1_cpu.sv:1815 MAME: PC/SR as the pointer register does nothing
- rtl/e1/e1_cpu.sv:1862 MAME: base update skipped when it is either destination register
- rtl/e1/e1_cpu.sv:1946 MAME: when the pointer's own register-file slot is the target, the update adds to the stored value
- rtl/e1/e1_cpu.sv:1976 MAME: STD.P reads the second source after the pointer update
- rtl/e1/e1_cpu.sv:1978 MAME: updated before the store
- rtl/e1/e1_cpu.sv:1985 MAME: skipped when the pointer is also a destination
- rtl/e1/e1_pipe.sv:1 Hyperstone E1-16 / E1-32 CPU core, pipelined, written from MAME's interpreter (src/devices/cpu/e132xs/e132xs.cpp, e132xsop.hxx, e1defs.h; BSD-3-Clause, copyright-holders Pierpaolo Prazzoli and the MAME team).
- rtl/e1/e1_pipe.sv:21 Behaviour follows the interpreter, including its quirks; each is marked "MAME:" where it is not what the ISA manual says.
- rtl/e1/e1_pipe.sv:25 Not implemented: power-down, floating point (the FP opcodes trap to their emulation code as in MAME).
- rtl/e1/e1_pipe.sv:337 MAME adjust_timer_interrupt: fire when TR has reached TCR and the interrupt is enabled
- rtl/e1/e1_pipe.sv:379 MAME: a user-mode write that sets L is a privilege error (checked here, applied at commit)
- rtl/e1/e1_pipe.sv:386 raw write: no side effects (MAME writes global_regs[] directly in several places)
- rtl/e1/e1_pipe.sv:456 MAME: subtracts the halfword count, not bytes
- rtl/e1/e1_pipe.sv:457 MAME: RET does not set P
- rtl/e1/e1_pipe.sv:530 MAME: the interpreter sets ILC from this table once, before the first instruction after reset (get_instruction_length); the long-branch and 0xb0-0xbc entries are what MAME does
- rtl/e1/e1_pipe.sv:723 D reads what the forwarding does not cover: LDW.S / STW.S (the frame slot through port 4; with them the other e1 subtype-3 N forms), extend (G14, G15 in ST_EXEC); and MOV from TR (e1_tb loads TR with MAME's value once the instruction before
- rtl/e1/e1_pipe.sv:1013 MAME: RET with PC/SR source does nothing
- rtl/e1/e1_pipe.sv:1022 MAME: the loop runs after the exception entry, with the new frame pointer
- rtl/e1/e1_pipe.sv:1042 MAME: same-register and PC/SR sources do nothing
- rtl/e1/e1_pipe.sv:1107 MAME: tests src_code against SR even for a local source
- rtl/e1/e1_pipe.sv:1126 MAME: BCR, TPR, FCR and MCR read as zero
- rtl/e1/e1_pipe.sv:1501 SETADR: the wrap carry goes into bit 9, as MAME's original comment says; MAME's code puts it in bit 0 (MAME_KLUDGES.md, CPU and I/O: mrkickera hangs with it)
- rtl/e1/e1_pipe.sv:1843 MAME's get_lhs is the LOW half, get_rhs the HIGH half.
- rtl/e1/e1_pipe.sv:2052 MAME: PC/SR as the pointer register does nothing
- rtl/e1/e1_pipe.sv:2099 MAME: base update skipped when it is either destination register
- rtl/e1/e1_pipe.sv:2183 MAME: when the pointer's own register-file slot is the target, the update adds to the stored value
- rtl/e1/e1_pipe.sv:2213 MAME: STD.P reads the second source after the pointer update
- rtl/e1/e1_pipe.sv:2215 MAME: updated before the store
- rtl/e1/e1_pipe.sv:2222 MAME: skipped when the pointer is also a destination
- rtl/mame_keys.sv:1 MAME's default keys (src/emu/inpttype.ipp) in hps_io's joystick layout, to OR into joystick_0/1: right, left, down, up at bits 0-3, buttons 1-6 at 4-9, Start, Coin, Pause, Service at the J1 line's own positions (parameters).
- rtl/mame_keys.sv:7 P1 arrows, LCtrl LAlt Space LShift Z X, 1 start, 5 coin P2 R F D G, A S Q W E (MAME gives P2 no sixth key), 2 start, 6 coin F2 service (test) switch, 9 and 0 service coins 1 and 2, P pause alt (solitaire's PORT_CODEs, which replace P1's b
- rtl/mame_keys.sv:27 MAME's Service 1, 2: wire to the board's SERVICE1/2 bits, if any
- rtl/qs1000/vh_qs1000.sv:1 The QS1000 sound board as vamphalf.cpp and qs1000.cpp have it: an 8052 on the 24 MHz oscillator, its program and data in u7, a sound latch from the main CPU, and the wavetable engine reading the sample ROM from SDRAM.
- rtl/qs1000/vh_qs1000.sv:5 8052 program 0x0000-0x7fff u7 (MAME maps only the first 32 KB; above reads 0xff) 8052 data 0x0000-0x00ff RAM 0x0100-0xffff u7[(bank * 0x7f00 + addr) mod 128 KB], bank = P3 bits 2:0 (MAME reloads u7 four times in its 512 KB region, s
- rtl/qs1000/vh_qs1000.sv:22 mix balance: the PCB recording's, or MAME's (vh_qs1000_voice)
- rtl/qs1000/vh_qs1000.sv:40 The 750 kHz tick is every 32nd enable, as MAME's 24 MHz / 32.
- rtl/qs1000/vh_qs1000.sv:100 SD_SAMPLES holds the first 4 MB of MAME's 16 MB region, which is empty above 0x280000: lines past 4 MB read as zero without a request.
- rtl/qs1000/vh_qs1000_voice.sv:1 QS1000 wavetable engine, as MAME models it (devices/sound/qs1000.cpp; scripts/qs1000_model.py is the same model in Python and the bench's reference).
- rtl/qs1000/vh_qs1000_voice.sv:4 MAME runs the engine at 24 MHz / 32 = 750 kHz: per tick every playing voice outputs one sample (8-bit PCM, or OKI ADPCM decoded one nibble per address step), scaled by left/right and voice volume, and advances its address by an 18-bit-fract
- rtl/qs1000/vh_qs1000_voice.sv:6 No envelope, no filter, no looping: a voice stops at its loop end (all as MAME, which marks them TODO).
- rtl/qs1000/vh_qs1000_voice.sv:9 Register writes (0x200-0x211 of the 8052's data space, `wr_*`) and ticks (`tick`) enter one queue in arrival order and are applied in that order, so the output sequence is MAME's even when a key-on waits for its ROM reads; the engine catche
- rtl/qs1000/vh_qs1000_voice.sv:19 mix_valid pulses once per tick with the left and right sums (before MAME's /4096); out_l/out_r are the 16-bit output, the mean of 16 ticks (46.875 kHz), clamped.
- rtl/qs1000/vh_qs1000_voice.sv:30 1: the PCB recording's balance (the core); 0: MAME's (benches).
- rtl/qs1000/vh_qs1000_voice.sv:54 a write arriving with a tick is queued a clock after it: it belongs to the next sample, as MAME applies a write stamped with the current tick before that tick's sample (the 8052 writes once in 28 clocks or more, so the held write is never o
- rtl/qs1000/vh_qs1000_voice.sv:137 ---------------------------------------------------------------- ADPCM (okiadpcm.cpp)
- rtl/qs1000/vh_qs1000_voice.sv:385 MAME: return
- rtl/qs1000/vh_qs1000_voice.sv:392 descriptor (MAME start_voice): start = bytes 0-2, loop end = {byte 0 [7:4], byte 5 [3:0], bytes 6-7}; loop start unused
- rtl/qs1000/vh_qs1000_voice.sv:469 after reset every voice is stopped, as MAME's device_reset
- rtl/qs1000/vh_qs1000_voice.sv:503 MAME: ADPCM x4, PCM x1 (qs1000.cpp:484, :513).
- rtl/qs1000/vh_qs1000_voice.sv:503 bal_pcb, the PCB balance (MAME_KLUDGES.md, Sound): ADPCM x2, PCM x4, PCM 18 dB higher against ADPCM than MAME has it
- rtl/vh_cpumem.sv:4 Program space (vamphalf.cpp common_map / common_32bit_map, e132xs.cpp iram_4k_map): 0x00000000-0x001fffff work RAM, 2 MB SDRAM WRAM_BASE, through the caches 0x40000000-0x4000ffff sprite RAM vh_video spr_* 0x40010000-0x4003ffff
- rtl/vh_eeprom93c46.v:3 93C46 serial EEPROM, 64 x 16 bits (MAME EEPROM_93C46_16BIT), as MAME's eeprom_serial_base_device / eeprom_serial_93cxx_device behave, the reference the game's boot is compared against.
- rtl/vh_eeprom93c46.v:19 Writes and erases are refused while locked; the part powers up locked, as MAME's does.
- rtl/vh_eeprom93c46.v:22 BUSY, as MAME's eeprom_base_device: a WRITE, ERASE, WRITEALL or ERASEALL that goes through holds the part busy for MAME's default times (the driver sets none): 1.75 ms, 1 ms, 8 ms and 8 ms.
- rtl/vh_eeprom93c46.v:24 While busy, DO reads 0 in WAIT_FOR_START (MAME's do_read gives ready there) and a start bit is ignored.
- rtl/vh_eeprom93c46.v:28 The contents are the 128-byte image MAME saves in nvram/<set>/eeprom, big endian words: load_we/load_addr/load_data write it (the .mra's default image, then the saved .nvm), rd_addr/rd_data read it back for the save, and `written` pulses wh
- rtl/vh_eeprom93c46.v:36 MAME's defaults (eeprom.cpp); a driver may set its own
- rtl/vh_eeprom93c46.v:64 The top holds blank from configuration until the ROM download starts, and the set's default image (MAME's "eeprom" region, ioctl index 2) is loaded during the download; the benches hold it through rst and load after.
- rtl/vh_main.sv:3 I/O space (the port is the CPU's I/O address >> 13, e132xs.cpp m_read_io / m_write_io; MAME's I/O maps count in that unit: 16-bit words on the E1-16 (address shift -1), so 0x180 and 0x181 are two ports): Mission Craft (board 0, misncrft_io,
- rtl/vh_main.sv:15 The YM2151 + M6295 boards (family 2 on, all E1-16), per their map in vamphalf.cpp: family 2 vamphalf_io: 0x030 OKI, 0x050/0x051 YM, 0x070 R EEPROM, 0x090 W flip (bit 7), 0x180 R SYSTEM, 0x181 R P1_P2, 0x182 W EEPROM family 3 coolmini_io:
- rtl/vh_main.sv:36 The vertical blank interrupt is INT2, held until the CPU takes it: MAME's irq1_line_hold asserts input line 1, which the E1 numbers INPUT_INT2 (e132xs.h; ISR bit 1, inhibited by FCR bit 29).
- rtl/vh_main.sv:51 active low, as MAME's P1_P2
- rtl/vh_main.sv:52 active low, as MAME's SYSTEM bits 7:0
- rtl/vh_main.sv:218 ---------------------------------------------------------------- I/O decode E1-16: 9-bit word address; E1-32: 13-bit space, dword entries (MAME's map address is io_port)
- rtl/vh_main.sv:262 mrkickera_io (vamphalf.cpp:585-599) and finalgdr_io (:567-583), the same handlers at other ports; the sound chips and the inputs are on bits 15:8 and 31:16
- rtl/vh_main.sv:276 aoh_io (vamphalf.cpp:658-665)
- rtl/vh_main.sv:283 yorijori_io (vamphalf.cpp:683-693): the QS1000's latch on bits 15:8
- rtl/vh_main.sv:295 aoh (vamphalf.cpp:990-1030): P1_P2 player 2 on bits 7:0, player 1 on 23:16; SYSTEM bits 0 COIN2, 1 START2, 4 EEPROM DO (active high), 5 SERVICE1, 16 COIN1, 17 START1, 20 the service mode switch
- rtl/vh_main.sv:299 solitaire (vamphalf.cpp:1102-1131): P1_P2 bits 6:0 columns 1-7 (buttons 1-4, then xbtn 2:0), bits 11:8 Turn Up Card, Select Turned Up Card, Register, Gift (xbtn 6:3); SYSTEM is the common port's
- rtl/vh_main.sv:302 boonggab (vamphalf.cpp:1032-1060): P1_P2 bit 0 START1, bits 2/3 left/right, bits 13:11 the photo sensors' strength code, boonggab_photo_sensors_r's 7 none ..
- rtl/vh_main.sv:312 vamphalf.cpp common(): write and erase take 1 us (MAME_KLUDGES.md); the -all commands keep MAME's 8 ms
- rtl/vh_main.sv:319 Wivern Wings' 0x1800 is a 16-bit handler on the 32-bit bus: MAME calls it once per half, in ascending address order, so a dword write is the high half's value, then the low half's (emumem_heu.cpp sorts the subunits by offset).
- rtl/vh_prot.sv:1 The two boards' FPGA protection, as MAME models it (vamphalf_prot.cpp): a seed written one value per write, committed by 0xffff, looked up in a table of the seeds MAME has seen; an unknown seed gives 0.
- rtl/vh_prot.sv:4 A write at position k clears, for every table entry, a "still matches" flag when the value differs from the entry's value k. At the commit an entry matches when its flag is set and at least as many values were written as the entry is long:
- rtl/vh_prot.sv:11 A read at either gives bit 7-idx of the result as 0xffff or 0 and advances idx (0 from idx 8 on: MAME shifts by a negative count there, which x86 takes modulo 32).
- rtl/vh_prot_wa.sv:1 World Adventure's FPGA protection as MAME models it (worldadv_fpga_prot_device, vamphalf_prot.cpp:318-419): 33 seed bits written one per access (bit 0), restarted by 0xffff; at the 33rd the seed is looked up among the seven MAME has seen, t
- rtl/vh_prot_wa.sv:4 An unknown seed arms with the previous result, as MAME leaves m_retval unchanged.
- rtl/vh_prot_wa.sv:5 MAME's notes put the seeds, in this order, at about 0:30 of play, then every 15 minutes to 2:00.
- rtl/video/vh_video.sv:1 Vamphalf video: one layer of 16x16 8bpp sprites (MAME vamphalf.cpp draw_sprites), drawn per scanline.
- rtl/video/vh_video.sv:23 16'h7fff for the 8 MB graphics ROM (MAME wraps codes by the element count)
- rtl/video/vh_video.sv:61 one clock at the start of line 252, 240 on aoh (MAME's vblank callback)
- rtl/video/vh_video.sv:103 flipped: MAME's visible area moves to 20..255; aoh's 180-degree turn of 16..239 puts it at 32
- README.md:3 A MiSTer FPGA core for the Hyperstone E1-based arcade boards of MAME's `vamphalf` driver (Danbi / F2 System, SemiCom, Sun, Omega System, Logic), built with Quar
- README.md:40 Kicker (SEMICOM-003b PCB) hanging when it rewrites its EEPROM and Yori Jori Kuk Kuk from booting without a CPU fix (PR for MAME too)
- README.md:70 | Name | Year | Manufacturer | Set | Board | MAME trace | Notes |
- README.md:77 | Yori Jori Kuk Kuk | 2002 | Golden Bell Entertainment | `yorijori` | E1-32, QS1000 | 439,730, then the timer interrupt's timing differs | MACHINE_NOT_WORKING i
- README.md:86 | Mr. Kicker (SEMICOM-003b PCB) | 2001 | SemiCom | `mrkickera` | E1-32, YM2151 + M6295 | 1,000,000 of 1,000,000 | Clone of `mrkicker`. MACHINE_NOT_WORKING in MA
- README.md:100 | World Adventure | 1999 | Logic / F2 System | `worldadv` | E1-16, YM2151 + M6295 | 1,000,000 of 1,000,000 | Protection: MAME's seven checks replayed, 0 differ
- README.md:101 | Solitaire (version 2.5) | 1999 | F2 System | `solitaire` | E1-16, YM2151 + M6295 | 869,671, then a YM2151 status read differs (busy in MAME) | Eleven buttons
- README.md:110 | Hyperstone E1-16T / GMS30C2116, E1-32T, 50 MHz | Main CPU | Written here (`rtl/e1/e1_cpu.sv`) from MAME's `e132xs`, multi-cycle, behind a 16 KB I-cache and a
- README.md:112 | QS1000 (8052 + 32-voice wavetable) | Sound, QS1000 boards | 8052: jotego's JT8051, changed (`rtl/qs1000/PROVENANCE.md`); wavetable written here from MAME's `q
- README.md:116 | Protection | Mission Craft, Wivern Wings, World Adventure | MAME's tables (`vamphalf_prot.cpp`): `rtl/vh_prot.sv`, `rtl/vh_prot_wa.sv` |
- README.md:121 Source: MAME's `set_raw` (`vamphalf.cpp:156-161`, `:1150`).
- README.md:150 MAME gives the boards no DIP switches; Service Mode is the test switch, momentary as in MAME (held, not toggled), and has no default pad button.
- README.md:156 Solitaire has eleven buttons, with MAME's names: Column 1-7, Turn Up Card, Select Turned Up Card, Register and Gift.
- README.md:167 **Age Of Heroes shows its sprites one frame later than MAME**: the core takes the sprite list at the start of the vertical blank, before the game rewrites it, b
- README.md:171 The QS1000 follows MAME's model, which has no envelopes, filter or looping.
- README.md:183 [ ] Video frames against MAME for the sets other than Mission Craft and Wivern Wings
- README.md:205 MAME's `vamphalf.cpp`, `vamphalf_prot.cpp`, `qs1000.cpp` and `e132xs` are the reference, except for the QS1000's sound levels, which are set from and checked ag
- README.md:211 CPU: `rtl/e1/e1_cpu.sv` agrees with MAME's interpreter after every instruction (PC, SR, all registers, every bus access), at 0 and 3 bus wait states, on Mission
- README.md:215 Whole board (`sim/sys_tb`, the SDRAM controller and a chip model) against MAME's trace from reset: 1,000,000 of 1,000,000 instructions on `misncrft`, `coolmini`
- README.md:218 `finalgdr` from a saved backup RAM: its first 2,091 backup RAM accesses as MAME's.
- README.md:227 QS1000: the 8052 with the board's memories agrees with MAME's trace for 3,000,000 instructions per set (`sim/qs1000_tb`); the wavetable engine equals a transcri
- README.md:233 The shot peaks at a median -2.9 dB of the recording's RMS (range -5.5 to -1.9 dB over 18 one-minute windows); MAME's balance gives -20.3 dB.
- README.md:234 The core's balance (ADPCM x2, PCM x4: effects 18 dB higher against the music than MAME) gives -2.6 dB with the same measurement (`scripts/qs1000_stems.py`, `doc
- README.md:237 SETADR: MAME puts the frame-wrap carry in bit 0 where its original source says bit 9.
- README.md:237 With MAME's version Mr.
- README.md:238 Kicker (SEMICOM-003b PCB) hangs whenever it rewrites its EEPROM (from blank, or after a damaged save), which is why MAME marks it not working; with the carry in
- README.md:241 MAME's ROM patch for Yori Jori Kuk Kuk works around the same fault: with the carry in bit 9, MAME boots it unpatched.
- README.md:243 YM2151 + M6295 against MAME's audio of `vamphalf`: correlation 0.971, RMS ratio 1.008.
- README.md:244 Protection: Mission Craft's power-on check, 90 of 90 accesses as MAME; World Adventure's seven checks of a 2-hour MAME run, 0 differences.
- README.md:252 The **MAMEdev team**: Angelo Salese, David Haywood, Pierpaolo Prazzoli and Tomasz Slanina (`vamphalf.cpp`), Philip Bennett (`qs1000.cpp`), Pierpaolo Prazzoli (`
- README.md:270 | `debug` | reference captures from MAME used as ground truth (gitignored) |
- README.md:271 | `roms` | your own MAME sets (gitignored, never committed) |
MAMEと一致する、MAMEに合わせた、またはMAMEで確認したと記載 — 1
- README.md:220 Video: the line engine renders 38 of 38 frames per set pixel-identical to a model of MAME's `draw_sprites`, which is pixel-identical to MAME on 342 of 342 captu
MAMEの近似をそのまま採用 — 3
- rtl/vh_main.sv:303 0 strongest as the callback gives it (MAME's active-low field inverts it, which the game takes as a hit at rest: MAME_KLUDGES.md); buttons 1-4 give MAME's 1st, 3rd, 5th and 7th strengths (HACKS.md); bits 10:8 sensors 1-3 idle; SYSTEM bits 7
- rtl/video/vh_video.sv:118 aoh never writes it and rewrites only part of the list, in lines 240..247 in MAME (docs/write_timing_mame.txt); its copy is taken at line 240, before that pass, so a pass the CPU has not finished cannot tear it: a frame later than MAME draw
- README.md:207 Where the core follows MAME on something MAME marks as uncertain, it is listed in `docs/MAME_KLUDGES.md`; the core's own approximations are in `docs/HACKS.md`.