← All cores
Arcade-Firebeat_bm3 (ppriest)
Cites MAME source — 178
- Firebeat.sv:58 On HDMI ROT270 (firebeat.cpp); CW for a monitor turned the other way
- Firebeat.sv:280 Keyboard: MAME's keys in that layout (arrows; LCtrl LAlt Space LShift Z for the bars).
- Firebeat.sv:285 Keyboard: 1 and 2 start, 5 and 6 coin, F2 test, P pause, the arrows P1's wheel, the 24 keys as MAME's (rtl/kbm_keys.sv) on both keyboards.
- Firebeat.sv:314 BM3: MIDI chan1's transmit line, the cabinet's commands to its ST-224 effects unit (a Zoom SampleTrak, MIDI receive only), straight out of the MIDI port; the effects need the real unit (MAME has none)
- Firebeat.sv:340 ppp's IN0 (firebeat.cpp INPUT_PORTS ppp): active low; 0 Left, 1 Right, 2 Test, 3 Service, 4 Coin, 5 Start/OK; bit 6 unused high, bit 7 unused low.
- Firebeat.sv:352 A and B are keyboard only (user): MAME's Service 2 and 3 keys, 0 and Minus.
- Firebeat.sv:382 SENSOR1-4 (firebeat.cpp ppp ports): active high, three sensors a bar, bar n's three bits from sensor 3(n-1); bars 6-8 (ppd only) not wired.
- Firebeat.sv:406 the cabinet register's nibble (firebeat.cpp cabinet_r): the .mra's mod byte, ioctl index 1; 8 the Japanese ppp sets, 9 the overseas ppd (init_ppp_overseas), 0 popn4 (init_popn_jp)
- rtl/bm3_ctrl.sv:3 Beatmania III's turntables and effect dials (firebeat.cpp INPUT_PORTS bm3: TURNTABLE_P1/P2 a 10-bit trackball X count, EFFECT1-7 5-bit dials, both wrapping), and the keys mame_keys leaves out.
- rtl/bm3_ctrl.sv:16 Keyboard: X player 1's pedal (MAME's P1 Foot), Minus the B button (MAME's Service 3); two keys a dial, down and up: 1 T Y, 2 U I, 3 H J, 4 K L, 5 N M, 6 , ., 7 ; '.
- rtl/bm3_ctrl.sv:21 counts a frame for a held direction (MAME's PORT_KEYDELTA)
- rtl/board/ao486_floppy/floppy.v:118 [Firebeat] MAME's do_dir_r: bit 7 only, with the motor on
- rtl/board/ao486_floppy/floppy.v:261 [Firebeat] the drive's seek bit clears once SENSE INTERRUPT's ST0 is read, as MAME's upd765 (MSR D1 then D0 across the result; bm3's startup check reads 0x80 before its next command, E950 otherwise)
- rtl/board/ao486_floppy/floppy.v:365 [Firebeat] READ DELETED DATA without SK: every sector on an image has a normal data mark, so MAME's upd765 transfers the first and ends (ST2 CM)
- rtl/board/ao486_floppy/floppy.v:500 [Firebeat] MAME's fifo_w clears it
- rtl/board/ao486_floppy/floppy.v:674 [Firebeat] MAME's seek end: ST0 SE | drive, no head
- rtl/board/ao486_floppy/floppy.v:679 [Firebeat] MAME's upd765 at a transfer's end without TC: abnormal termination, end of cylinder, C as given, H 0, R 1 [Firebeat] READ DELETED's end on a normal sector: ST0 normal, ST2 CM, C H R N as given
- rtl/board/ao486_floppy/floppy.v:724 [Firebeat] head load before a read or write's first data request, as MAME's upd765 (HEAD_LOAD, 500 * (HLT << 1) bit cells): 2 * HLT steps of 1 ms at 500 kbps, timed as the seek's steps are.
- rtl/board/fb_ata.sv:3 firebeat's ATA interface (bus/ata/ataintf.cpp) with its two ATAPI CD-ROM drives: master (ata:0) the program CD, slave (ata:1) the audio CD (firebeat.cpp:744-749), each on an hps_io image slot.
- rtl/board/fb_ata.sv:6 The bus side is MAME's internal 16-bit value of a register access, the caller swapping bytes as cs0_swap_r/w and cs1_swap_r/w do.
- rtl/board/fb_ata.sv:47 CD audio, both drives', at MAME's speaker gain
- rtl/board/fb_atapi.sv:3 One ATAPI CD-ROM drive as MAME runs it.
- rtl/board/fb_atapi.sv:4 Pop'n Music's SPU drive (ATAPI_DVDROM, a CD-ROM drive to MAME but for its image) is a master on its own bus.
- rtl/board/fb_atapi.sv:7 Protocol (machine/atahle.cpp, bus/ata/atapihle.cpp): the task file, reset and diagnostic with MAME's timers (device-1 detection, diagnostic and PDIAG wait 2 ms each; SET FEATURES and CACHE FLUSH 10 us), the ATA commands an ATAPI device take
- rtl/board/fb_atapi.sv:12 Commands (bus/ata/atapicdr.cpp ExecCommand, machine/t10mmc.cpp, t10spc.cpp, sound/cdda.cpp): the media-change gate (UNIT ATTENTION 28h until TEST UNIT READY, after power-on or a new disc), TEST UNIT READY, REQUEST SENSE (with t10mmc's audio
- rtl/board/fb_atapi.sv:25 Access (fb_ata): a one-clock strobe; every drive takes every write; the selected drive answers a read (resp) with its data the clock after, MAME's internal 16-bit value (low byte first).
- rtl/board/fb_atapi.sv:561 MAME's identify words (atapicdr device_start), low byte first
- rtl/board/fb_atapi.sv:804 past the lead-out MAME's get_track finds no track: 0
- rtl/board/fb_atapi_absent.sv:3 bm3 never selects it (its device register writes are all 0xA0: debug/bm3-boot/io.txt), so of fb_atapi with CSEL 1 only what an unselected slave drives is kept: DASP (asserted from power-on until the first SRST) and PDIAG (raised 2 ms after
- rtl/board/fb_board.sv:3 The Firebeat board for ParaParaParadise (firebeat.cpp firebeat_ppp_map): the PPC403GCX with its caches and DMA, the bus, and the devices.
- rtl/board/fb_board.sv:8 Physical addresses (31 bits): 0x00000000-0x01FFFFFF work RAM SDRAM word port 0x40000000-0x4000000F the 403's serial port and the DS1991 (fb_spu), bytes 0x70000000-0x70000FFF KBM, BM3: the MIDI PC16552D (two fb_ns16550), byte lan
- rtl/board/fb_board.sv:36 Interrupts (firebeat.cpp:1152-1160, 1195): IRQ0 the GCU, IRQ3 the SPU's mailbox (POPN), IRQ4 the ATA; the 403's serial port and DMA internal.
- rtl/board/fb_board.sv:37 KBM: IRQ1 the MIDI UART (firebeat.cpp:1903-1925).
- rtl/board/fb_board.sv:46 BM3: Beatmania III (firebeat_bm3_map), the POPN board with parts of the extend board: the MIDI UART with nothing on its receive lines (chan1 drives the ST-224 effector, not emulated by MAME), only chan1's interrupt on IRQ1 (bit 0); the FDC
- rtl/board/fb_board.sv:49 0x7D000330-33F writes dropped (MAME's nopw).
- rtl/board/fb_board.sv:51 mon_*: each bus access to the ranges MAME's capture taps (0x40000000-0x4000000F, 0x70000000-0x7FF7FFFF), at its end, as the taps see it (one per CPU or DMA access, the mask from the byte enables, the data read or written) -- sim/board_tb co
- rtl/board/fb_board.sv:62 power-on: the RTC (MAME's has no reset) and the mounted discs, which a board reset leaves alone
- rtl/board/fb_board.sv:74 hold the CPU while the DMA runs, as MAME runs a transfer inside the DMACR write (benches, for MAME's order of accesses; the GCU's status then reads MAME's constant).
- rtl/board/fb_board.sv:78 the timebase runs (benches stop it to load MAME's values)
- rtl/board/fb_board.sv:155 the speaker: YMZ280B and CD audio (firebeat.cpp's routes)
- rtl/board/fb_board.sv:220 ---------------------------------------------------------------- the CPU MAME runs a transfer inside the DMACR write (ppccom.cpp:2497-2505).
- rtl/board/fb_board.sv:224 dma_hold: the CPU held for the whole transfer, MAME's order of every access
- rtl/board/fb_board.sv:323 the core's line_bits: [2] SPU receive (EXISR bit 4, MAME's PPC4XX_IRQ_BIT_SPUR), [1] SPU transmit, [8:5] DMA channels 0-3 high to low (PPC4XX_IRQ_BIT_DMA0 is bit 8)
- rtl/board/fb_board.sv:326 the DCRs neither the core nor the DMA holds (bank registers and the rest): kept and read back, as MAME's m_dcr array (ppccom.cpp:2512-2518)
- rtl/board/fb_board.sv:436 a CPU access to a GCU waits for a running DMA transfer to end, MAME's order (its transfer runs inside the DMACR write).
- rtl/board/fb_board.sv:567 KBM: each channel's interrupt callback, as firebeat_kbm_state::midi_keyboard_*_irq_callback (firebeat.cpp:1903-1925): chan1 the left keyboard (enable and active bit 0), chan0 the right (bit 1); an update sets the active bit and IRQ1 when it
- rtl/board/fb_board.sv:570 BM3: chan1 alone, as midi_st224_irq_callback (bit 0); the FDC's interrupt sets active bit 2 and IRQ1 when bit 2 is enabled and never clears IRQ1 (floppy_irq_callback, firebeat.cpp:1405-1412)
- rtl/board/fb_board.sv:777 MAME gives it no vblank (firebeat_kbm: rscreen's vblank goes nowhere), so it never raises IRQ0, but its IRQ-control clear drops the line both share (docs/MAME_KLUDGES.md).
- rtl/board/fb_board.sv:824 the ATA interface: MAME's internal value is the bus halfword byte-swapped
- rtl/board/fb_board.sv:838 the speaker: YMZ280B outputs 1 and 0 to its left and right (firebeat.cpp:770-771), CD audio straight
- rtl/board/fb_cache.sv:6 MAME models no cache.
- rtl/board/fb_cd_slot.sv:5 The image (MiSTer_Firebeat's support/firebeat, sim/board_tb's server): the disc's frames by logical frame number (MAME's cdrom_file logical LBA), 2,352 bytes each, then padding to a 512-byte block, then two blocks of TOC: bytes 0-3 "FBTC"
- rtl/board/fb_cd_slot.sv:21 The sample play_lba/play_smp is output at each play_tick as sample * vol >>> 9 (MAME: the cdda route's 0.5 times MODE SELECT's vol / 255), 0 while the drive is not playing or the frame has not arrived (HACKS).
- rtl/board/fb_flash.sv:3 The three Fujitsu MBM29F016A (2 MB, 8-bit) as MAME runs them (devices/machine/intelfsh.cpp, maker 0x04, device 0xAD): flash_main at 0x7D400000, flash_snd1 at 0x7D800000, flash_snd2 at 0x7DA00000 (firebeat.cpp:791-793).
- rtl/board/fb_flash.sv:8 Commands, MAME's write_full for this part: F0/FF reset; 90 read ID (maker at offset 0, device at 1, 0 at 2); 50 clear status (status 0x80); 70 read status; 40/10 program one byte (then status); the AMD sequence AA at x555/xAAA, 55 at x2AA/x
- rtl/board/fb_flash.sv:12 An erase sets status 0x08; until MAME's timer ends (16 s chip, 1 s sector) every read returns the status with bits 6 and 2 toggled at each read (MAME reads status anywhere for this part: firebeat.cpp's pop'n music note in intelfsh.cpp); the
- rtl/board/fb_flash.sv:19 An invalid sector reads 0xFF, as MAME's blank chip, and once out of reset a background pass writes 0xFF over each invalid sector and marks it valid; a CPU erase marks its sectors valid at once.
- rtl/board/fb_flash.sv:24 Port y: the YMZ280B's reads of the two sound chips (its 4 MB space: snd1 then snd2), through the same mode logic, as MAME's ymz280b_map.
- rtl/board/fb_floppy.sv:14 bm3 moves data by programmed I/O (SPECIFY ND=1, HARDWARE_NOTES "bm3's floppy in MAME"); floppy.v's DMA port is tied off.
- rtl/board/fb_floppy.sv:17 The interrupt is a clock's pulse on floppy.v's line rising: the extend board latches it (fb_board, IRQ1 bit 2), as MAME's floppy_irq_callback acts on the rise only.
- rtl/board/fb_gcu.sv:3 K057714 GCU command engine, from MAME's k057714.cpp (G:): the VRAM words and commands the register file (fb_gcu_shell) collects, executed in order against VRAM on DDR3.
- rtl/board/fb_gcu.sv:11 VRAM word k is MAME's m_vram[k], {pixel 2k, pixel 2k+1}, at byte 4k; so pixel q of a beat is in field q ^ 1 (bits 16(q^1)+15:16(q^1)).
- rtl/board/fb_gcu.sv:30 MAME executes a command within the register write; here the queue absorbs them and the shell holds the bus only when the queue is full or a VRAM read must wait for it (HACKS).
- rtl/board/fb_gcu_shell.sv:3 K057714 GCU's register file and VRAM ports as MAME's k057714.cpp reads and writes them; fb_gcu executes what they collect.
- rtl/board/fb_gcu_shell.sv:16 Reads: 0x80-0xFC the VRAM words from the read address on, once the queue has drained; 0x78 status: 0xFFFF0005 as MAME's, except that bits 1:0 (port 0) or 3:2 (port 1), the ready fields the code polls (FFF863D8, 80042A88), read 0 while a DMA
- rtl/board/fb_gcu_shell.sv:22 irq_clr drops it too: on kbm both GCUs drive the one IRQ0 line (firebeat.cpp gcu_interrupt), so the second GCU's clear clears the first's.
- rtl/board/fb_gcu_shell.sv:177 a write of the display's frame registers (0x20-0x4C: origins, sizes, bases) waits until every command and VRAM word queued before it is drawn, the order MAME's instant draws give: bm3 flips its base at vblank without waiting for the engine
- rtl/board/fb_midi_kbd.sv:3 A Keyboardmania MIDI keyboard as MAME's konami/midikbd.cpp: every 10 ms the 24 keys are compared with the last scan; each change queues Note Off (80 nn 7F) or Note On (90 nn 7F), notes 3C-53 from key 0, and a scan with no change queues Acti
- rtl/board/fb_midi_kbd.sv:5 Bytes go out on txd at 31250 baud, 8N1, from a 16-byte ring that is written after its index advances and read before: midikbd.cpp's push_tx and tra_complete, which send each byte one push late (docs/MAME_KLUDGES.md).
- rtl/board/fb_midibridge.sv:3 MIDI chan1's transmit (the bytes MAME's firebeat.cpp sends to xt446 midi_w, or bm3's to the ST-224) handed to the sound server on the HPS (MiSTer_ArcadeSoundServer, src/firebeat/): KBM's XT446 as a SoundFont synth, bm3's ST-224 (ST224) as a
- rtl/board/fb_ns16550.sv:3 One NS16550 channel as MAME's ins8250.cpp models it (ns16550_device): the registers, the 16-byte receive and transmit FIFOs, a transmitter and receiver at the divisor's rate from a 24 MHz clock enable (Keyboardmania's duart_midi, firebeat.c
- rtl/board/fb_ns16550.sv:7 The interrupt line: MAME calls the channel's out_int callback at every update_interrupt, with the line's state at that point, and Keyboardmania's callbacks act on each call, not on changes (firebeat.cpp:1903-1925).
- rtl/board/fb_ns16550.sv:13 The FIFO timeout fires dl/2 24 MHz clocks after a byte arrives or is read, MAME's set_timer() (ins8250.h:129; docs/MAME_KLUDGES.md).
- rtl/board/fb_ns16550.sv:51 [Firebeat] a fifth bit tells a full transmit FIFO from an empty one; MAME's 4-bit indices (ins8250.cpp push_tx) lose 16 bytes written behind a busy shift register, which kbm does on the board
- rtl/board/fb_pc16552.sv:3 The PC16552D dual UART at 0x7DC00000 (firebeat.cpp:773-775, 794: "duart_com", the network UART, its interrupt lines unconnected), as registers only: two NS16550 channels (channel 0 at offsets 0-7, channel 1 at 8-15) read back as MAME's ins8
- rtl/board/fb_pc16552.sv:5 Nothing is sent or received, so the transmitter is always empty (LSR 0x60) and the only interrupt is THR-empty: pending after an IER write enabling it, a THR write or a transmit FIFO reset, cleared by reading IIR while it is the one shown (
- rtl/board/fb_ppc_dma.sv:3 The PPC403's DMA controller as MAME runs it (ppccom.cpp:2497-2505 ppc4xx DCR writes, 2769-2818 ppc4xx_dma_decrement_count, 2980-3085 ppc4xx_dma_exec): four channels of DMACR, DMACT, DMADA, DMASA, DMACC at DCR 0xC0 + 8 x channel, and DMASR a
- rtl/board/fb_ppc_dma.sv:12 MAME runs the transfer inside the DCR write; here it runs beside the CPU, busy until it ends (the GCU's status register reports it: the game waits for that before the next transfer).
- rtl/board/fb_rtc65271.sv:3 Epson RTC-65271 as MAME runs it (devices/machine/rtc65271.cpp): 64 register bytes (clock, alarms, A-D, 50 of user RAM) through an index register, and 4 KB of extended RAM in 128 pages of 32 bytes.
- rtl/board/fb_rtc65271.sv:14 The update cycle, MAME's: every second (from power-up) UIP is set if DV is 0x20 and SET is clear; 1,984 us later the time advances by a second in BCD or binary (B.DM), 12 or 24 hours, with MAME's month lengths and leap rule (year & 3), UIP
- rtl/board/fb_rtc65271.sv:17 The periodic flag C.PF is set at the rate A.RS selects (MAME's SQW timer).
- rtl/board/fb_rtc65271.sv:20 The persistent part is MAME's .nv format for this chip, 4,152 bytes: version 0, A (its DV), B (SET, DM, 24h, DSE), the three alarm registers, user RAM (registers 14-63), the 4 KB.
- rtl/board/fb_rtc65271.sv:67 MAME's days_in_month_table, binary
- rtl/board/fb_rtc65271.sv:174 IRQF follows MAME's field_interrupts
- rtl/board/fb_rtc65271.sv:207 12 hours: MAME's 0-based hour with bit 7 for PM (rtc_clock_updated)
- rtl/board/fb_rtc65271.sv:229 MAME's nvram_default: every register 0 but B's binary mode (firebeat.cpp's note there); a loaded NVRAM file then overwrites the persistent ones
- rtl/board/fb_spu.sv:3 The PPC403's serial port (SPU, internal map 0x40000000-0x4000000F) as MAME runs it (ppccom.cpp:3146-3372), with the DS1991 iButton behind its DS2480B line driver on it (firebeat.cpp:820-985, ibutton_w and security_w).
- rtl/board/fb_spu.sv:12 MAME's timer, kept: every character period (clock x (divisor + 1) x 16 x bits per character, bits = 7 + control[3] + 1 + control[0]; clock 66 MHz, or 3.6864 MHz with IOCR bit 1) while the receiver or transmitter is enabled, restarted when t
- rtl/board/fb_spu.sv:18 Interrupts as MAME's update_irq_states, and only when MAME calls it: after each period, and on a write to the line status or a command register.
- rtl/board/fb_spu.sv:20 Reading the buffer leaves the receive interrupt standing until then; the BIOS's dispatcher, clearing EXISR after the handler, sees it again and runs the handler a second time, which clears the line status (ppccom.cpp:3150-3175, 3289, 3304-3
- rtl/board/fb_spu.sv:27 Any other command sets `bad` (MAME stops with a fatal error).
- rtl/board/fb_spu.sv:46 the dongle image (firebeat.cpp set_ibutton): 3 x (8 identifier, 8 password, 48 data)
- rtl/board/fb_spu.sv:132 MAME's update_irq_states, on the registers it sees
- rtl/board/fb_spu.sv:142 the transmitter at the period, the receiver two clocks later: MAME's callback sends first, and the DS1991's reply to that byte (queued the clock after tx_go) is received in the same callback
- rtl/board/fb_spu.sv:200 MAME: a receive-buffer overrun is fatal
- rtl/board/fb_ymz280b.sv:3 YMZ280B (0x7D000400-0x7D000401) from MAME's devices/sound/ymz280b.cpp: the register interface, the external memory readback (registers 84-86, offset 0 read) and the eight voices: 4-bit ADPCM, 8- and 16-bit PCM, loop, key on/off, level and p
- rtl/board/fb_ymz280b.sv:7 Register 87 writes nothing (ymz280b_map has no write, firebeat.cpp:804-808).
- rtl/board/fb_ymz280b.sv:10 MAME's stream runs at clock / 192 (88.2 kHz) and so does this.
- rtl/board/fb_ymz280b.sv:13 Each voice adds interp * level / 2 per side, and the sums >> 8 are MAME's 16-bit output (add_int with 32768 * 256 full scale).
- rtl/board/fb_ymz280b.sv:41 MAME's outputs 0 and 1, new each tick
- rtl/board/fb_ymz280b.sv:294 after the stop address MAME ramps the last sample down by 15/16 a sample
- rtl/cpu/ppc403/ppc403_core.sv:3 IBM PowerPC 403GA/403GCX integer core, written from MAME's model (src/devices/cpu/powerpc, ppccom.cpp and ppcdrc.cpp, PPCCAP_4XX).
- rtl/cpu/ppc403/ppc403_core.sv:5 MAME's semantics are followed where they differ from the IBM manual; each such place is marked "MAME:" and listed in docs/MAME_KLUDGES.md.
- rtl/cpu/ppc403/ppc403_core.sv:25 PVR: 403GA 0x00200000, 403GCX 0x00201400 (MAME ppc.h:194, 197).
- rtl/cpu/ppc403/ppc403_core.sv:25 MAME runs the GCX as the GA except for this value and the MMU, which firebeat's games leave off.
- rtl/cpu/ppc403/ppc403_core.sv:70 MAME asserts and clears inside one device call
- rtl/cpu/ppc403/ppc403_core.sv:71 level sources, as line_bits places them on MAME's EXISR bits
- rtl/cpu/ppc403/ppc403_core.sv:147 [Firebeat] SPR 954; MAME does not hold it
- rtl/cpu/ppc403/ppc403_core.sv:216 pending external interrupt, as MAME computes irq_pending (ppccom.cpp:2573-2577)
- rtl/cpu/ppc403/ppc403_core.sv:221 EXISR level mask from IOCR (ppccom.cpp:2556-2563)
- rtl/cpu/ppc403/ppc403_core.sv:233 MAME gates every interrupt on MSR[EE] (ppcdrc.cpp:805-811)
- rtl/cpu/ppc403/ppc403_core.sv:326 4xx write protection (ppccom.cpp:1336-1344): 1 = the write faults.
- rtl/cpu/ppc403/ppc403_core.sv:477 MAME: MQ reads 0 (ppcdrc.cpp:4248)
- rtl/cpu/ppc403/ppc403_core.sv:478 MAME: alignment writes the OEA DAR
- rtl/cpu/ppc403/ppc403_core.sv:492 MAME: the written value, not a count
- rtl/cpu/ppc403/ppc403_core.sv:723 [Firebeat] the watchdog's period, 2^17, 2^21, 2^25 or 2^29 timebase ticks (TCR WP); MAME has none
- rtl/cpu/ppc403/ppc403_core.sv:762 external interrupt lines: edge-set, level-mirror (ppccom.cpp:2539-2572)
- rtl/cpu/ppc403/ppc403_core.sv:783 MAME fires one tick after the timebase crosses a multiple of the period
- rtl/cpu/ppc403/ppc403_core.sv:806 MAME clears only WRC; the rest is power-on zero
- rtl/cpu/ppc403/ppc403_core.sv:828 external / timer interrupt (ppcdrc.cpp:1069-1100)
- rtl/cpu/ppc403/ppc403_core.sv:953 WRC set until reset (ppccom.cpp:2341)
- rtl/cpu/ppc403/ppc403_core.sv:954 MAME restarts the PIT when PIE changes (ppccom.cpp:2206-2208)
- rtl/cpu/ppc403/ppc403_core.sv:964 MAME: each timebase half write zeroes the other half (ppccom.cpp:2224-2229)
- rtl/cpu/ppc403/ppc403_core.sv:1001 MAME: undefined cases give 0, OV, CR0 = EQ (ppcdrc.cpp:3549-3566)
- rtl/cpu/ppc403/ppc403_core.sv:1027 MAME: m_cache_line_size = 32 (ppccom.cpp:715)
- rtl/cpu/ppc403/ppc403_core.sv:1031 [Firebeat] the line operations go to the caches (MAME runs them as no-ops: it has no caches; MAME_KLUDGES.md); the touches, sync and eieio stay no-ops.
- rtl/cpu/ppc403/ppc403_core.sv:1064 MAME: stwcx.
- rtl/cpu/ppc403/ppc403_core.sv:1131 MAME: lmw skips rA except when rA is r31 (ppcdrc.cpp:2937)
- rtl/cpu/ppc403/ppc403_core.sv:1145 MAME: the first byte clears the register (ppcdrc.cpp:1675)
- rtl/firebeat_sys.sv:22 index 0, the .mra's image: BIOS (ROM_LOAD16_WORD_SWAP, swapped by the .mra), then the dongle at 0x80000; POPN: BIOS, the SPU's program (likewise swapped) at 0x80000, the dongle at 0x100000; POPN and KBM: the set's RTC preset after the dongl
- rtl/firebeat_sys.sv:343 the HPS's time, set once, when the board first leaves reset (MAME sets it at start-up); the weekday as MAME's, 1 for Sunday
- rtl/firebeat_sys.sv:429 Its ATA bus has one drive, the data DVD on hps_io slot 1 (fb_atapi, fb_dvd_slot), whose DMA writes wave RAM a word at a time (firebeat.cpp spu_dma_callback: bank + the DMA address, which then counts on).
- rtl/firebeat_sys.sv:607 BM3: the sends mixed in (MAME's sound) unless the server takes them
- rtl/kbm_keys.sv:3 Keyboardmania's 24 keys from a PS/2 keyboard, MAME's codes (konami/midikbd.cpp INPUT_PORTS): Q W E R T Y U I O A S D F G H J K L Z X C V B N, C1 up to B2.
- rtl/kbm_keys.sv:4 MAME gives both MIDI keyboards the same keys.
- rtl/kbm_usbmidi.sv:6 96 (60 is C4, the game's own first note, midikbd.cpp's 3C).
- rtl/mame_keys.sv:1 MAME's default keys (src/emu/inpttype.ipp) in hps_io's joystick layout, to OR into joystick_0/1: right, left, down, up at bits 0-3, buttons 1-7 at 4-10, Start, Coin, Pause, Service at the J1 line's own positions (parameters).
- rtl/mame_keys.sv:7 P1 arrows, LCtrl LAlt Space LShift Z X C V B, 1 start, 5 coin P2 R F D G, A S Q W E (MAME gives P2 no sixth key), 2 start, 6 coin F2 service (test) switch, 9 and 0 service coins 1 and 2, P pause
- rtl/mame_keys.sv:24 MAME's Service 1, 2: wire to the board's SERVICE1/2 bits, if any
- rtl/spu/fb_atahdd.sv:3 BM3: the SPU's hard disk as MAME runs it (IDE_HARDDISK: machine/atastorage.cpp on machine/atahle.cpp), the only device on its bus (master, no slave).
- rtl/spu/fb_atahdd.sv:18 EC IDENTIFY DEVICE MAME's identify words for the image's geometry
- rtl/spu/fb_atahdd.sv:19 10 RECALIBRATE, 91 SET CONFIG, F8 READ NATIVE MAX (10 us, then the interrupt); 70 SEEK, C6, E1 E3 F9 (the interrupt at once); anything else, the writes and the 48-bit commands included, is aborted (ERR, ABRT, the interrupt), as atahle's def
- rtl/spu/fb_atahdd.sv:30 A sector the timing has reached but the slot has not delivered keeps BSY up until it arrives (MAME's data is always there).
- rtl/spu/fb_atahdd.sv:34 Reads return MAME's 16-bit value with the high byte 0xFF above an 8-bit register (as fb_atapi; HARDWARE_NOTES "bm3's boot against MAME").
- rtl/spu/fb_atahdd.sv:505 "MAME Virtual Hard Disk"
- rtl/spu/fb_rf5c400.sv:4 The Ricoh RF5C400 as MAME models it (sound/rf5c400.cpp): 32 PCM channels at 44.1 kHz (16.9344 MHz / 384) from the wave RAM, MAME's envelopes, volume and pan tables (fb_rf5c400_tables.svh, scripts/gen_rf5c400_tables.py, in fixed point where
- rtl/spu/fb_rf5c400.sv:11 Registers (the 68000's 400000-400FFF, word offset addr): below 0x400 the globals rf5c400_r/w handle (status 0x00, channel control 0x01, the polled channel 0x08 and its position 0x09, the memory window 0x11-0x14; a write of 0x09 sets the add
- rtl/spu/fb_rf5c400.sv:16 Each 44.1 kHz tick the channels are worked in turn: a channel-control write is held for its channel and applied before its next sample, where MAME applies it at the write; the 0x09 read gives the position after the channel's last sample.
- rtl/spu/fb_rf5c400.sv:18 Both are within a sample of MAME's.
- rtl/spu/fb_rf5c400.sv:59 x / 2^n toward zero, as MAME's double-to-int conversions
- rtl/spu/fb_rf5c400.sv:296 0.5, toward zero as MAME's .wav
- rtl/spu/fb_spu68k.sv:4 The Pop'n Music SPU board's 68000 side (firebeat.cpp spu_map F:1211-1226): the CPU, its 256 KB RAM, the CY7C131 dual-port RAM shared with the PPC, the interrupt logic and the board registers.
- rtl/spu/fb_spu68k.sv:21 Interrupts as MAME raises them (F:1236-1255, 1300-1320, 1384-1395), autovectored: IRQ2 the 500 Hz timer while no SPU ATA interrupt is pending; dropped by the ATA interrupt falling, or acknowledged IRQ4 the dual-port RAM's left mailbox (PP
- rtl/video/fb_gcu_disp.sv:3 The GCU's display as k057714.cpp's draw() and draw_frame() compose it (G:485-624), a line at a time from VRAM in DDR3 (a wide hornet_ddr3 master), and its CRTC from registers 0x00-0x08.
- rtl/video/fb_gcu_disp.sv:19 When registers take effect: the CRTC at the frame's wrap; the contexts, layer select, register 0x6C and the visible area used for clipping as line 0 is fetched, at the start of the last line (HACKS: MAME composes at vblank's start).
- README.md:3 A MiSTer FPGA core for Konami's Firebeat arcade platforms (MAME's `konami/firebeat.cpp`), built with Quartus Prime 17.0.2 Lite for the DE10-nano.
- README.md:111 Each set's two discs go in a folder named after the set, under `games/`, with MAME's file names:
- README.md:189 Each set's two discs go in a folder named after the set, under `games/`, with MAME's file names:
- README.md:266 Each set's two discs go in a folder named after the set, under `games/`, with MAME's file names (they contain spaces):
- README.md:360 Each set has a program CD and a hard disk, both CHDs with MAME's file names, in a folder named after the set under `games/`:
- README.md:416 Without the server the core plays that sound without effects, as MAME does.
- README.md:506 | K057714 GCU | blitter, display lists, four display contexts, CRTC; 32 MB VRAM in DDR3 | written from MAME's model; VRAM and frames equal to MAME's on the capt
- README.md:507 | YMZ280B | 8-voice ADPCM/PCM from the sound flash | written from MAME's model; bench against a MAME capture |
- README.md:508 | ATA, two CD-ROM drives | program CD and audio CD with CD audio | ATAPI written from MAME's model, over hps_io's image slots |
- README.md:509 | 3 x 29F016A flash | program and samples, written by the game's install | written from MAME's model; SOUND FLASH INIT equal to MAME's (`sim/boot_tb`) |
- README.md:510 | RTC65271 | clock and 4 KB NVRAM | written from MAME's model |
- README.md:512 | DS1991 dongle | serial, mode, licence | written from `firebeat.cpp` |
- README.md:519 The game switches the GCU to this mode (`firebeat.cpp` `control_w`); before that the power-on mode is 640 x 480 of 800 x 525.
- README.md:520 MAME's `set_raw` declares 640 x 480 at 25.175 MHz, 59.94 Hz, which ParaParaParadise does not use.
- README.md:632 MAME is the accuracy reference, with its own acknowledged uncertainties noted where they matter.
- README.md:635 CPU and caches: 2,000,000 instructions of ppp11's play loop and 1,777,257 of its loading loop equal to MAME's (`sim/cpu_tb`).
- README.md:637 Board bus: 302,908 device accesses in MAME's order (`sim/board_tb`).
- README.md:638 Boot from power-on: 6,000 MAME frames, every ATA data word (7,098,647) equal to MAME's (`sim/boot_tb`).
- README.md:640 Flash install: 15,244,959 flash writes in MAME's order, the three chips equal at the end.
- README.md:641 GCU: VRAM 0 pixels differing on the attract and play windows (`sim/gcu_tb`); the shown frame equal to MAME's `screen_out` (`sim/disp_tb`).
- README.md:648 The **MAMEdev team** — Ville Linde and the contributors to `firebeat.cpp`, `k057714.cpp` and the device files — for the emulation that is this core's specificat
- README.md:664 | `debug` | reference captures from MAME used as ground truth (gitignored) |
- README.md:665 | `roms` | your own MAME sets (gitignored, never committed) |
Says it matches, follows or was checked against MAME — 1
- README.md:505 | PPC403GCX, 66 MHz | main CPU | Hornet core's `ppc403_core`, vendored; caches (I 16 KB, D 8 KB write-back) and DMA channel 3 written here; matches MAME over 2,
Says it was translated, ported or taken from MAME — 2
- rtl/board/fb_rtc65271.sv:22 tm_set takes the time from the HPS (BCD fields), converted to binary when B.DM is set, as MAME's rtc_clock_updated.
- README.md:558 `docs/MAME_KLUDGES.md` lists what is taken from MAME as behaviour and what is known not to be right.
Keeps a MAME approximation — 4
- rtl/board/fb_atapi.sv:19 Differences from MAME (HACKS): data for a transfer is produced while the drive shows BSY (MAME produces it inside the command write); a READ transfers at most one 2048-byte sector a DRQ (`bad` if the host's byte count asks for more: firebea
- rtl/board/fb_ymz280b.sv:15 A sample is decoded when it is needed, where MAME decodes a stream update's worth ahead (docs/HACKS.md).
- rtl/cpu/ppc403/ppc403_core.sv:788 The long periods (WP 2, 3) never reset, as MAME (HACKS.md): kbm2nd's kick, an idle task (0x800034CC), starves for over a second while LOADING DATA on this core.
- rtl/spu/fb_hdd_slot.sv:8 A mount reads that block; an image without it (a raw `chdman extracthd` image) is all sectors, with 16 heads and 64 sectors a track (HACKS: MAME guesses its own).