← All cores
Arcade-SSV (zakk4223)
Cites hardware documentation that MAME's driver does not — 1
Notes where it differs from MAME — 1
Cites MAME source — 227
- rtl/audio/ssv_es5506_regs.sv:18 A watchdog reset is a device reset in MAME and must not erase the voice register banks.
- rtl/audio/ssv_es5506_regs.sv:236 Every CR consumer (engine snapshot, host readback) sees the masks applied combinationally; the masks are flushed into the MLAB at the voice's next snapshot when the port is free, and a host CR write to the voice clears them (the host's late
- rtl/audio/ssv_es5506_regs.sv:296 Its CR mask merge and flush must be voided for that pass -- the next snapshot redoes the work from the stored (new) value, which is MAME's serialization.
- rtl/audio/ssv_es5506_regs.sv:307 The common factor is the snapshot colliding with a host read-steal of the shared MLAB read port (real hardware reads the ES5506 ~840x/s; MAME's map shows almost none, so no sim reproduced it) or with a same-voice commit still settling into
- rtl/audio/ssv_es5506_regs.sv:315 This serializes host access against the snapshot exactly as MAME's ordering does, and it also closes the same-edge MLAB read-during-write capture window and the stale-_h fresh-bit gap by construction.
- rtl/audio/ssv_es5506_regs.sv:627 MAME's ES5506 compute_tables() initializes every voice before the first device reset: stopped CR, half-scale L/R volume, and zero for the rest.
- rtl/audio/ssv_es5506_regs.sv:854 MAME's es5506_device::device_reset() only restores these device-level timing controls.
- rtl/audio/ssv_es5506_regs.sv:874 The next snapshot redoes them from the stored (new) CR -- MAME's serialized write-then-sample order.
- rtl/audio/ssv_es5506_regs.sv:901 (The eng_wr_cr exclusion: on an exact same-cycle collision the engine transition merges and survives the host write -- a one-clock-stale CR bit is recoverable, a dropped BLE->LEI transition is a permanent loop.) Host CR write supersedes any
- rtl/audio/ssv_es5506_regs.sv:992 MAME's read+ack is atomic and cannot lose it; the OTTO spec ties the release to the vector the host actually observed.
- rtl/audio/ssv_es5506_voice.sv:3 2.3 + MAME es5506.cpp behavioral cross-check.
- rtl/audio/ssv_es5506_voice.sv:258 The accumulator's fractional field is 11 bits (it also sets frequency resolution) but only the top 9 feed interpolation; 9 is correct here and MAME's 11-bit fraction is the deviation, not this.
- rtl/audio/ssv_es5506_voice.sv:405 Dyna Gear populates bank 2 only, which is what the old hardwired `!= 2'b10` encoded; other SSV titles populate 0/1 and alias 2/3 onto them via MAME ROM_COPY, so the valid set is per game.
- rtl/audio/ssv_es5506_voice.sv:431 MAME's get_integer_addr(accum, 1) adds the +1 to the accumulator's integer field BEFORE the 21-bit mask, so at the last word of a bank the tap wraps to word 0 of the SAME bank.
- rtl/audio/ssv_es5506_voice.sv:437 Wrap the integer field first, as MAME does.
- rtl/cpu/upd96050/ssv_st010_prg_fetch.sv:27 ce_dsp = 2.5 MHz (MAME's 10 MHz / 4-clock instruction)
- rtl/cpu/upd96050/ssv_st010_prg_fetch.sv:55 MAME's dspprg is 32-bit BIG-endian and the fetch is read_dword(pc) >> 8: prg_data = { rom[4pc+0], rom[4pc+1], rom[4pc+2] } MSB first Instruction 2m of a line uses bytes 0,1,2; instruction 2m+1 uses 4,5,6.
- rtl/cpu/upd96050/upd96050.sv:5 Used on the Seta SSV protection daughterboard as the "ST010" in Drift Out '94, Storm Blade and Twin Eagle II (ssv.cpp:2468 / :2642 / :2755).
- rtl/cpu/upd96050/upd96050.sv:10 Bit-for-bit against MAME's portable core (originally byuu's): D:\Arcade\AI\MAMESOURCE\mame\src\devices\cpu\upd7725\upd7725.cpp Every decode field, ALU op, flag rule and register side effect below cites the line range it was taken from.
- rtl/cpu/upd96050/upd96050.sv:13 Where MAME's behaviour is questionable (see the DP MODIFY note) this core reproduces MAME rather than guessing, because MAME is the only reference the testbench can be checked against.
- rtl/cpu/upd96050/upd96050.sv:37 Recommended backing, which needs no cache RAM at all: MAME's dspprg region is 32 bits per instruction (4 bytes, 3 used), so four consecutive instructions are exactly one aligned 16-byte SDRAM read on a 128-bit port of the kind ssv_core alre
- rtl/cpu/upd96050/upd96050.sv:48 The real part executes one instruction every 4 clocks (MAME execute_min_cycles/execute_max_cycles both return 4, upd7725.cpp:254-268), so 10 MHz -> 2.5 MIPS.
- rtl/cpu/upd96050/upd96050.sv:52 For MAME parity on SSV (clk_sys = 48.324 MHz) use the same fractional accumulator style as ce_cpu with increment 3391: 3391/65536 * 48.324 MHz = 2.5003 MHz.
- rtl/cpu/upd96050/upd96050.sv:55 MAME's own comment on the 10 MHz figure is "// TODO: correct?", so this is not a precise number to begin with.
- rtl/cpu/upd96050/upd96050.sv:60 SI is never written and SIACK/SOACK are hardwired 0, exactly as in MAME -- so JNSIAK and JNSOAK always branch and JSIAK/JSOAK never do.
- rtl/cpu/upd96050/upd96050.sv:75 /RESET: MAME device_reset retention
- rtl/cpu/upd96050/upd96050.sv:78 MAME fetches opcode = read_dword(pc) >> 8 from a 32-bit big-endian space (upd7725.cpp:315), i.e. for ROM byte offset 4*pc the opcode is {b0, b1, b2} and b3 is discarded.
- rtl/cpu/upd96050/upd96050.sv:89 MAME configures a 12-bit word space (upd7725.cpp:54) of which ssv.cpp:346 maps only 0x000-0x7ff, so reads at addr[11] return 0 there.
- rtl/cpu/upd96050/upd96050.sv:97 Host data port -- the $480000 byte on SSV (necdsp data_r / data_w, upd7725.cpp:578-631).
- rtl/cpu/upd96050/upd96050.sv:98 host_dp_dout is the value a read would return *now* and carries no side effect, mirroring MAME's side_effects_disabled() path; assert host_dp_rd for exactly one clk to apply the SR side effects of a real read.
- rtl/cpu/upd96050/upd96050.sv:107 status_r (upd7725.cpp:572) = SR[15:8].
- rtl/cpu/upd96050/upd96050.sv:107 Not mapped anywhere in ssv.cpp, exposed because it costs nothing and other uPD96050 boards do map it.
- rtl/cpu/upd96050/upd96050.sv:169 Flag word packing follows MAME's Flag::operator unsigned() (upd7725.h:78): bit5 s1, bit4 s0, bit3 c, bit2 z, bit1 ov1, bit0 ov0.
- rtl/cpu/upd96050/upd96050.sv:174 Bits 6:2 have no storage in MAME's Status struct, so a read of SR always returns 0 there and a write to them is discarded.
- rtl/cpu/upd96050/upd96050.sv:181 Serial handshake acks: MAME clears them at reset and never sets them.
- rtl/cpu/upd96050/upd96050.sv:200 upd7725.cpp:142-146
- rtl/cpu/upd96050/upd96050.sv:219 Opcode fields (upd7725.cpp:350-358, :482-484, :543-545)
- rtl/cpu/upd96050/upd96050.sv:296 OP / RT source select -> IDB (upd7725.cpp:360-377)
- rtl/cpu/upd96050/upd96050.sv:320 ALU (upd7725.cpp:379-458).
- rtl/cpu/upd96050/upd96050.sv:356 if (!flag.ov1) flag.s1 = flag.s0; -- flag.ov1 is still the OLD ov1 at this point, because MAME's earlier clears are overwritten by "flag = regs.flaga" (upd7725.cpp:384-399).
- rtl/cpu/upd96050/upd96050.sv:396 LD stage (upd7725.cpp:543-570).
- rtl/cpu/upd96050/upd96050.sv:396 Reached directly by an LD instruction and as the move-destination stage of OP/RT, so a destination write overrides the ALU result for the same accumulator -- MAME's order.
- rtl/cpu/upd96050/upd96050.sv:429 DP / RP modify (upd7725.cpp:462-472).
- rtl/cpu/upd96050/upd96050.sv:431 NOTE, deliberately faithful: MAME masks with 0xf0, which discards DP bits 15:8.
- rtl/cpu/upd96050/upd96050.sv:435 It is reproduced rather than "fixed" because MAME is the only oracle the tests can be written against, and MAME is what the three ST010 titles are known to run under.
- rtl/cpu/upd96050/upd96050.sv:454 JP (upd7725.cpp:481-541).
- rtl/cpu/upd96050/upd96050.sv:502 unrecognised branch: fall through, as in MAME
- rtl/cpu/upd96050/upd96050.sv:507 RT (upd7725.cpp:475-479): the OP body has already run above.
- rtl/cpu/upd96050/upd96050.sv:517 Multiplier (upd7725.cpp:341-343) -- runs after EVERY instruction, using the values of K and L as they stand at the end of it.
- rtl/cpu/upd96050/upd96050.sv:532 Walk port A once on every cold/download reset so a newly selected ST010 descriptor gets MAME's clean device-start data RAM.
- rtl/cpu/upd96050/upd96050.sv:570 dsp_w duplicates the byte into both halves and lets the mask pick one (ssv.cpp:359-362), which is exactly a byte enable here.
- rtl/cpu/upd96050/upd96050.sv:582 Host data port (upd7725.cpp:578-631)
- rtl/cpu/upd96050/upd96050.sv:615 MAME device_start establishes a completely clean device.
- rtl/cpu/upd96050/upd96050.sv:648 MAME necdsp_device::device_reset(): /RESET clears PC, SR, A/B flags and interrupt/serial handshake state.
- rtl/cpu/upd96050/upd96050.sv:681 Interrupt entry (upd7725.cpp:318-331): a synthesised NOP, then LCALL 0x100.
- rtl/cpu/upd96050/upd96050.sv:753 INT pin (upd7725.cpp:275-289): rising edge, and only when EI is set.
- rtl/cpu/upd96050/upd96050_st010.sv:8 ssv.cpp:410-411 (drifto94_map) and :769-770 (twineag2_map):
- rtl/cpu/upd96050/upd96050_st010.sv:13 and ssv.cpp:350-362:
- rtl/cpu/upd96050/upd96050_st010.sv:26 It is the offset MAME hands an 8-bit handler installed with umask16 on a 16-bit space, and that is one step per bus WORD, not per byte.
- rtl/cpu/upd96050/upd96050_st010.sv:28 From memory_units_descriptor (src/emu/emumem_mud.cpp) with Width=1, AddrShift=0, access_width=0, unitmask=0x00ff:
- rtl/cpu/upd96050/upd96050_st010.sv:32 active_count_log = 0 base_shift = Width - access_width - active_count_log = 1 shift = base_shift + access_width + AddrShift = 1 handler offset = cpu_addr >> 1 (emumem_heu.cpp:86)
- rtl/cpu/upd96050/upd96050_st010.sv:51 (The Phase 9 spec's "2048 usable bytes" is right; its "word n/2" is only right if n is read as MAME's offset, not as a CPU address.)
- rtl/cpu/upd96050/upd96050_st010.sv:55 The SSV main CPU is a NEC V60 (ssv.cpp:112, :2433) whose program space is ENDIANNESS_LITTLE (v60.cpp:98), so D7:0 is the EVEN byte -- cpu_be[0] in this core, the same lane the ES5506 host port uses.
- rtl/cpu/upd96050/upd96050_st010.sv:58 $480000 resolves to the same lane: with a one-byte range MAME reduces the default 0xffff unitmask to emask = make_bitmask((addrend-addrbase+1) << 3) = 0x00ff.
- rtl/cpu/upd96050/upd96050_st010.sv:71 watchdog /RESET: MAME-retained state
- rtl/cpu/upd96050/upd96050_st010.sv:72 On SSV, drive from a fractional accumulator with increment 3391 off clk_sys (48.324 MHz) for the 2.5 MIPS MAME models at its (self-flagged "TODO: correct?") 10 MHz.
- rtl/cpu/upd96050/upd96050_st010.sv:93 MAME builds this from st010.bin bytes 0x00000-0x0ffff as a 32-bit big-endian region (ssv.cpp ROM_COPY into "dspprg") and fetches read_dword(pc) >> 8, so: prg_data = { rom[4*pc+0], rom[4*pc+1], rom[4*pc+2] } and rom[4*pc+3] is never used.
- rtl/cpu/upd96050/upd96050_st010.sv:107 st010.bin bytes 0x10000-0x10fff, 16-bit big-endian ("dspdata", ssv.cpp ROM_COPY), 2048 words.
- rtl/cpu/upd96050/upd96050_st010.sv:183 MAME's address_space unmapped read value defaults to 0, so a word read that straddles the mapped low byte returns 0 in the high byte.
- rtl/cpu/upd96050/upd96050_st010.sv:215 ssv.cpp:346 maps only 0x000-0x7ff of the DSP's 12-bit data space, so the upper half reads as MAME's unmapped value, 0.
- rtl/cpu/v60/s32_v60.sv:5 Behavioral contract is MAME's v60 core (BSD-3-Clause, Farfetch'd / R. Belmont): opcode dispatch per optable.hxx, addressing modes per am1-3.hxx, exception entry per v60.cpp.
- rtl/cpu/v60/s32_v60.sv:13 the fill/stop variants (MOVC*/CMPC*/SCHC*/SKPC*), TASI, bit ops, GETPSW/UPDPSW, TRAP/TRAPFL/BRK/BRKV, CHLVL, task save/load, privileged register moves (LDPR/STPR), and MAME-defined decimal/bit- string/bit-field groups.
- rtl/cpu/v60/s32_v60.sv:20 - Not implemented (reserved-instruction exception, logged in sim): the un-dispatched 0x5C/0x5F sub-opcodes (MAME UNHANDLED).
- rtl/cpu/v60/s32_v60.sv:21 MMU/TLB effects are absent like MAME, but CLRTLB still decodes its complete operand.
- rtl/cpu/v60/s32_v60.sv:33 V60/V70 reset PC (MAME m_start_pc; audit V60-21)
- rtl/cpu/v60/s32_v60.sv:141 Keeping the definition here, instead of inferring it hierarchically in a bench, makes MAME/RTL sampling semantics reviewable.
- rtl/cpu/v60/s32_v60.sv:171 PSW fields (MAME bit layout: Z=b0,S=b1,OV=b2,CY=b3,IE=b18,EL=b25:24,IS=b28)
- rtl/cpu/v60/s32_v60.sv:730 C-style truncating divide-by-8 of a signed bit offset (MAME bamoffset/8)
- rtl/cpu/v60/s32_v60.sv:846 stack switch on IS change, or EL change while IS=0 (MAME v60WritePSW)
- rtl/cpu/v60/s32_v60.sv:991 MAME ReadAMAddress uses moddim=3 for qword lvalues (MOVD and the MULX/DIVX destination).
- rtl/cpu/v60/s32_v60.sv:1208 primary dispatch (per MAME optable.hxx)
- rtl/cpu/v60/s32_v60.sv:1213 BRK — MAME skips this opcode (A4)
- rtl/cpu/v60/s32_v60.sv:1233 0x6B/0x7B are holes in MAME's authoritative primary dispatch table, not branch-condition encodings.
- rtl/cpu/v60/s32_v60.sv:1310 MAME opDBcc: reg ALWAYS decrements; branch iff cond true and decremented reg != 0.
- rtl/cpu/v60/s32_v60.sv:1390 JMP/JSR/TASI: MAME sets moddim=0 — the dim scales INDEXED modes' index register, and ga2's jump tables (3-byte BR entries, `JMP [PC+d](rN)`) rely on the unscaled index (found by real-ROM boot: dim=2 quadrupled the index and jumped mid-table
- rtl/cpu/v60/s32_v60.sv:1416 RETI adj (halfword, MAME moddim=1)
- rtl/cpu/v60/s32_v60.sv:1440 MAME F7a/F7b decode with dim 0 (0x58 byte) / 1 (0x5A half): autoincrement/indexed AMs step and scale by the element size, and F7b immediates size accordingly — not dword.
- rtl/cpu/v60/s32_v60.sv:1460 MAME implements ADDDC/SUBDC/SUBRDC/CVTDPZ/CVTDZP (radm timer); remaining subops are reserved there too.
- rtl/cpu/v60/s32_v60.sv:1538 Unhandled sub-opcodes still take the reserved-instruction vector exactly as MAME's op5C/op5F UNHANDLED entries fatalerror.
- rtl/cpu/v60/s32_v60.sv:1579 RSR (A9): pop PC ONLY (MAME opRSR: PC=[SP]; SP+=4)
- rtl/cpu/v60/s32_v60.sv:1584 MAME/NEC floating-exception test: enabled TKCW causes are intersected with the PSW floating-status field.
- rtl/cpu/v60/s32_v60.sv:1613 F12: plan operands per instflags (MAME F12DecodeOperands)
- rtl/cpu/v60/s32_v60.sv:1622 MOVEA takes op1 as an ADDRESS (MAME ReadAMAddress) — decoding it as a value loaded SP with a byte read instead of the EA and sent ga2's boot stub off a cliff (found by real-ROM boot)
- rtl/cpu/v60/s32_v60.sv:1926 Immediate modes carry no address: the "address requested" path must still hand back the value (MAME LDPR-quirk equivalent), and op2 immediates pre-fill op2val so S_OP2_LD never dereferences a stale ea_addr (found by real-ROM boot: ga2's `LD
- rtl/cpu/v60/s32_v60.sv:2055 MAME opMULX/opMULUX leave OV unchanged.
- rtl/cpu/v60/s32_v60.sv:2088 MAME opDIVX/opDIVUX set only S/Z and leave OV unchanged; do not clear it.
- rtl/cpu/v60/s32_v60.sv:2120 MAME opROTC*: the carry bit enters the active operand's LSB; bits above a byte/halfword operand are not part of the ring.
- rtl/cpu/v60/s32_v60.sv:2447 pops (8) + frame-destroy operand (MAME: SP += amout), then the PSW write may bank-switch SP — order matters: adjust THEN switch.
- rtl/cpu/v60/s32_v60.sv:2489 push highest set register first (MAME pushes from r31 down?
- rtl/cpu/v60/s32_v60.sv:2537 TASI sets flags as SUBB(old, 0xFF, 0) before writing 0xFF (MAME opTASI).
- rtl/cpu/v60/s32_v60.sv:2574 R27 (dst) / R28 (src) updated at completion (MAME MOVSTR).
- rtl/cpu/v60/s32_v60.sv:2583 Element-size dim for both (MAME dim 0 byte / 1 half — see decode).
- rtl/cpu/v60/s32_v60.sv:2600 V60-15: down-direction search (subop[0]=1, MAME opSEARCHD*).
- rtl/cpu/v60/s32_v60.sv:2602 The down form scans the range in descending order from MAME's start index: byte reads op1+len1 down to op1 (len1+1 reads; the first read is one past the buffer, exactly as opSEARCHDB does), half reads op1+(len1-1)*2 down to op1 (len1 reads)
- rtl/cpu/v60/s32_v60.sv:2627 MOVCD/MOVCFD (down copy) transfers the ascending range base..base+min-1 in descending element order (MAME opMOVSTRD): start at the TOP of that range and decrement, instead of walking physically below the base as the old code did (audit R20
- rtl/cpu/v60/s32_v60.sv:2636 CMPCS (0x02): stop mode starts with CY=1, cleared when a fill (R26) byte is met in the compare (MAME opCMPSTR bStop).
- rtl/cpu/v60/s32_v60.sv:2639 CMPCF (0x01): fill the SHORTER operand's tail with R26 BEFORE the compare (MAME bFill); MOVC fill happens AFTER the copy.
- rtl/cpu/v60/s32_v60.sv:2668 Down exhaustion: the scan ran off the bottom to i=-1 (MAME opSEARCHD*), so Z=0, R27=0xFFFFFFFF, and str_src has already reached op1-step.
- rtl/cpu/v60/s32_v60.sv:2683 CMPC exhausted the common prefix (all min elements equal): R28=len1+min*step, R27=len2+min*step, and S/Z from the length compare (MAME opCMPSTR tail).
- rtl/cpu/v60/s32_v60.sv:2718 Z follows MAME's post-loop test i==len1: up never breaks at i==len1 (Z=0), down does so only at its one-past-the-top byte read (str_cnt==len1+1).
- rtl/cpu/v60/s32_v60.sv:2756 CMPC (MAME opCMPSTR): compare source(op1) vs dest(op2).
- rtl/cpu/v60/s32_v60.sv:3013 BAM: bit addressing modes for the 0x5B/0x5D groups (MAME BAMTable1/2 implemented subset — everything MAME fatalerrors on traps here too).
- rtl/cpu/v60/s32_v60.sv:3405 CMPC finishes through S_STR_RD's exhaustion branch so the MAME length-tail flags/registers apply; MOVC finalizes R28/R27 from the operand bases and the copied count via movc_finish (which also scales by the element size and launches the MOV
- rtl/cpu/v60/s32_v60.sv:3504 exception / interrupt entry (MAME v60_do_irq): switch to interrupt context, push old PSW, push PC, PC = vector Microcode response time for an accepted interrupt.
- rtl/cpu/v60/s32_v60.sv:3752 per-opcode dim helpers (operand sizes per MAME op12 handlers)
- rtl/cpu/v60/s32_v60.sv:3754 F12 ops whose FIRST operand is an effective address, not a value (MAME F12DecodeFirstOperand(ReadAMAddress, ...)): MOVEA and IN
- rtl/cpu/v60/s32_v60.sv:3770 MAME opMOVD: both operands are qword lvalues.
- rtl/cpu/v60/s32_v60.sv:3778 NOTE: ROTH (8b) / ROTCH (9b) must NOT appear here — their op1 is the rotate COUNT, a byte (MAME ReadAM dim 0); listing them in the half group made `ROT.H #imm8, r6` decode one byte long and holo's EEPROM write loop entered mid-instruction (
- rtl/cpu/v60/s32_v60.sv:3795 MAME F12DecodeOperands passes moddim=3 for MOVD and for the MULX/MULUX/DIVX/DIVUX destination lvalue.
- rtl/cpu/v60/s32_v60.sv:3823 These read op2 as a VALUE (MAME ReadAM), so a memory operand must be loaded into op2val before exec; otherwise the exec fell back to the effective address / a stale op2val (audit R20 V60-18).
- rtl/cpu/v60/s32_v60.sv:3900 MOVC completion (MAME opMOVSTRU*/opMOVSTRD*): publish R28/R27 for the final element index `idx`, and — for the fill variants (MOVCFU/MOVCFD) with the source shorter than the destination — kick off the R26 tail-fill phase.
- rtl/cpu/v60/s32_v60.sv:3923 MAME pads the destination tail elements [idx, lenop2) with R26; the down form uses op2+dest+(lenop2-j-1) for bytes and op2+(lenop2-j-1)*2 for halves.
- rtl/cpu/v60/s32_v60.sv:3988 MAME MOV sets no flags?
- rtl/cpu/v60/s32_v60.sv:4109 A zero count must clear CY (MAME); the old code left it unchanged (audit R20 V60-7).
- rtl/cpu/v60/s32_v60.sv:4136 MAME defines CY from the post-rotate wrap bit: LSB after a positive (left) rotate, MSB after a negative (right) rotate.
- rtl/cpu/v60/s32_v60.sv:4147 MAME clears CY for a zero count; nonzero counts retain the final shifted-out bit, so only bypass the iterative state for zero.
- rtl/cpu/v60/s32_v60.sv:4212 MAME divide-by-zero: destination unchanged and no trap, but Z/S are still set from the (unchanged) destination = the dividend, and OV is cleared (audit R20 V60-8); the old code left flags stale.
- rtl/cpu/v60/s32_v60.sv:4245 MAME sets OV and leaves the destination unchanged (audit R20 V60-8); the old code always cleared OV and wrote the wrapped quotient.
- rtl/cpu/v60/s32_v60.sv:4271 MAME: no zero-divide trap
- rtl/cpu/v60/s32_v60.sv:4352 MAME opCALL: SP-=4; [SP]=AP; AP=op2; SP-=4; [SP]=retPC; PC=op1.
- rtl/cpu/v60/s32_v60.sv:4389 MAME opTRAP: the operand's HIGH nibble is a Bcc-encoded condition (cond 0xB never traps); only trap when it evaluates true, else fall through.
- rtl/cpu/v60/s32_v60.sv:4639 SHA left-shift overflow (MAME SHIFTLEFT_OV op12.hxx): OV is set when the top `count` bits of the width-sized value are not all equal to the sign bit — i.e. a bit different from the sign is shifted out through the top.
- rtl/cpu/v60/s32_v60.sv:4641 MAME masks exactly `count` bits (((1<<count)-1) << (bitsize-count)); using count+1 here spuriously set OV (e.g. SHA.B #1,0x40 gave OV=1 vs MAME OV=0), misbranching a following signed Bcc (S^OV).
- rtl/cpu/v60/s32_v60.sv:4652 count > width: MAME's macro is UB here (bitsize-count<0); any nonzero value overflowed
- rtl/cpu/v60/s32_v60.sv:4714 This retains MAME's unusual signed rule: every non-zero negative product has OV set because its sign-extended bit pattern has non-zero bits above the operand width.
- rtl/cpu/v60/s32_v60.sv:4724 MAME opMUL/opMULU: OV = (product >> width) != 0 on the product's unsigned bit pattern (signed product for MUL, unsigned for MULU).
- rtl/cpu/v60/s32_v60.sv:4726 For byte/half MAME shifts the 32-bit value; for word, the 64-bit one.
- rtl/cpu/v60/s32_v60.sv:4743 MAME clears OV for REM/REMU (audit R20 V60-8)
- rtl/cpu/v60/s32_v60.sv:4751 Behavioral contract is MAME op2.hxx/op5.hxx, which use host `float` — round-to-nearest-even, with gradual underflow (subnormals) and IEEE special values.
- rtl/cpu/v60/s32_v60.sv:4767 NEGFS/ABSFS are NOT: MAME does ReadAMAddress + store only (no load) — they operate on op1 and must not read a possibly read-sensitive destination.
- rtl/cpu/v60/s32_v60.sv:4942 Deliberate divergence from the pinned MAME for |n| > 30: MAME computes `appf * / (1 << n)` with the host's shift-count masking (&31, and 1 << 31 = INT_MIN there), so e.g. SCLFS(31) flips the sign and SCLFS(32) is a no-op on x86.
- rtl/cpu/v60/s32_v60.sv:4999 Pinned MAME converts (uint32_t)(int64_t)val on its x86 host: NaN and out-of-int64-range saturate the hardware convert to INT64_MIN, whose low 32 bits are 0.
- rtl/cpu/v60/s32_v60.sv:5022 MAME stores the LOW 32 BITS of the int64 truncation, not a clamp: well-defined in C for e in [31,62]; e >= 63 saturates the x86 convert to INT64_MIN (low 32 = 0).
- rtl/cpu/v60/s32_v60.sv:5033 (MAME: (_S && val>=0) || (!_S && val<=-1); |val| >= 1 here).
- rtl/cpu/v60/s32_v60.sv:5148 MAME materializes the subtraction: same-signed infinities give inf-inf = NaN, so they compare Z=0/S=0 like unordered operands.
- rtl/io/ssv_93c46_16.sv:2 Organization is fixed to the 16-bit mode selected by EEPROM_93C46_16BIT in MAME.
- rtl/io/ssv_adc0809.sv:2 The pinned MAME 0.289 driver supplies a 1 MHz clock but marks that clock unknown.
- rtl/io/ssv_mahjong_matrix.sv:4 Addressing and permutations follow pinned MAME 0.289 ssv.cpp.
- rtl/io/ssv_upd4701.sv:1 SPDX-License-Identifier: GPL-3.0-or-later MAME uPD4701-compatible SSV profile.
- rtl/io/ssv_upd7001.sv:1 SPDX-License-Identifier: GPL-3.0-or-later Deterministic MAME-profile serial ADC.
- rtl/mem/ssv_hs_extram.sv:5 MAME maps SSV main RAM at $000000-$00ffff (block RAM in this core) and gives twineag2/ultrax a second RAM at $010000-$03ffff (ssv.cpp: "More RAM"), which this core keeps in SDRAM at SDR_CPU_RAM_BASE.
- rtl/mem/ssv_nvram_bridge.sv:78 Each descriptor load first writes MAME's DEFAULT_ALL_0 image across exactly 2 KiB or 64 KiB.
- rtl/mem/ssv_rom_loader.sv:348 Do not replace this with a shift/mask: 24 MiB and 12 MiB MAME regions have 6 MiB and 3 MiB quarters respectively.
- rtl/mem/ssv_rom_loader.sv:417 MAME's region is ROM_REGION16_BE, so the word at index i is { rom[2i], rom[2i+1] } -- the OPPOSITE order from the little-endian pairing the SDRAM path uses, which is why wd is {byte_lo, ioctl_dout} and not {ioctl_dout, byte_lo}.
- rtl/mem/ssv_rom_loader.sv:427 MRA sample streams reproduce MAME's ROM_REGION16_BE byte image.
- rtl/ssv_core.sv:8 MAME's unconfigured WATCHDOG_TIMER defaults to exactly three seconds.
- rtl/ssv_core.sv:26 cold_rst excludes watchdog and is used where MAME/device hardware retains state across /RESET.
- rtl/ssv_core.sv:101 MAME maps SSV main RAM at $000000-$00ffff (ssv.cpp: map(0x000000, 0x00ffff).ram().share(m_mainram)), which is this core's work_ram, and its second port was tied off.
- rtl/ssv_core.sv:288 Everything above that is tile/local sprite payload the games stream continuously during active display (measured in MAME 0.289 on vasara: offsets 0x08000-0x1806e written on every raster line 0..239 and 250..261).
- rtl/ssv_core.sv:326 MAME maps the program ROM as `ssv_map(map, rom)` with rom..0xffffff, and in every SSV set rom == 0x1000000 - program_size: $f00000 for a 1 MB program (dynagear), $e00000 for 2 MB (cairblad, twineag2, ultrax), $c00000 for 4 MB (drifto94, stm
- rtl/ssv_core.sv:331 0x1000000 does not fit the 24-bit CPU address, and it does not need to: in 24-bit arithmetic 0x1000000 - size is exactly -size, which yields 0xF00000 / 0xE00000 / 0xC00000 for 1 / 2 / 4 MB -- MAME's values.
- rtl/ssv_core.sv:341 drifto94_map (ssv.cpp:410-411) and twineag2_map (:769-770): map(0x480000, 0x480000).rw(m_dsp, upd96050_device::data_r, data_w); map(0x482000, 0x482fff).rw(dsp_r, dsp_w).umask16(0x00ff); The window translation (offset = A[11:1], word = A[11:
- rtl/ssv_core.sv:458 Scroll/CRTC registers are shared board RAM in MAME and machine_reset() does not clear them.
- rtl/ssv_core.sv:789 Measured in MAME 0.289 (vasara, write taps on 0x100000-0x13ffff bucketed by beam line, 240 frames): the global-list writes land on raster lines 240-247 only, at offsets 0x00002-0x000be.
- rtl/ssv_core.sv:910 MAME init_ssv() starts with video enabled; bit 7 of the lockout register can subsequently blank it.
- rtl/ssv_core.sv:918 MAME derives a live top/left clip from the CRTC visible-area registers at $1c0062/$64 and $1c006a/$6c.
- rtl/ssv_core.sv:949 MAME's screen_update() first bitmap.fill(0), then returns early when the video-enable latch is clear.
- rtl/ssv_core.sv:1001 MAME's drifto94_unknown_r() returns machine().rand().
- rtl/ssv_core.sv:1010 The V60 holds m_req throughout the core's wait/ack sequence, so advancing on a held request changes the value multiple times for one MAME handler transaction.
- rtl/ssv_core.sv:1039 MAME: map(rom, 0xffffff).rom().region("maincpu", 0), where rom is the descriptor-sized base ($f00000/$e00000/$c00000).
- rtl/ssv_core.sv:1267 MAME instantiates UPD96050 at 10 MHz with its own `// TODO: correct?`, so the clock is not authoritative.
- rtl/ssv_core.sv:1335 MAME never wires the uPD96050's INT on SSV, and the DSP's P0/P1 outputs go nowhere on the daughterboard.
- rtl/ssv_core.sv:1369 m_be[0] mirrors sound_host_we: MAME maps the ES5506 with umask16(0x00ff), so an odd-address byte read never reaches the device.
- rtl/ssv_core.sv:1370 Without the gate the read still stole the register file's port and, for host_reg 0xE, cleared IRQV where MAME would not.
- rtl/ssv_core.sv:1529 MAME's WATCHDOG_TIMER has no SSV-specific override, so watchdog.cpp uses its default attotime::from_seconds(3).
- rtl/ssv_core.sv:1535 mode 2 write-kick vasara, vasara2 (reset16_w) mode 0 no device drifto94, stmblade MAME's WATCHDOG_TIMER first appears at ssv.cpp:2513, after the drifto94 and stmblade machine configs, so those two have no watchdog
- rtl/ssv_core.sv:1565 MAME ssv_state::lockout_w / lockout_inv_w.
- rtl/ssv_core.sv:1577 Cabinet bookkeeping and output latches are not cleared by MAME's machine_reset(); retain them across a watchdog reset.
- rtl/ssv_core.sv:1624 V60 program space is configured with MAME's default unmapped value of zero.
- rtl/ssv_core.sv:1636 ROM writes are nops (MAME image is read-only) but must still ack or a push into 0xFxxxxx hangs forever.
- rtl/ssv_core.sv:1715 MAME's portr() values are eight-bit ports on this 16-bit V60 map.
- rtl/ssv_core.sv:1737 Stable device identifiers shared with the MAME adapter.
- rtl/ssv_irq.sv:7 A watchdog/machine reset clears only pending causes in MAME.
- rtl/ssv_irq.sv:13 MAME's init_ssv_irq1 sets m_interrupt_ultrax for ultrax and twineag2; ssv.cpp notes it is "needed by ultrax to coin up, breaks cairblad", which is why it is per game and not unconditional.
- rtl/ssv_irq.sv:66 MAME's SSV controller refreshes the CPU input line when a cause is raised or acknowledged.
- rtl/ssv_irq.sv:154 MAME stores a 16-bit register, but SSV defines eight causes.
- rtl/ssv_irq.sv:163 MAME searches pending levels from 0 through 7 and uses the first one.
- rtl/ssv_pkg.sv:22 The graphics region is no longer a copy of MAME's sprite ROM.
- rtl/ssv_pkg.sv:25 3 MAME graphics quarter 0 -> plane01 byte 4..
- rtl/ssv_pkg.sv:120 Byte offset inside st010.bin where "dspdata" begins (ssv.cpp ROM_COPY).
- rtl/ssv_pkg.sv:137 MAME ssv_state::vblank_r() returns the raster status in the upper byte: VBLANK sets bits 12 and 13 (0x3000), HBLANK sets bit 11 (0x0800).
- rtl/ssv_pkg.sv:148 ES5506 compressed samples use the OTTO u-law equation from MAME's es5506_device::compute_tables(), rather than a conventional telephony u-law table.
- rtl/ssv_pkg.sv:189 Sizes come from MAME's ROM_REGION declarations (src/mame/seta/ssv.cpp), which is the authority for every field here.
- rtl/ssv_pkg.sv:192 MAME does `code % gfxelement->elements()` (ssv_v.cpp), a true MODULO, and elements() = sprites_region / 128:
- rtl/ssv_pkg.sv:241 Extra CPU RAM selected by the MAME address map: 0 none, 1 = $400000-$43ffff, 2 = $010000-$03ffff.
- rtl/ssv_pkg.sv:264 exact MAME visarea width / 2
- rtl/ssv_pkg.sv:265 exact MAME visarea height
- rtl/ssv_pkg.sv:287 These records mirror the generated MRA configuration block, whose fields are derived from MAME's ssv.cpp.
- rtl/ssv_pkg.sv:418 MAME only decodes the extra-button window for maps that explicitly expose $500008-$500009.
- rtl/ssv_pkg.sv:506 MAME's graphics region is split into four logical quarters, but the populated stream may contain only three of them.
- rtl/ssv_pkg.sv:588 MAME's dspprg is a 32-bit big-endian region and the fetch is read_dword(pc) >> 8, so the instruction occupies bytes 4*pc + 0..2 and byte 4*pc + 3 is never used.
- rtl/ssv_pkg.sv:712 The whole image must fit the region, and "dspdata" must start where MAME's ROM_COPY says it does.
- rtl/ssv_video_timing.sv:80 Drift Out crops the visible area (and therefore its live VBLANK status) at line 238, but MAME's SSV scan timer and raw 262-line raster retain the line-240 interrupt.
- rtl/ssv_video_timing.sv:127 The exact board sync widths are not documented by MAME's set_raw call.
- rtl/video/ssv_bg_renderer.sv:78 MAME's init_ssv builds m_tile_code[i] = bitswap<4>(i,0,1,2,3) << 16, which is attr[13:10] REVERSED.
- rtl/video/ssv_bg_renderer.sv:247 MAME fixes `page` from the raw scroll register before adding it (ssv_v.cpp:684 vs :702), so the origin passed here must stay `scroll_x`.
- rtl/video/ssv_bg_renderer.sv:255 The horizontal origin must include the row-scroll offset: MAME sx1 = 0 - (tilemap_scrollx & 0xf) *after* the offset is added (ssv_v.cpp:702 then :706).
- rtl/video/ssv_cached_sprite_renderer.sv:436 MAME's init_ssv builds m_tile_code[i] = bitswap<4>(i,0,1,2,3) << 16, which is attr[13:10] REVERSED.
- rtl/video/ssv_cached_sprite_renderer.sv:1308 Combined with the `local_index < global_w0[4:0]` test in BUILD_ADVANCE this yields count+1 iterations, which is what MAME's `for (; num >= 0; num--)` does.
- rtl/video/ssv_cached_sprite_renderer.sv:1311 Do NOT "optimise" a zero-count global into a skip: it would drop a descriptor MAME draws and break frame-CRC parity.
- rtl/video/ssv_cached_sprite_renderer.sv:1376 Skip its cache slot and continue walking the MAME list.
- rtl/video/ssv_cached_sprite_renderer.sv:1655 Adjacent 64-pixel tilemap slices overlap by one inclusive line in MAME.
- rtl/video/ssv_cached_sprite_renderer.sv:1749 MAME fixes `page` from the raw scroll register before adding it (ssv_v.cpp:684 vs :702), so the origin passed here must stay `tile_scroll_x`.
- rtl/video/ssv_gfx_row_fetch.sv:4 The ROM loader packs the three populated MAME graphics quarters into one aligned 16-byte record per tile row (ssv_pkg::gfx_record_addr), so what used to be two serial p1 transactions -- the packed Q0/Q1 beat, then the Q2 beat of which half
- rtl/video/ssv_gfx_row_fetch.sv:7 MAME's absent fourth quarter reads as zero.
- rtl/video/ssv_gfx_row_fetch.sv:38 Tile-code wrapping is MAME's `code % elements()`, and elements() is per-game (0x18000 / 0x20000 / 0x30000 / 0x40000).
- rtl/video/ssv_palette_ram.sv:15 MAME clears the indexed bitmap to pen 0 before checking video-enable.
- rtl/video/ssv_palette_ram.sv:43 The RAM's video port is already consumed by the live scanline index, while MAME's bitmap clear needs pen 0 concurrently when video is disabled.
- README.md:13 The RTL has focused simulation and MAME differential evidence, but the complete nine-set qualification matrix and current physical MiSTer validation are not yet
- README.md:72 Simulation results, MAME-derived behavior, and unmeasured claims are documented elsewhere and are not presented as PCB accuracy here.
- README.md:85 Other Sammy Seta Visco entries present in MAME are not currently claimed as supported by this core.
- README.md:121 **MAMEdev and MAME contributors** — Sammy Seta Visco driver/video behavior, V60 behavior, uPD96050/ST010 behavior, ES5506 behavior, ROM definitions, controls, D
- README.md:124 MAME source is used as a behavioral reference; it is not copied into the synthesizable core.
- README.md:126 **Farfetch'd and R. Belmont** — MAME V60 behavioral reference credited by the imported V60 source.
- README.md:128 **byuu and MAME contributors** — portable uPD7725/uPD96050 behavioral reference used for the ST010 implementation.
- README.md:145 MAME and other references are credited above and are not a license to redistribute copyrighted game data.
- README.md:158 Put your legally obtained game ROM ZIP in the appropriate MiSTer arcade/MAME ROM folder, then launch the game from the MiSTer Arcade menu.
Says it matches, follows or was checked against MAME — 9
- Arcade-SSV.sv:771 The reset default matches MAME's dynagear (FF / FD) so the core still comes up sanely if an MRA carries no <switches> block at all.
- rtl/audio/ssv_es5506_regs.sv:5 Register masks and reset behavior were cross-checked against MAME's BSD-3-Clause es5506.cpp and the zlib-licensed vgsound_emu ES550x model.
- rtl/audio/ssv_es5506_regs.sv:284 Keep a one-cycle-delayed record of the last commit and re-assert its fresh bit after the snapshot clear (NBA ordering: the later assignment wins), so a write the snapshot could not see keeps its protection until the NEXT snapshot, exactly m
- rtl/cpu/upd96050/upd96050.sv:58 NOT IMPLEMENTED (matching MAME, which also omits them)
- rtl/cpu/upd96050/upd96050.sv:733 Applied after the execute writes above so that the pathological same-clk collision resolves host-last, matching MAME where a host access is a device call outside the execute step.
- rtl/cpu/v60/s32_v60.sv:17 - Single-precision FP (0x5C/0x5F: CMPF/MOVFS/NEGFS/ABSFS/SCLFS/ADDFS/SUBFS/ MULFS/DIVFS/CVTWS/CVTSW): a binary32 unit (round-to-nearest-even, gradual underflow) matching MAME's host-float contract; no System 32 game uses it.
- rtl/cpu/v60/s32_v60.sv:2778 Equal AND matches the stop byte: MAME clears CY and breaks; S/Z stay 0 (i != dest), R28/R27 at the current index.
- rtl/cpu/v60/s32_v60.sv:4653 1 <= count <= width: exact MAME SHIFTLEFT_OV mask (count==width uses the full-width mask, matching MAME's count==bitsize case, e.g. SHA.B #8,-1 -> OV=0)
- rtl/video/ssv_cached_sprite_renderer.sv:196 Consecutive identical ordinary descriptors are idempotent in MAME draw order, so keeping one copy avoids filling every affected scanline bucket with reset-list duplicates before the renderer ever sees them.
Says it was translated, ported or taken from MAME — 1
- rtl/ssv_irq.sv:1 SPDX-License-Identifier: GPL-3.0-or-later SSV eight-level interrupt controller, translated from MAME ssv.cpp.
Keeps a MAME approximation — 2
Shares text with the MAME driver without saying so — 14
- rtl/cpu/upd96050/upd96050_st010.sv:10 map(0x480000, 0x480000).rw(m_dsp, upd96050_device::data_r, data_w); — shares text with seta/ssv.cpp:410
- rtl/cpu/upd96050/upd96050_st010.sv:15 uint8_t dsp_r(offs_t offset) { — shares text with seta/ssv.h:166
- rtl/cpu/upd96050/upd96050_st010.sv:16 uint16_t temp = m_dsp->dataram_r(offset / 2); — shares text with seta/ssv.cpp:353
- rtl/cpu/upd96050/upd96050_st010.sv:17 uint8_t shift = BIT(offset, 0) << 3; — shares text with seta/ssv.cpp:354
- rtl/cpu/upd96050/upd96050_st010.sv:20 void dsp_w(offs_t offset, uint8_t data) { — shares text with seta/ssv.cpp:358
- rtl/cpu/upd96050/upd96050_st010.sv:21 uint8_t shift = BIT(offset, 0) << 3; — shares text with seta/ssv.cpp:354
- rtl/cpu/upd96050/upd96050_st010.sv:22 m_dsp->dataram_w(offset / 2, (uint16_t(data) << 8) | data, — shares text with seta/ssv.cpp:361
- rtl/ssv_core.sv:102 (ssv.cpp: map(0x000000, 0x00ffff).ram().share(m_mainram)), which is this — shares text with seta/ssv.cpp:376
- rtl/ssv_core.sv:342 map(0x480000, 0x480000).rw(m_dsp, upd96050_device::data_r, data_w); — shares text with seta/ssv.cpp:410
- rtl/ssv_core.sv:1039 MAME: map(rom, 0xffffff).rom().region("maincpu", 0), where rom is the — shares text with seta/ssv.cpp:393
- rtl/video/ssv_bg_renderer.sv:78 MAME's init_ssv builds m_tile_code[i] = bitswap<4>(i,0,1,2,3) << 16, which — shares text with seta/ssv.cpp:2360
- rtl/video/ssv_bg_renderer.sv:80 identity (m_tile_code[i] = i << 16), so the high nibble passes through in — shares text with seta/ssv.cpp:2374
- rtl/video/ssv_cached_sprite_renderer.sv:436 MAME's init_ssv builds m_tile_code[i] = bitswap<4>(i,0,1,2,3) << 16, which — shares text with seta/ssv.cpp:2360
- rtl/video/ssv_cached_sprite_renderer.sv:438 identity (m_tile_code[i] = i << 16), so the high nibble passes through in — shares text with seta/ssv.cpp:2374