← All cores
Arcade-JalecoMS32F1 (ppriest)
Cites MAME source — 151
- MS32.sv:9 A capture blob (scripts/build_capture_blob.py, ioctl index 2) can be loaded with the CPU held (mod byte bit 7), so a frame MAME rendered is rendered by the hardware from the real ROMs.
- MS32.sv:40 The mainboard's own output is mono (ms32.cpp header), so the OSD's Stereo Mix defaults to it: status 0 Mono (AUDIO_MIX 3), 1 None (0), 2 25% (1), 3 50% (2).
- MS32.sv:261 F-1 Super Battle's controls (ms32.cpp analog_r and the f1superb ports).
- MS32.sv:268 AN2 eight switches, all pulled up: MAME calls bit 7 "Shift Brake" and does not know the rest.
- MS32.sv:269 Left at 0xFF, as MAME leaves them.
- MS32.sv:290 The shifter is a two-position lever, so MAME gives it PORT_TOGGLE: one press of the button changes gear rather than holding it there.
- MS32.sv:313 ms32.cpp INPUTS at 0xFCC00004, active low.
- MS32.sv:319 keyboard 5 and 6, MAME's coin keys, on every set (decoded below)
- MS32.sv:335 Mahjong panel (ms32.cpp ms32_mahjong, mahjong.cpp mahjong_matrix_1p) from a PS/2 keyboard with MAME's default keys: A-N, Kan LCtrl, Pon LAlt, Chi Space, Reach LShift, Ron Z, Start 1 (or joystick Start).
- rtl/cpu/jalfpu/jalfpu.sv:11 Where MAME says a thing is unverified or unimplemented, so is this: unknown function codes do nothing, memory selector 0 uses base 0, and the control words other than halt are markers.
- rtl/cpu/jalfpu/jalfpu.sv:37 Host window (32-bit bus, same clock), the map jalfpu.cpp's host_map gives: 0x0000-0x23ff data RAM (one u16 per 32-bit slot), 0x2400-0x24ff registers, 0x4000-0x5fff program RAM (a word's argument and opcode in separate longs).
- rtl/cpu/jalfpu/jalfpu.sv:51 For sim/jalfpu_tb, which diffs these against MAME's own trace after every instruction.
- rtl/cpu/jalfpu/jalfpu.sv:151 jalfpu.cpp's LOAD_SEL, GROUP_REG and MODE_BASE tables
- rtl/cpu/jalfpu/jalfpu.sv:201 unknown condition: never taken, as MAME
- rtl/cpu/jalfpu/jalfpu.sv:223 The quotient overflows 16 bits exactly when the dividend's high half already reaches the divisor, which also catches division by zero; jalfpu.cpp saturates rather than trapping.
- rtl/cpu/jalfpu/jalfpu.sv:243 The routine sits that cycle out: its own port A access or register write in the same cycle would override the host's. MAME has no such overlap -- the V70 never writes while a routine runs there -- but this FPU is slower than MAME's, so on t
- rtl/cpu/jalfpu/jalfpu.sv:380 unimplemented, as MAME logs it
- rtl/cpu/jalfpu/jalfpu.sv:524 saturate, as jalfpu.cpp does
- rtl/cpu/ms32_cpu_sys.sv:3 The MS32 main CPU and its memory map: the vendored V70 (s32_v60, IS_V70) behind ms32_v70_bus, ms32.cpp's ms32_map decoded with its mirrors, work RAM and NVRAM, the CPU port of every video RAM (the RAMs live in ms32_video as dual-clock block
- rtl/cpu/ms32_cpu_sys.sv:31 Charles MacDonald's measurements of a Desert War board head MAME's ms32.cpp; docs/HARDWARE_NOTES.md checks this module against each (memory map, mirroring, sound latches, I/O ports, unused-space reads).
- rtl/cpu/ms32_cpu_sys.sv:39 ms32.cpp sound_command_w spins the V70 for 40 us after a latch write "to give the Z80 time to respond"; 800 clk_cpu clocks at 20 MHz
- rtl/cpu/ms32_cpu_sys.sv:312 The road RAMs hold what the game uses, not what MAME declares; a write past the end wraps, and is counted so the probe can say it happened.
- rtl/cpu/ms32_cpu_sys.sv:338 ms32.cpp mahjong_ctrl_r: 0xFD1C0000 (write-only) selects key rows by bits 0-4; the rows selected are ANDed, then bitswap<6>(v, 4,2,3,1,0,5) puts the Start column in bit 0, and bits 7:6 read 1.
- rtl/cpu/ms32_cpu_sys.sv:354 ------------------------------------------------------------- sound latches ms32.cpp: 0xFC800000 loads the Z80's command latch (in ms32_sound); the Z80's write to 0x3F10 loads to_main and raises IRQ level 1; 0xFD000000 returns to_main inver
- rtl/cpu/ms32_cpu_sys.sv:422 The comms RAM is the link board's, which is not emulated -- MAME keeps the RAM and so does this, or the game's test mode reports FLAM ERROR.
- rtl/cpu/ms32_cpu_sys.sv:474 ms32.cpp maps this one as plain .ram() with no umask32, unlike every other 16-bit region on this bus, so a 16-bit RAM here drops the top half of every write.
- rtl/cpu/ms32_cpu_sys.sv:536 AN2 is a bank of eight pulled-up switches; MAME names only bit 7, "Shift Brake", and reads them all off.
- rtl/cpu/ms32_sysctrl.sv:3 The interrupt side of jaleco_ms32_sysctrl plus ms32.cpp's irq_raise, in the CPU's clock domain.
- rtl/cpu/ms32_sysctrl.sv:7 ms32.cpp: m_irqreq is a 16-bit set of levels; the V70's line is asserted while any bit is set and irq_callback() returns the highest set bit.
- rtl/cpu/ms32_sysctrl.sv:93 jaleco_ms32_sysctrl calls m_field_cb at the vblank line when inverted, and ms32.cpp wires m_vblank_cb to level 10 and m_field_cb to level 9 unconditionally, so vblank_ack (m_vblank_cb(0)) clears 10 and field_ack clears 9 on every set.
- rtl/cpu/ms32_v70_bus.sv:33 word a[1:0]==0 1 otherwise 2 Unaligned halves and words are legal on a V70 and MAME's core issues them (read_dword_unaligned throughout v60.cpp); the trace shows the CPU doing exactly that on tetrisp's boot.
- rtl/cpu/v60/s32_v60.sv:21 2026-09-13 Charles MacDonald's hardware notes (ms32.cpp header): PIR reads 0x00007007 on a uPD70632GD-20 (was MAME's 0x7000), and MOV.D's register-pair source for R31 is R31:R31, not R31 and the register after it.
- rtl/cpu/v60/s32_v60.sv:25 2026-09-13 MAME's dim 3 (qword) operands: MOVD's register source in the F2 D=0 short form is the register PAIR (op1 an lvalue, as XCH), and autoincrement, autodecrement and index scaling step by 8 for MOVD's operands and the second operand
- rtl/cpu/v60/s32_v60.sv:37 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:45 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:52 - Not implemented (reserved-instruction exception, logged in sim): the un-dispatched 0x5C/0x5F sub-opcodes (MAME UNHANDLED).
- rtl/cpu/v60/s32_v60.sv:53 MMU/TLB effects are absent like MAME, but CLRTLB still decodes its complete operand.
- rtl/cpu/v60/s32_v60.sv:63 V60/V70 reset PC (MAME m_start_pc; audit V60-21)
- rtl/cpu/v60/s32_v60.sv:167 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:727 C-style truncating divide-by-8 of a signed bit offset (MAME bamoffset/8)
- rtl/cpu/v60/s32_v60.sv:817 stack switch on IS change, or EL change while IS=0 (MAME v60WritePSW)
- rtl/cpu/v60/s32_v60.sv:1065 [MS32] qword operands, MAME's moddim 3 (op12.hxx): both of MOVD's, and the second of MULX/MULUX/DIVX/DIVUX.
- rtl/cpu/v60/s32_v60.sv:1264 primary dispatch (per MAME optable.hxx)
- rtl/cpu/v60/s32_v60.sv:1269 BRK — MAME skips this opcode (A4)
- rtl/cpu/v60/s32_v60.sv:1289 ---- Bcc disp8 (0x60-0x6a,0x6c-0x6f) / disp16 equivalent ---- 0x6B/0x7B are holes in MAME's authoritative primary dispatch table, not branch-condition encodings.
- rtl/cpu/v60/s32_v60.sv:1349 MAME opDBcc: reg ALWAYS decrements; branch iff cond true and decremented reg != 0.
- rtl/cpu/v60/s32_v60.sv:1455 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:1481 RETI adj (halfword, MAME moddim=1)
- rtl/cpu/v60/s32_v60.sv:1505 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:1525 MAME implements ADDDC/SUBDC/SUBRDC/CVTDPZ/CVTDZP (radm timer); remaining subops are reserved there too.
- rtl/cpu/v60/s32_v60.sv:1614 Unhandled sub-opcodes still take the reserved-instruction vector exactly as MAME's op5C/op5F UNHANDLED entries fatalerror.
- rtl/cpu/v60/s32_v60.sv:1656 RSR (A9): pop PC ONLY (MAME opRSR: PC=[SP]; SP+=4)
- rtl/cpu/v60/s32_v60.sv:1661 MAME/NEC floating-exception test: enabled TKCW causes are intersected with the PSW floating-status field.
- rtl/cpu/v60/s32_v60.sv:1690 F12: plan operands per instflags (MAME F12DecodeOperands)
- rtl/cpu/v60/s32_v60.sv:1699 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:2331 MAME opDIVX/opDIVUX set only S/Z and leave OV unchanged; do not clear it.
- rtl/cpu/v60/s32_v60.sv:2363 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:2694 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:2736 push highest set register first (MAME pushes from r31 down?
- rtl/cpu/v60/s32_v60.sv:2784 TASI sets flags as SUBB(old, 0xFF, 0) before writing 0xFF (MAME opTASI).
- rtl/cpu/v60/s32_v60.sv:2821 R27 (dst) / R28 (src) updated at completion (MAME MOVSTR).
- rtl/cpu/v60/s32_v60.sv:2830 Element-size dim for both (MAME dim 0 byte / 1 half — see decode).
- rtl/cpu/v60/s32_v60.sv:2847 V60-15: down-direction search (subop[0]=1, MAME opSEARCHD*).
- rtl/cpu/v60/s32_v60.sv:2849 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:2874 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:2883 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:2886 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:2915 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:2930 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:2965 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:3004 CMPC (MAME opCMPSTR): compare source(op1) vs dest(op2).
- rtl/cpu/v60/s32_v60.sv:3263 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:3737 exception / interrupt entry (MAME v60_do_irq): switch to interrupt context, push old PSW, push PC, PC = vector
- rtl/cpu/v60/s32_v60.sv:3975 per-opcode dim helpers (operand sizes per MAME op12 handlers)
- rtl/cpu/v60/s32_v60.sv:3977 F12 ops whose FIRST operand is an effective address, not a value (MAME F12DecodeFirstOperand(ReadAMAddress, ...)): MOVEA and IN
- rtl/cpu/v60/s32_v60.sv:3998 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:4031 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:4117 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:4140 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:4221 MAME MOV sets no flags?
- rtl/cpu/v60/s32_v60.sv:4344 A zero count must clear CY (MAME); the old code left it unchanged (audit R20 V60-7).
- rtl/cpu/v60/s32_v60.sv:4371 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:4382 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:4443 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:4476 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:4494 MAME opMULX/opMULUX leave OV unchanged
- rtl/cpu/v60/s32_v60.sv:4510 MAME: no zero-divide trap
- rtl/cpu/v60/s32_v60.sv:4582 MAME opCALL: SP-=4; [SP]=AP; AP=op2; SP-=4; [SP]=retPC; PC=op1.
- rtl/cpu/v60/s32_v60.sv:4619 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:4869 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:4871 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:4882 count > width: MAME's macro is UB here (bitsize-count<0); any nonzero value overflowed
- rtl/cpu/v60/s32_v60.sv:4958 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:4960 For byte/half MAME shifts the 32-bit value; for word, the 64-bit one.
- rtl/cpu/v60/s32_v60.sv:4983 MAME clears OV for REM/REMU (audit R20 V60-8)
- rtl/cpu/v60/s32_v60.sv:4992 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:5008 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:5184 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:5241 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:5264 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:5275 (MAME: (_S && val>=0) || (!_S && val<=-1); |val| >= 1 here).
- rtl/cpu/v60/s32_v60.sv:5390 MAME materializes the subtraction: same-signed infinities give inf-inf = NaN, so they compare Z=0/S=0 like unordered operands.
- rtl/debug/ms32_capture_loader.sv:5 Each word becomes one bus write at the CPU address MAME's ms32_map gives it, issued into ms32_cpu_sys's loader port while the V70 is held in reset -- so playback goes through the same decode, RAM ports and register mailbox as the game's own
- rtl/memory/ms32_jalcrpt_pkg.sv:3 See that script: MAME reads dest[i] = src[L(i ^ addr_xor)] ^ (i & 0xff) ^ data_xor; the download stores source byte j at i = Linv(j) ^ addr_xor (bg: bits above 19 pass through), XORed with (i & 0xff) ^ data_xor.
- rtl/memory/ms32_sdram_top.sv:6 Region sizes are the largest in the game list (ROADMAP "Game scope"); an .mra fills each region by REPEATING its ROM data to the region size, which reproduces MAME's tile-number wrap (off % rom_length) for any ROM length, so the engines sim
- rtl/memory/ms32_sdram_top.sv:22 Every other set masks sprite addresses to 24 bits, which with the .mra's repeat is MAME's page wrap for any power-of-two ROM up to 16 MB; spr25 (mod byte bit 4, bbbxing and f1superb) masks to 25 bits instead.
- rtl/video/ms32_crtc.sv:7 Reset values are MAME's defaults (384 x 263 total, 320 x 224 visible), which the sysctrl comments say the hardware must produce before any write because bnstars1 never programs the CRTC and still expects a vblank.
- rtl/video/ms32_crtc.sv:20 That is the MAME screen configuration (visarea 0..hdisplay-1) and the order the tilemap engines assume.
- rtl/video/ms32_crtc.sv:23 MAME only logs hbp/hfp/vbp/vfp ("HSYNC back porch", "front porch") and never uses them.
- rtl/video/ms32_crtc.sv:39 Interrupt events, one clk each, at the moments jaleco_ms32_sysctrl's scanline timer raises them: vblank_ev when vcnt reaches vdisplay, field_ev when vcnt reaches 0 on an odd frame (the 30 Hz "field" line) -- or, with FIELD_LAST_ACTIVE, when
- rtl/video/ms32_lineplane.sv:335 G_ROW2 left the line's colour word here; a line that draws nothing reports zero, as MAME's line_colour[] does, so the mixer's depth bits match when both planes are blank
- rtl/video/ms32_mixer.sv:3 From ms32_v.cpp mix_layers() as of MAME PR 16243 (ms32_state's for the twenty-one sets, ms32_f1superbattle_state's for F1=1), checked against scripts/render_model.py mix() and mix_f1().
- rtl/video/ms32_mixer.sv:27 Not here: MAME's apply_sprite_effects() second pass, which redoes the lookup where a sprite's box covers a pixel but no pen of it is opaque.
- rtl/video/ms32_mixer.sv:32 The index is formed and read every dot, so a change the game makes to the priority RAM takes effect immediately, as MAME reads it per pixel.
- rtl/video/ms32_mixer.sv:75 MAME tests the pen's low byte
- rtl/video/ms32_mixer.sv:109 3, 5, 7: nothing, as MAME
- rtl/video/ms32_objram.sv:4 ms32_v.cpp screen_vblank() copies the whole RAM into m_sprram_buffer at the START of vblank and draw_sprites renders from the copy; the game rewrites the live RAM during that same vblank.
- rtl/video/ms32_roz.sv:3 MS32 ROZ line engine: the rotate/zoom tilemap (128x128 tiles of 16x16, 8bpp, palette base 0x2000), transcribed from ms32_v.cpp draw_roz and tilemap_t::draw_roz_core, as the pixel-exact model has it (scripts/render_model.py render_roz):
- rtl/video/ms32_roz.sv:22 All of it is 32-bit wrapping arithmetic in MAME, and the accumulators are 32 bits: bits 26:16 address the map and bits 31:27 decide the non-wrap clip.
- rtl/video/ms32_roz.sv:124 Lines are fetched in order once per frame, so the sum is the product MAME computes for registers held across the frame -- the only case MAME renders as intended, since screen_update reads them once.
- rtl/video/ms32_sprite.sv:4 Transcribed from ms32_v.cpp draw_sprites, ms32_sprite.cpp extract_parameters and draw_sprite_zoom_core, and checked against the pixel-exact model (scripts/render_model.py render_sprites).
- rtl/video/ms32_sprite.sv:30 MAME walks the list tail->0 when sprite_ctrl[0x10] bit 15 is clear (0->tail-1 otherwise) with a first-drawn-wins pixel op.
- rtl/video/ms32_sprite.sv:62 sprite_ctrl[0x10] bit 15 CLEAR (MAME's "reverseorder")
- rtl/video/ms32_sprite.sv:97 The first drawn sprite of the frame carrying flipy, with the slot it came from: MAME never sets that bit in this game, so whatever is here says whether the record is a plausible sprite or corrupted object RAM.
- rtl/video/ms32_sprite.sv:160 Widths are the largest value each can hold (MAME's are all 32 bits): srcend <= 0x10000 (17), srcstart <= 0xFF00 (16), inc <= 0xFFFF (16) srcx/srcy after the clip <= 1024 x 0xFFFF (26); in a row srcx < srcendx cursrcx < srcendx + incx (18);
- rtl/video/ms32_sprite.sv:202 MAME recomputes srcend - cursrcx - 1 for every pixel; the two agree while cursrcx < srcendx, which is the only time pxabs is used.
- rtl/video/ms32_tilemap.sv:5 Transcribed from ms32_v.cpp's tilemap setup and the pixel-exact model in scripts/render_model.py (draw_tilemap):
- rtl/video/ms32_video.sv:131 MAME's video_start defaults, for tp2m32, which writes neither: brightness registers 0 (both banks factor 0x100) and sprite control 0x10 = 0x8000 (list walked 0->tail).
- rtl/video/ms32_video.sv:155 ms32_crtc: MAME's set_field_irq_last_active_line
- rtl/video/ms32_video.sv:209 The game writes 448 words of the map and 2,048 of the line RAM, where MAME declares 32,768 of each; the decode wraps rather than the address widening, and ms32_core counts a write that reaches past the end.
- README.md:3 MiSTer FPGA core for Jaleco's MegaSystem 32 arcade hardware — MAME's `jaleco/ms32.cpp` — built with Quartus Prime 17.0.2 Lite for the DE10-nano.
- README.md:28 Mixer and ROZ layer follow MAME PR 16243: shadows and the two brightness banks as the PR has them, and the ROZ layer no longer wraps where the game's registers
- README.md:31 F-1 Super Battle: the Communication Mode and Car ID DIPs start at Master and 1, as in MAME
- README.md:35 Based on the recent work of Andrea Bogazzi (@asturu) in MAME
- README.md:50 Sound commands no longer lost: the V70 waits 40 us after each one, as MAME does.
- README.md:58 The goal is the MegaSystem 32 sets in MAME's `ms32.cpp` that fit a 32 MB SDRAM module (`docs/ROADMAP.md`, "Game scope"), and F-1 Super Battle, which has a core
- README.md:102 | MAME description | Why |
- README.md:104 | Vs. Janshi Brandnew Stars (dual screen) | Different driver (`bnstars.cpp`) |
- README.md:114 | Jaleco FPU (x2) | F-1 Super Battle's maths coprocessors | Written from MAME's `jalfpu` |
- README.md:116 | YMF271 | FM + PCM sound | Vendored Seibu SPI core. Spectrum correlates with MAME, RMS within 2% |
- README.md:137 Put the MAME ROMs in `games/mame`
- README.md:211 Where Charles MacDonald measured the hardware (the notes at the top of `ms32.cpp`), [`docs/HARDWARE_NOTES.md`](docs/HARDWARE_NOTES.md) checks the core against e
- README.md:214 Hardware facts come from the MAME driver and are verified against it.
- README.md:216 The CPU is diffed against a MAME bus trace of `tetrisp`'s boot, access by access
- README.md:217 The video path is diffed against MAME's own screenshots of captured frames, in simulation and on the board
- README.md:219 The whole board is diffed against MAME's frame 1200 of `tetrisp`, and its video RAMs against MAME's at frame 1200 of `tp2m32`
- README.md:221 The sound CPU's bus is diffed against a timestamped MAME trace of `tetrisp`
- README.md:232 **Charles MacDonald** for the hardware notes at the top of MAME's `ms32.cpp`: the memory map, mirroring, sound latches, sound reset, I/O ports and V70 details m
- README.md:237 The **MAMEdev team** — in particular **David Haywood**, **Paul Priest**, **Luca Elia**, **Andrea Bogazzi** — for [MAME](https://github.com/mamedev/mame)'s `jale
- README.md:254 | `debug` | reference captures from MAME used as ground truth (gitignored) |
- README.md:255 | `roms` | your own MAME sets (gitignored, never committed) |
Says it matches, follows or was checked against MAME — 9
- rtl/cpu/jalfpu/jalfpu.sv:168 selector 0 unverified, as in MAME
- rtl/cpu/ms32_cpu_sys.sv:16 As sim/v70_boot_tb, which matched MAME over 5M accesses of the tetrisp boot: every RAM region mirrors address bits 29:26, so am = a & 0xC3FFFFFF picks the region and the bits each mirror leaves live index it.
- rtl/cpu/v60/s32_v60.sv:49 - 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:3026 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:4883 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/ms32_video.sv:102 A window on the video RAMs, for dumping them off a running board and rendering the result with scripts/render_model.py -- the same renderer that matches MAME pixel for pixel, so it says whether the RAM is right and the RTL wrong, or the RAM
- README.md:112 | Tilemaps, ROZ, sprites, mixer | Video | Written, pixel-exact against MAME
- README.md:215 The tile ROM decryption is checked byte for byte against MAME's decrypted regions
- README.md:235 **Meathax** for the V60/V70 CPU core from the Sega System 32 core, [meathax/s32](https://github.com/meathax/s32), and its verification suite which are derived f
Says it was translated, ported or taken from MAME — 2
- rtl/cpu/jalfpu/jalfpu.sv:7 TRANSCRIBED FROM MAME's src/devices/cpu/jalfpu/jalfpu.cpp (BSD-3-Clause, copyright Andrea Bogazzi), from mamedev/mame PR 16135.
- rtl/video/ms32_lineplane.sv:6 Transcribed from ms32_v.cpp draw_line_plane() as MAME PR 16135 adds it, and checked against scripts/render_model.py, which renders a whole f1superb frame pixel for pixel (ROADMAP, "F-1 Super Battle").
Keeps a MAME approximation — 3
- rtl/cpu/jalfpu/jalfpu.sv:26 The real chip's clock is unknown -- MAME guesses 48 MHz / 8 and runs one instruction per cycle.
- rtl/cpu/ms32_sysctrl.sv:23 The timer period is MAME's guess, 500 us * interval (the driver says the real timing is unknown); at clk_cpu = 20 MHz that is 10,000 clocks.
- README.md:209 MAME is the accuracy reference, with its own acknowledged uncertainties noted where they matter: [`docs/MAME_KLUDGES.md`](docs/MAME_KLUDGES.md) lists MAME's gue
Shares text with the MAME driver without saying so — 11