← コア一覧
Arcade-XNSYSTEMFL (XelaNotPu)
MAMEのソースを引用 — 37
- rtl/audio/c352.vhd:148 flag bit positions (see MAME C352_FLG_*)
- rtl/audio/c352.vhd:770 MAME: s = last + ((counter * (sample - last)) >> 16), FILTER flag off.
- rtl/cpu/i960ka.sv:267 Vector zero selects IAC mode, which this bring-up implementation does not implement (as in MAME).
- rtl/fl_board.sv:156 MAME System FL drives both external MCU sources at 60 Hz.
- rtl/fl_c116.sv:2 Behavioral reference: MAME namco_c116.cpp.
- rtl/fl_inputs.sv:35 Final Lap R brake pedal (AN6); Speed Racer has no brake ADC (MAME read_safe 0xff).
- rtl/mcu/fl_c75.vhd:11 C76 internal map (M37702M2, m37710.cpp m37702m2_device::map): 0x000000-0x00007F SFR (peripheral regs) -> stub here (read 0) [*] 0x000080-0x00027F internal RAM (512 B) -> block RAM here 0x00C000-0x00FFFF internal BIOS ROM (16
- rtl/mcu/fl_c75.vhd:49 2026-07-06: analog inputs (Tekken P1 kicks ride ADC ch1/ch2; idle = 0xFF) 2026-07-13: AN0 added — Pocket Racer's steering wheel (PADDLE, centre 0x80, legal range 0x38-0xC8 per MAME); AN1 doubles as its pedal (idle 0x00).
- rtl/mcu/fl_c75.vhd:52 In MAME's BASE namcos11 port set the WHOLE of player 3 arrives through the A-D converter (AN0/1/2 = BUTTON3/2/1, AN3=RIGHT AN4=LEFT AN5=DOWN AN6=UP, AN7=START3); only the four base-layout titles use them (Dunk Mania, Dancing Eyes, Star Swee
- rtl/mcu/fl_c75.vhd:146 init: A/D region 0xFF, a few hardware-default read values seen in MAME.
- rtl/mcu/fl_c75.vhd:168 Its handler @0xC31F (-> 0xB946 -> mailbox service) is the most-frequent ISR (357x/run in MAME) — it does the MIPS<->C76 mailbox handshake.
- rtl/mcu/fl_c75.vhd:296 Tekken: ch1 = P1 BTN4/right kick, ch2 = P1 BTN3/left kick (MAME tekken INPUT_PORTS); rest idle 0xFF.
- rtl/mcu/fl_c75.vhd:407 ---- A-D converter (2026-07-05): minimal MAME-equivalent model ------------- M37702 ADCON = SFR 0x1E: bit6 = conversion START, bit7?
- rtl/mcu/fl_c75.vhd:408 repeat mode bits vary; MAME's m37710 completes a conversion ~57 cycles after the start bit and raises the AD IRQ (vector 0xFFD6 -> firmware ISR 0xC30D — the C76's periodic input/publish service that cycles shram 0xBDA4 in MAME every ~2ms; i
- rtl/mcu/m37702.vhd:91 HOLD_LINE semantics for the EXTERNAL INT0/INT1/INT2 pins: MAME asserts these via set_input_line(HOLD_LINE) from 60 Hz timers and the line stays asserted until the CPU ACKNOWLEDGES (takes) the IRQ.
- rtl/mcu/m37702.vhd:164 Dividend B:A is left-aligned in div_num and shifted into the partial remainder; div_quot accumulates the FULL 2w-bit quotient (needed for MAME's overflow test).
- rtl/mcu/m37702.vhd:350 Timer A2 (MAME m37710_irq_vectors)
- rtl/mcu/m37702.vhd:414 Full MAME 89-page dispatch (m37710op.h OP(201..21f)): dxi,s,d,dli,imm,a,al,diy,di,siy,dx,dliy,ay,ax,alx.
- rtl/mcu/m37702.vhd:432 DIV (unsigned): B:A / SRC -> quotient A, remainder B. MAME 89-page dispatch (m37710op.h OP(22x/23x)): dxi,s,d,dli,imm,a,al, diy,di,siy,dx,dliy,ay,ax,alx.
- rtl/mcu/m37702.vhd:436 NOTE: MAME's 89 page has NO signed DIVS — MPYS/DIVS are 7750-block opcodes (28x-2bx) that MAME leaves unimplemented; unsigned only.
- rtl/mcu/m37702.vhd:529 (MAME OP_PHP/OP_PLP push/pull two bytes unconditionally.) A 1-byte PLP left the C76's TB1-ISR stack off by one (LDA #imm16/PHA/PLP idiom) -> RTI derailed -> the mailbox was never serviced.
- rtl/mcu/m37702.vhd:974 MAME m37710 OP_RLA rotates REG_A only and does NOT touch any flags (N/Z/C unchanged) — so NO set_nz here (corrupting flags caused a mis-branch -> derail to the 0xC000 BIOS string).
- rtl/mcu/m37702.vhd:1067 (89-page) unsigned divide, per MAME OP_DIV (m37710op.h): m=0: (B<<16|A) / SRC16 ; m=1: ((B&FF)<<8|(A&FF)) / SRC8 quotient -> A (truncated to w), remainder -> B; V=C=1 on quotient overflow (N then unchanged), Z from truncated quot.
- rtl/mcu/m37702.vhd:1073 zero divide: MAME m37710i_interrupt_software(0xfffc) pushes PG, PC (past the operand), IPL, PS, sets I, PG=0, PC=[FFFC].
- rtl/mcu/m37702.vhd:1075 (Shared entry path also clears D and re-loads IPL; MAME's software trap leaves both alone, so pass the current IPL.)
- rtl/mcu/m37702.vhd:1116 synthesis translate_on writeback per MAME OP_DIV; remainder is exact (< divisor), quotient is the full 2w-bit value truncated to w for A.
- rtl/video/fl_c123.sv:3 Independent implementation from the pinned MAME C123 behavior.
- rtl/video/fl_c169_affine.sv:2 Fixed point has eight fraction bits (MAME normalizes these same values by another <<8 for its 16.16 API).
- rtl/video/fl_c169_affine.sv:5 Semantics follow MAME namco_c169roz after PR #16136 (merged 2026-09-17, the Speed Racer road fix): - Scanline records (FL layer 0 in mode 0x8000): increments are full 16-bit signed values (bits 14-12 are NOT left/top), the record already ho
- rtl/video/fl_c169_affine.sv:50 MAME analog_y >> 16
- rtl/video/fl_c169_affine.sv:68 the 3072-row ring only exists on the wrap-on path (MAME: inside `if (params.wrap)`)
- rtl/video/fl_tile_video.sv:47 A disabled layer costs a 4-clock dummy request per 8-px run (216 requests/line total); a layer under a fully solid road row is invisible (MAME draws C123 layer pri p at pass 2p, the road line at its own pri).
- README.md:9 The i960KA CPU and every video custom are original re-implementations by **XelaNotPu**, using MAME's `namcofl.cpp` driver as the behavioural reference; the C75/
- README.md:13 Complete MAME System FL catalog coverage — 5 sets across 2 titles:
- README.md:15 | Title (primary) | MAME set | Hardware verified |
- README.md:79 **The MAME project** — `namcofl.cpp` and the shared Namco devices (R. Belmont, ElSemi and contributors), the hardware documentation and reference behaviour used
- README.md:90 The hardware behaviour was re-implemented independently, using MAME as behavioural reference documentation; no proprietary source code was used and no MAME emul
MAMEと一致する、MAMEに合わせた、またはMAMEで確認したと記載 — 3
- rtl/mcu/fl_c75.vhd:426 golden timing (MAME m37710): 8-channel sweep = 8 x 228 clocks = 1824 (~108us @16.9MHz); one-shot IRQ at sweep end (subagent-verified vs MAME :c76 trace)
- rtl/mcu/m37702.vhd:318 IPL-masked priority interrupt acceptance (matches MAME m37710i_update_irqs): take the highest-priority PENDING source whose IC priority STRICTLY exceeds the current IPL (I-flag clear), and raise IPL to it on entry (RTI restores IPL).
- rtl/mcu/m37702.vhd:321 Equal priorities use descending vector order, matching the pinned MAME m37710i_update_irqs implementation.
MAMEドライバと同じ文言を含む(出典の明記なし) — 1