← コア一覧
Leland
MAMEのソースを引用 — 121
- rtl/KF8253/kf8253_leland_bus.sv:6 Scope boundary: this module does NOT decode a real system address into "is this access for me" -- that is the PCS-window job (MAME's leland_a.cpp peripheral_r/w, `select = offset >> 6`, PCS2/PCS3 sub-windows).
- rtl/audio/leland_dac_mixer.sv:6 Takes the sound board's digital DAC register outputs (six 8-bit sample+volume pairs and one 10-bit sample) and produces one mono signed 16-bit PCM stream; the top level duplicates it to both channels (leland_a.cpp has a single front_center
- rtl/audio/leland_dac_mixer.sv:15 Gains: leland_a.cpp routes each 8-bit channel at 0.2 and dac9 at 1.0.
- rtl/audio/leland_dac_mixer.sv:15 MAME's volume DAC (DAC_8BIT_BINARY_WEIGHTED) has a gain of 2.0, which doubles every 8-bit channel (measured against a MAME capture of Indy Heat).
- rtl/audio/leland_sound.sv:16 Reference: MAME leland_a.cpp leland_80186_map_program (RAM 0x00000-0x1FFFF mirrored, ROM 0x20000-0xFFFFF identity-mapped into the audiocpu region).
- rtl/audio/leland_sound.sv:55 Core interrupt/debug ports: INT0/INT1 are decoded by leland_sound_board straight from control_data; NMI is unused per leland_a.cpp.
- rtl/audio/leland_sound.sv:228 leland_sound_board -- PIT clock enable: the two discrete PIT8254s run at 4 MHz (leland_a.cpp `set_clk<N>(4000000)`); clk_sys/12 is exactly 4 MHz at 48 MHz.
- rtl/audio/leland_sound_board.sv:6 Sits downstream of i186_periph's system-side data bus (everything i186_periph did not claim as an internal register): decodes the external PCS peripheral window (command/response latch, PIT0/PIT1, dac9, clock-active status; leland_a.cpp per
- rtl/audio/leland_sound_board.sv:16 MAME's peripheral_r/w and dac_w are 16-bit handlers whose `offset` is a word offset in the same units (PIT0 programming at byte address 0x20100 is word offset 0x80, `>>6` = select 2), so the constants below come straight from leland_a.cpp.
- rtl/audio/leland_sound_board.sv:21 clock_active[6:2] (leland_a.cpp m_clock_active, the PCS select-0 status read) is an edge-triggered latch, not a level follower: MAME calls set_clock_line() only on a pin transition event, and bit 6 (TMROUT0) only ever transitions high in th
- rtl/audio/leland_sound_board.sv:63 Ataxx sound board variant (leland_a.cpp ATAXX_80186): peripherals sit in an I/O-space window (not memory), there is no whole-I/O-space DAC port and no second PIT, and the three DACs plus their volumes are written through PCS select 5.
- rtl/audio/leland_sound_board.sv:159 Outside Ataxx mode select 5 falls through to the "unimplemented read returns 0xFFFF, write ignored" default below, like leland_a.cpp's `m_type <= TYPE_REDLINE` guard.
- rtl/audio/leland_sound_board.sv:269 --- clock_active status (select-0 read; bits [1:0] unused -- DMA-fed dac 0/1 never SET a clock_active bit in leland_a.cpp, only dac_w's unconditional set_clock_line(dac,0) clear ever touches them, which is a permanent no-op since they start
- rtl/audio/leland_sound_board.sv:290 A byte write merges into the 16-bit register like MAME's COMBINE_DATA.
- rtl/audio/leland_sound_board.sv:439 --- local read mux (pcs0/1; pcs4/5 and io-space are write-only, read as 0xFFFF matching leland_a.cpp's fallthrough-to-default warn+0xffff) ---
- rtl/cpu/i186_periph.sv:5 Written from MAME's i186.cpp as a behavioural reference (no code reuse).
- rtl/cpu/i186_periph.sv:8 It sits inline on the s80x86 core's data bus only (MAME also intercepts only data accesses): an access to the relocation-selected internal page is serviced here, everything else passes through to the system bus.
- rtl/cpu/i186_periph.sv:17 count/maxA/maxB are live registers compared every tick, which is equivalent to MAME's event-scheduled model.
- rtl/cpu/i186_periph.sv:23 The s80x86 core requires irq[7:0] to stay stable from the moment `intr` asserts until the `inta` pulse, which MAME's model does not guarantee.
- rtl/cpu/i186_periph.sv:76 every timer-0 terminal count, regardless of the interrupt-enable bit (i186.cpp drives tmrout0 on every TC).
- rtl/cpu/i186_periph.sv:120 --- Relocation register --- Reset default 0x20FF: I/O mode (bit12=0), page 0xFF -> window 0xFF00-0xFFFF (i186.cpp device_reset: m_reloc = 0x20ff), before the ROM reprograms it.
- rtl/cpu/i186_periph.sv:134 External PCS window, recomputed continuously from PACS/MPCS (matches leland_a.cpp peripheral_ctrl: temp = (PACS & 0xffc0) << 4, space chosen by MPCS bit 6 of the *stored* (forced-bits-included) value).
- rtl/cpu/i186_periph.sv:242 Byte-swap quirk: bytesel==10 (high lane only) is the odd-byte-address case in i186.cpp and targets the register word's high byte; bytesel==01 is the low byte.
- rtl/cpu/i186_periph.sv:273 write-only (EOI); i186.cpp reads log an error and return nothing
- rtl/cpu/i186_periph.sv:291 Hi-address (source/dest upper 4 bits) registers read back with the unused upper 12 bits as 0, matching i186.cpp's `source >> 16` (source stored as a plain integer wider than the real 20-bit bus).
- rtl/cpu/i186_periph.sv:401 Selection is by RIU, not by "ALT enabled" (i186.cpp: `(control & 0x1000) ?
- rtl/cpu/i186_periph.sv:424 Control-register write masking: bits in `resbits` are hardware-owned (preserved from the old value, never settable by a CPU write); INH (bit14) gates whether EN (bit15) actually updates from this write, and always reads back 0 (i186.cpp int
- rtl/cpu/i186_periph.sv:445 Post-elapse control mutation (i186.cpp timer_elapsed): MC (bit5) always sets; CONT (bit0) or mid-ALT-cycle (ALT && !RIU) reprimes (toggling RIU on the ALT case) and keeps EN running, otherwise the timer stops (EN and RIU both clear).
- rtl/cpu/i186_periph.sv:454 i186.cpp: RIU sets only when (ALT && !RIU) [starting the B half]; every other reprime case (not ALT, or ALT&&RIU finishing the B half under CONT) unconditionally clears it back to 0 -- NOT "leave unchanged".
- rtl/cpu/i186_periph.sv:554 --- Priority resolver (i186.cpp update_interrupt_state, non-iRMX scan order: for each priority 0..7 check timer, then dma0, dma1, ext0..ext3; masked sources never match because a stored field with MSK=1 cannot equal 0-7).
- rtl/cpu/i186_periph.sv:556 A source at the current priority that is already in service aborts the whole scan, as MAME's `return;`.
- rtl/cpu/i186_periph.sv:605 EXT0 (0x10 -> in_service[4]); an in-service source with SFNM (bit 6) set also ends the scan in i186.cpp, so no nested request is ever granted here (cascade/SFNM support is omitted).
- rtl/cpu/i186_periph.sv:690 Reading POLL (0x12) while a request is pending is treated identically to a real `inta` pulse (i186.cpp internal_port_r case 0x12: `if (poll_status & 0x8000) inta_callback(...)`); poll-mode firmware relies on it.
- rtl/cpu/i186_periph.sv:699 Rescan trigger: every event that calls update_interrupt_state() in i186.cpp (register writes, EOI, an INT0/1 edge, a timer_irq pulse, a DMA interrupt pulse, or the inta/poll-read ack).
- rtl/cpu/i186_periph.sv:714 EOI (i186.cpp handle_eoi, non-iRMX): the specific form clears one in_service bit by explicit vector; the nonspecific form (bit 15 set) scans priority 0..7 and clears the first in-service source whose priority field's low 3 bits match (the m
- rtl/cpu/i186_periph.sv:780 --- Timer status latch (per-timer strobe -> sticky status bits, i186.cpp timer_elapsed: `m_intr.status |= 0x01 << which`) ---
- rtl/cpu/i186_periph.sv:787 Unlike a literal port of i186.cpp external_int(), edge-triggered mode (LTM=0, the reset default and what this board uses) latches a rising edge as a sticky request that only a genuine ack clears.
- rtl/cpu/i186_periph.sv:793 Level-triggered mode (LTM=1) tracks the live pin level as in MAME.
- rtl/cpu/i186_periph.sv:796 LTM=1: MAME's literal level-tracking behavior
- rtl/cpu/i186_periph.sv:824 --- Register writes (plain field stores; every one of these triggers a rescan in i186.cpp, folded into the shared rescan block below via `intc_reg_write`/`wr_eoi`) ---
- rtl/cpu/i186_periph.sv:849 Ack processing (a real `inta` pulse from the core, or a POLL register read), as i186.cpp int_callback.
- rtl/cpu/i186_periph.sv:862 Clear the request bit(s) this ack covers, UNLESS it's an LTM-mode external source (0xf0 of ack_mask) -- a level-triggered request stays sticky until the pin itself deasserts, matching i186.cpp's LTM check exactly.
- rtl/cpu/i186_periph.sv:992 M/IO bit semantics per i186.cpp (SRC_MIO/DEST_MIO set == memory space): this bus's d_io is the opposite sense (1 == I/O).
- rtl/cpu/i186_periph.sv:1053 update_dma_control (i186.cpp): CHG_NOCHG (bit2) clear -> preserve the old ST_STOP (bit1) instead of taking the write's; CHG_NOCHG itself always reads back 0 afterward.
- rtl/cpu/i186_periph.sv:1107 Pointer increment/decrement, count decrement, TC stop/interrupt -- as i186.cpp drq_callback.
- rtl/cpu/i186_periph.sv:1132 Terminate: explicit TERMINATE_ON_ZERO, or unsync mode (which always self-stops on TC regardless of that bit -- i186.cpp: `(control&TERMINATE_ON_ZERO) || !(control&SYNC_MASK)`).
- rtl/cpu/leland_master.sv:7 Leland Master Z80 memory map (validated against MAME leland.cpp): 0x0000-0x1FFF ROM fixed bank (always master_rom[0x00000..0x01FFF]) 0x2000-0x9FFF Banked ROM window (32 KB, bank register selects offset) 0xA000-0xDFFF Fixed ROM (region of
- rtl/cpu/leland_master.sv:19 I/O port map (validated against MAME leland.cpp master_map_io and redline_state::init_offroad): 0xF0 ROM bank register (write, bits [2:0] used) 0xF8 Player 3 wheel read (offroad_wheel_3_r, dial-encoded) 0xF9 Player 1 wh
- rtl/cpu/leland_master.sv:29 Banking (validated against MAME leland_m.cpp offroad_bankswitch): bank_reg [2:0] indexes a fixed lookup table of ROM base offsets.
- rtl/cpu/leland_master.sv:32 bank_list (MAME):
- rtl/cpu/leland_master.sv:55 Battery-backed RAM (0xA000-0xDFFF, 16 KB), master-private: normally fixed ROM (region offset 0xA000), overlaid by MAME's battery_ram_view only when bank_reg == 1.
- rtl/cpu/leland_master.sv:68 VRAM I/O port op stream (to leland_board's VRAM sequencer) -- leland_mvram_port_r/w, installed by init_master_ports at mvram_base=0x00 and 0x40 (see leland.cpp init_offroad()).
- rtl/cpu/leland_master.sv:79 /MCONT control outputs (I/O port 0x09, validated MAME leland_master_output_w) bit0: slave_reset_n (0=hold Slave in reset, 1=run) bit2: slave_nmi_n (0=assert NMI) bit3: slave_int_req (0=assert Slave INT)
- rtl/cpu/leland_master.sv:87 80186 sound-board control latch: port 0xF0 is both the graphics bank register (bank_reg) and the sound board's control register (/RESET, ZNMI, INT0, /TEST, INT1 in bits [7:3]); MAME's redline_master_alt_bankswitch_w forwards the same byte t
- rtl/cpu/leland_master.sv:94 Sound command latch writes (ports 0xF2/0xF4, leland_a.cpp command_lo_w/command_hi_w).
- rtl/cpu/leland_master.sv:109 Background scroll registers (MAME scroll_w at io_base+0x0C-0x0F: ports 0xCC-0xCF and 0x8C-0x8F for Off-Road).
- rtl/cpu/leland_master.sv:114 Graphics bank (MAME m_gfxbank / leland_video gfxbank), set through the AY-3-8910 port A write callback: the ROM writes a register select (I/O 0x0A, /OGIA) then data (0x0B, /OGID), relocated like /MCONT.
- rtl/cpu/leland_master.sv:133 Raster line counter (from leland_video), used to generate the periodic "VA10" interrupt every 16 scanlines starting at line 8 (validated against MAME leland_m.cpp leland_interrupt_callback).
- rtl/cpu/leland_master.sv:138 Pedal (MAME AN0-AN2, IPT_PEDAL): raw value, read directly at ports 0xFD/0xFE/0xFF.
- rtl/cpu/leland_master.sv:143 Wheel (MAME AN3-AN5, IPT_DIAL): a free-spinning encoder, so only the direction and magnitude of motion since the last read is reported (dial_compute_value).
- rtl/cpu/leland_master.sv:214 Periodic "VA10" interrupt — validated against MAME leland_m.cpp leland_interrupt_callback(): fires every 16 scanlines starting at line 8.
- rtl/cpu/leland_master.sv:216 This is the only Master INT source in MAME.
- rtl/cpu/leland_master.sv:231 The periodic VA10 raster interrupt is the only master INT source in MAME; the CPUs otherwise communicate through the shared VRAM mailbox and the SLAVEHALT/GIN1 poll (see leland_slave.sv).
- rtl/cpu/leland_master.sv:237 ROM banking — validated against MAME offroad_bankswitch()
- rtl/cpu/leland_master.sv:248 bank_list from MAME offroad_bankswitch (offsets into master_rom region)
- rtl/cpu/leland_master.sv:342 leland_mvram_port_r/w range, parameterised by mvram_base (MAME init_master_ports).
- rtl/cpu/leland_master.sv:351 TRANS_EN=0: the Master is num=0 in MAME's vram_port_w, so its bit-4 transparency bit is ignored (transparency is Slave-only).
- rtl/cpu/leland_master.sv:383 MAME redline_state::init_offroad installs the shared leland_master_input_r/output_w handlers (GIN, mcont, ay, scroll) at io_base+offset, aliased at both io_base=0xC0 and 0x80, so the physical /MCONT port is 0xC9 (mirrored at 0x89), not the
- rtl/cpu/leland_master.sv:388 P1 pedal, raw (MAME port 0xFD)
- rtl/cpu/leland_master.sv:391 Wheel ports (MAME init_offroad/init_offroadt): fixed dial-encoded reads at 0xF9 (P1), 0xFB (P2) and 0xF8 (P3), separate from the pedal ports; unused by Pig Out.
- rtl/cpu/leland_master.sv:397 The relocated leland_master_input_r/output_w window (GIN0/1/3, mcont, ay, scroll) is parameterised by io_base (MAME init_master_ports(mvram_base, io_base)); dual_io_window reproduces Off-Road's double install (base and base^0x40).
- rtl/cpu/leland_master.sv:399 Offsets inside the window are fixed by MAME: 0x00/0x01 GIN0/1, 0x09 mcont, 0x0A/0x0B ay, 0x0C-0x0F scroll, 0x11 GIN3.
- rtl/cpu/leland_master.sv:413 MAME master_redline_map_io: 0xF2 = 80186 response_r / command_lo_w, 0xF4 = command_hi_w (write-only).
- rtl/cpu/leland_master.sv:419 Background scroll registers (MAME scroll_w, offset 0x0C-0x0F relative to io_base -- see leland.cpp init_offroad()/init_offroadt()/init_pigout()).
- rtl/cpu/leland_master.sv:426 Wheel dial encoder (MAME leland_m.cpp dial_compute_value): each read reports the direction (bit 7) and magnitude (bits 4:0, clamped to 0x1F, accumulated mod 32) of wheel motion since the last read of the same port, never an absolute angle.
- rtl/cpu/leland_master.sv:472 GIN input ports — validated against MAME INPUT_PORTS and leland_master_input_r (leland_m.cpp), parameterized by io_base (see io_win() above).
- rtl/cpu/leland_master.sv:488 bit1=COIN3, bit2=COIN2, bit3=COIN1 (MAME offroad INPUT_PORTS IN1 order is NOT P1/P2/P3).
- rtl/cpu/leland_master.sv:496 JOY4_DIGITAL (pigout) GIN0 (leland.cpp INPUT_PORTS_START(pigout), IN0 @ io_base+0): bit1=P3BTN2, bit2=P3right, bit3=P3down, bit5=P2BTN2, bit6=P2left, bit7=P2up.
- rtl/cpu/leland_master.sv:548 Pig Out: fixed IN4 at raw 0x7F (MAME init_pigout install_read_port, outside the io_base window): P1 joystick, two buttons and start.
- rtl/cpu/leland_master.sv:560 I/O writes The sound command latch (leland_a.cpp command_lo_w/command_hi_w) lives in the sound board; ports 0xF2/0xF4 are forwarded to it through cmd_wr_data/cmd_wr_lo/cmd_wr_hi.
- rtl/cpu/leland_master.sv:574 MAME's diff==0 early-out is a software optimisation, not bus behaviour, and control_wr is idempotent.
- rtl/cpu/leland_master.sv:636 MAME: set_input_line(NMI, BIT(data,2) ?
- rtl/cpu/leland_master.sv:640 /MCONT bit 3 is a held level (MAME: set_input_line(IRQ0, BIT(data,3) ?
- rtl/cpu/leland_master.sv:648 MAME leland_master_output_w: /MCONT bit 1 selects the palette view.
- rtl/cpu/leland_master.sv:662 Palette RAM is readable while /MCONT bit 1 selects the palette view (MAME: ram().w(palette write8)).
- rtl/cpu/leland_master_ataxx.sv:4 Ataxx master Z80 (MAME leland.cpp master_map_program_2 / master_map_io_2).
- rtl/cpu/leland_slave.sv:7 Memory map (MAME leland.cpp slave_large_map_program, used by the `lelandi` machine config): 0x0000-0x1FFF ROM bank 0 (fixed) 0x2000-0x3FFF unmapped (reads 0xFF) 0x4000-0xBFFF banked ROM window, 32 KB 0xC000 ROM bank register (wri
- rtl/cpu/leland_slave.sv:51 Master asserted /MCONT bit3 → assert Slave INT (the only Slave INT source in MAME; there is no Master->Slave command port)
- rtl/cpu/leland_slave.sv:78 Slave INT: /MCONT bit3 (leland_master_output_w case 0x09) is the only Slave INT source in MAME.
- rtl/cpu/leland_slave.sv:133 ROM banking (MAME slave_large_map_program / slave_large_banksw_w): the bank register at 0xC000 (bits [3:0]) selects a 32 KB window at 0x4000-0xBFFF: bankaddress = 0x10000 + 0x8000 * bank_reg, and bank_reg >= 14 falls back to 0x10000.
- rtl/cpu/leland_slave.sv:136 Offsets are within the slave ROM region (leland_board adds ADDR_SLAVE_BASE): 0x00000 u3 (8 KB, fixed bank) 0x02000-0x2FFFF zero fill 0x30000 u4t bank_reg 4/5 0x40000 u5t bank_reg 6/7 0x50000 u6t bank_reg 8/9 0x6000
- rtl/cpu/leland_slave.sv:154 MAME's init_offroad() calls rotate_memory("slave") twice, which left-rotates every 32 KB block from 0x10000 by 8 KB per call: a net rotation of half a block.
- rtl/cpu/leland_slave.sv:175 MAME slave_map_io installs this handler at 0x00-0x1F with .mirror(0x40), i.e. bit 6 is a don't-care -- the same port also answers at 0x40-0x5F.
- rtl/cpu/leland_slave.sv:211 Bank register write: exactly 0xC000 (MAME slave_large_banksw_w).
- rtl/cpu/leland_slave_ataxx.sv:4 Ataxx slave Z80 (MAME leland.cpp ataxx_state::slave_map_program / slave_map_io_2).
- rtl/io/steering_input.sv:9 The cabinet's wheel is a free-spinning rotary encoder (MAME IPT_DIAL): only the change between two reads matters.
- rtl/io/trackball_input.sv:4 Like MAME's IPT_TRACKBALL with PORT_KEYDELTA(4) at 80% sensitivity, a held D-pad direction adds a small fixed step every frame (no ramp, stops when released); the stick adds a step proportional to its deflection beyond a dead zone.
- rtl/leland_board.sv:79 Wheel: free-running mod-256 virtual dial (stick + d-pad + spinner combined by steering_input.sv); leland_master turns it into MAME's dial_compute_value() encoding.
- rtl/leland_board.sv:82 Pedal: raw 8-bit value (0 = released, 255 = full), read directly as MAME's IPT_PEDAL AN0/AN1/AN2 do.
- rtl/leland_board.sv:955 Transparent writes (vp_trans, Slave-only in MAME) implement the exact leland_v.cpp vram_port_w merge: if (!(data & 0xf0)) data |= old & 0xf0; if (!(data & 0x0f)) data |= old & 0x0f; by inserting a read phase before the write phase.
- rtl/leland_board.sv:1063 Work RAM: 4 KB per CPU, private (MAME: the master's 0xE000-0xEFFF is 'mainram', the slave's is a separate RAM).
- rtl/leland_board_pkg.sv:143 The Leland games share the same master/slave bank tables (MAME's offroad_bankswitch is shared); only the I/O bases, input scheme and flags differ per row.
- rtl/mem/leland_eeprom_93c46.sv:7 Standard Microwire protocol, as in MAME leland.cpp/leland_m.cpp (64 words x 16 bits).
- rtl/mem/leland_eeprom_93c56.sv:4 Start bit, 2-bit opcode, 8-bit address (MAME EEPROM_93C56_16BIT with streaming reads: CS held high keeps shifting out the next word).
- rtl/video/leland_video.sv:7 Leland hardware timing (MAME leland_v.cpp): pixel clock 7.159090 MHz (14.318181 MHz / 2) 424 x 256 total, 320 x 240 active -> 16.88 kHz / 65.95 Hz
- rtl/video/leland_video.sv:55 Graphics bank (MAME m_gfxbank), written by the master through the AY-3-8910 port A: [5:4] character bank, [3] PROM bank
- rtl/video/leland_video.sv:115 The scroll registers are used live, not latched per frame: MAME's scroll_w() calls update_partial() first, so the game relies on mid-frame scroll changes (HUD/status split).
- rtl/video/leland_video.sv:139 Stride is 256 bytes per line (MAME: y << 8).
- rtl/video/leland_video.sv:157 Background tilemap (MAME leland_get_tile_info / leland_scan)
- rtl/video/leland_video.sv:396 Low tile byte at index, high byte at index | 0x4000 (MAME ataxx_get_tile_info)
- rtl/video/leland_video.sv:578 Bit order: MAME's leland_layout uses xoffset STEP8(0,1), which its decoder reads MSB-first, so pixel column 0 is bit 7 of the plane byte.
- rtl/video/leland_video.sv:588 Plane weights are reversed relative to bg_gfx ROM order: MAME's leland_layout lists its plane offsets ascending, and the decoder gives plane offset 0 the most significant bit.
- rtl/video/leland_vram_port.sv:7 Implements MAME leland_v.cpp exactly: - video_addr_w (memory-mapped address latch, 0xF800/0xF801) - vram_port_w (I/O ports 0x00-0x1F, mirrored at 0x40-0x5F) - vram_port_r (same range)
- rtl/video/leland_vram_port.sv:27 Address latch (video_addr_w): low (0xF800): addr = (addr & 0xFE00) | ((data << 1) & 0x01FE) high (0xF801): addr = ((data << 9) & 0xFE00) | (addr & 0x01FE), buffer = data[7] The buffer bit is tracked but unused, exactly like MAME (VRAM's up
- rtl/video/leland_vram_port.sv:77 tracked like MAME's m_buffer, never used (see header)
- rtl/video/leland_vram_port.sv:119 MAME op 3: addr += inc & (addr << 1); addr ^= 1 (increment only lands when inc is set AND the address is odd)
- rtl/video/leland_vram_port.sv:188 MAME: warning only -- no write, no addr change
- rtl/video/leland_vram_port.sv:210 MAME: unknown read op returns 0
- Readme.md:20 The core was written from MAME's Leland drivers and the game ROMs, and has not been checked against an original PCB.
- Readme.md:90 You need the MAME 0.257 ROM zip for each game (`offroad`, `offroadt`, `pigout`, `ataxx`, `indyheat`, `brutforc`).
- Readme.md:115 MAME's `leland.cpp`, `leland_m.cpp`, `leland_v.cpp` and `leland_a.cpp`, used as reference (not redistributed).
MAMEと一致する、MAMEに合わせた、またはMAMEで確認したと記載 — 5
- Leland.sv:428 Nitro and Coin are J1 buttons 1-2 (joystick bits 4-5): p1_btn[1] is nitro and p1_btn[3] is coin, matching MAME's GIN0/GIN1 bit layout.
- rtl/cpu/leland_master.sv:283 Banked-low (0x2000-0x9FFF), verified against MAME's live execution: bank_reg 0/1 (bank_offset 0x2000): rom_addr == cpu_addr bank_reg >= 2: rom_addr == bank_offset + cpu_addr[14:0].
- rtl/cpu/leland_master.sv:595 matches MAME machine_reset()'s sound_port_w(0)
- rtl/cpu/leland_slave.sv:156 For a 15-bit offset "+0x4000 mod 0x8000" is the same as inverting bit 14, so one XOR reproduces it (verified byte-exact against MAME's region dump).
- rtl/cpu/leland_slave.sv:211 The reset value 0 matches MAME machine_reset().
MAMEドライバと同じ文言を含む(出典の明記なし) — 7