← コア一覧
rabbit (decoryah)
MAMEとの相違点を記載 — 3
- README.md:11 Simulated with the game's real program and compared with MAME 0.289 (see "What is verified"), and where MAME is wrong, with a recording of a real board (see "Wh
- README.md:76 Three things MAME does not do make the board's picture, and the core does all three: the chip shows a frame's sprite list one frame later than the rest of the f
- README.md:113 That shows where the game races itself: from frame 306 of scripted play its blit queue (`docs/hardware.md` "Blitter") sometimes starts a frame's two blits from
MAMEのソースを引用 — 88
- Rabbit.sv:5 Written for MiSTer from MAME 0.289's driver (src/mame/metro/rabbit.cpp, src/devices/sound/i5000.cpp).
- Rabbit.sv:149 keyboard: 1 / 2 start, 5 / 6 coin, 9 service, F2 the test switch (MAME's defaults)
- Rabbit.sv:174 MAME's INPUTS (0x200000), active low: bit 0 the EEPROM (the core), 1 unknown, 2 / 3 start 1 / 2, 4 service 1, 5 the test switch, 6 / 7 coin 1 / 2, 15:8 player 1 (up, down, left, right, buttons 1-4), 23:16 player 2, 31:24 unused
- Rabbit.sv:237 The file is MAME's nvram/<set>/eeprom (128 bytes, little-endian words).
- Rabbit.sv:286 the board's 57.61 Hz (default) or MAME's 60 Hz
- Rabbit.sv:287 the Enhanced sound (default: the board's pitch, the output filter) or MAME's exactly
- Rabbit.sv:305 the OSD's volume steps on MAME's own level
- rtl/rabbit_blitter.sv:2 The I5000's blitter as MAME 0.289 does it (rabbit_state::do_blit): a list of commands in gfx1 writes 16-bit halves of tilemap entries.
- rtl/rabbit_blitter.sv:10 An entry is (line * 128 + column); only tilemaps 0-3 and entries 0-4095 exist (MAME's larger buffer is never shown).
- rtl/rabbit_blitter.sv:13 MAME does the whole list at the instant of the write that starts it (a word write to 40070e) and raises IRQ 4 500 us later.
- rtl/rabbit_blitter.sv:13 Here the list is read from the SDRAM a pair of words at a time (both halves of a pair are next to each other: rabbit_loader.sv), a write a clock; the interrupt comes 500 us after the start as in MAME.
- rtl/rabbit_core.sv:2 The Rabbit board (MAME 0.289 rabbit.cpp): the 68EC020 with its program cache, the Imagetek I5000 (video, blitter, sound) and the 93C46 EEPROM.
- rtl/rabbit_core.sv:17 the raster: 1 = the board's 57.61 Hz, 0 = MAME's 60 Hz (rabbit_video)
- rtl/rabbit_core.sv:18 the sound: 1 = Enhanced (the game's sample rate, the output filter), 0 = MAME's (rabbit_i5000)
- rtl/rabbit_core.sv:29 inputs: MAME's INPUTS port, active low, bit 0 ignored (the EEPROM's DO)
- rtl/rabbit_eeprom.sv:1 93C46 serial EEPROM, 16-bit organisation (64 words), as MAME 0.289 emulates it (src/devices/machine/eepromser.cpp, eeprom.cpp: eeprom_serial_93cxx_device, streaming disabled), driven the way rabbit_state::eeprom_write drives it: each CPU wr
- rtl/rabbit_eeprom.sv:10 WRAL (16 data bits) A write, an erase, ERAL / WRAL keep the chip busy for 1.75 / 1 / 8 / 8 ms (MAME's operation times): DO reads 0 in the start-bit state until it is ready, and a start bit is not taken meanwhile.
- rtl/rabbit_eeprom.sv:14 The contents at power-up come from the image (i_ld_*: big-endian words, MAME's "eeprom" region); the saved file (the MRA's <nvram>) is MAME's nvram/<set>/eeprom: little-endian words (i_nv_* writes it in, o_nv_rdata reads it back, o_written
- rtl/rabbit_eeprom.sv:49 MAME's 32-bit shift register
- rtl/rabbit_i5000.sv:2 The Imagetek I5000's sound side as MAME 0.289 emulates it (src/devices/sound/i5000.cpp, hap): 16 ADPCM channels (OKI ADPCM, 4-bit or 3-bit codes) read from a 4 MB sample ROM, with an 8-bit volume per side.
- rtl/rabbit_i5000.sv:3 Two modes (OSD Sound, the input enhanced): MAME (enhanced = 0): MAME's device: a fixed 40 MHz / 1024 = 39062.5 Hz, the register 0x46 ignored, the 16-bit mix out.
- rtl/rabbit_i5000.sv:5 Enhanced (enhanced = 1): the sample rate the game sets in register 0x46 (47,962 Hz, the board's pitch: MAME plays every sound 23 % slow), see the sample clock below, and the mix through rabbit_sndflt (rumble below 150 Hz and hiss above 11 k
- rtl/rabbit_i5000.sv:8 Registers (16-bit, at 400900 + 2 * reg; only whole-word writes count): ch * 4 + 0 / 1 the sample's address (word address in the ROM: low / high word), used at key on ch * 4 + 2 frequency: the channel decodes a code every (0x1ff - d[
- rtl/rabbit_i5000.sv:18 MAME starts a channel at the instant of the key-on write; here the write marks it and the state machine starts it (three ROM words) in the next microseconds; meanwhile it reads as playing.
- rtl/rabbit_i5000.sv:28 1: the game's sample rate and the output filter; 0: MAME's device
- rtl/rabbit_i5000.sv:73 MAME runs the chip at 40 MHz / 1024 (N = 511) and ignores the register; the game writes 0x85a0 at boot (N = 416: 47,962 Hz), which is the rate a recording of a real board plays its samples at (to 0.01 %).
- rtl/rabbit_i5000.sv:75 Until the register is written the rate is MAME's; in the MAME mode it always is.
- rtl/rabbit_i5000.sv:78 register 0x46 bits 9:0 (511 until written: MAME's rate)
- rtl/rabbit_i5000.sv:146 the output: MAME's 16-bit mix, or the same mix through the Enhanced mode's filter
- rtl/rabbit_i5000.sv:159 MAME's full scale is 32768 * 16
- rtl/rabbit_loader.sv:5 The image (mra/*.mra, tools/make_mra.py): 0x0000000 maincpu 2 MB the 68020 program, as MAME's region (big-endian: the four byte-wide ROMs interleaved)
- rtl/rabbit_loader.sv:7 0x0200000 gfx1 16 MB sprites and the blitter's data, as MAME's region (ROM_LOAD32_WORD of jfv1 / jfv0, then jfv3 / jfv2)
- rtl/rabbit_loader.sv:9 0x1800000 i5000snd 4 MB the sound ROM as MAME loads it (jsn0 from its byte 0x18), then its header (MAME: 0x18 zero bytes) 0x1C00000 eeprom 128 B the 93C46's default contents (rabbit.nv, big-endian words)
- rtl/rabbit_main.sv:2 Rabbit main board: the 68EC020 @ 24 MHz and everything on its bus (MAME 0.289 src/mame/metro/rabbit.cpp, rabbit_map).
- rtl/rabbit_main.sv:9 000000-1fffff program ROM (through rabbit_cache) 400900-4009ff I5000 sound registers (16-bit) 200000-200003 inputs (read), EEPROM (byte write at 200000) 440000-47ffff ROM readback window (banked by 400302; MAME: bank 0) 4000
- rtl/rabbit_main.sv:16 Interrupts are MAME's: level 6 at the start of vblank and level 4 500 us after a blit was started, each held until the CPU's interrupt acknowledge cycle (HOLD_LINE), autovectored.
- rtl/rabbit_main.sv:17 The game's enable / acknowledge writes to 400010 / 400012 change nothing (as in MAME).
- rtl/rabbit_main.sv:67 inputs, as MAME's INPUTS port without bit 0 (active low)
- rtl/rabbit_main.sv:178 The readback window at 440000-47ffff (256 KB) shows the bank written to 400302 (MAME: rombank_w, "not currently hooked up": bank 0 always, so the test mode's MEMORY TEST reports every data ROM as an ERROR).
- rtl/rabbit_main.sv:184 The test sums each lane on its own, so it fixes which ROM is in which word or byte, not the order of the two bytes in a word (the core keeps MAME's).
- rtl/rabbit_main.sv:185 gfx1's word is at SDRAM 0x100000 + {b[22:2], b[23], b[1]} for region byte b (rabbit_loader.sv; MAME's region has jfv1 in bytes 0, 1 of each dword, which its little-endian host shows the CPU as the low word: the board has it in the high word
- rtl/rabbit_main.sv:192 0: the word byte-swapped (MAME's host order), 1: as stored,
- rtl/rabbit_sndflt.sv:3 MAME's decoding leaves a large wander below 150 Hz (the decoder's drift, up to 42 dB above a real board's recording: rumble that eats headroom and muddies the bass) and hiss on top.
- rtl/rabbit_sprgen.sv:4 MAME (rabbit_state::draw_sprites / draw_sprite_bitmap) draws the sprite list into a 4096 x 4096 bitmap and then copies a window of it to the screen, scaled: window column i (0 ..
- rtl/rabbit_sprgen.sv:13 Sprite (two dwords): dword 0 bits 11:0 x (signed), 27:16 y, 15 flip X (drawn mirrored when clear: MAME's "!xflip"), 14 flip Y; dword 1 bits 16:0 tile, 27:20 colour.
- rtl/rabbit_sprgen.sv:252 ------------------------------------------------------------------ the landing Two stages (timing): the first works out where each of a word's four pixels lands in the window and whether it is drawn, the second routes them to the lanes (con
- rtl/rabbit_tilegen.sv:6 MAME draws each layer with draw_roz (rabbit_state::drawtilemap): output pixel (x, y) shows tilemap pixel column ((sx * 128 + x * incxx) >> 11) mod width, row ((sy * 128 + y * incyy) >> 11) mod height (sx, sy: the scroll register's 12.4 va
- rtl/rabbit_tilegen.sv:16 Translucent: an 8bpp tile with bit 31 set, which MAME draws opaque; the board blends it over what is beneath (rabbit_video.sv, the fade).
- rtl/rabbit_video.sv:2 The Imagetek I5000's video side as MAME 0.289 draws it (src/mame/metro/rabbit.cpp: screen_update, drawtilemap, draw_sprites, draw_sprite_bitmap): four zooming tilemaps and a sprite layer drawn through a scaled bitmap window, mixed in the or
- rtl/rabbit_video.sv:4 Four things MAME does not do, each from a recording of a real board (docs/hardware.md, "Video: what MAME leaves out"): - a frame's sprite list (the sprite RAM and the count) is shown one frame later than the rest of the frame: the chip draw
- rtl/rabbit_video.sv:8 The game is written for it: in a KO's flash it ends its sprite list with a count of 0 one frame before each flash frame, which then has no fighters (MAME: no fighters on any frame, MAME Testers 04883); - the layers' priority is compared on
- rtl/rabbit_video.sv:11 The game clears bit 3 on the stage layers (0x2228) on every other frame of a KO's flash, where MAME then draws the stage over the fighters and the board does not; every other value the game writes has bit 3 set, and there both orders are th
- rtl/rabbit_video.sv:18 MAME renders a whole frame at the start of vblank from the state at that instant, and the game writes its next frame's sprites, tilemaps and palette a few milliseconds after the vblank interrupt (in MAME's own raster that is still vblank; i
- rtl/rabbit_video.sv:23 Every line of the picture is then drawn from the copy: the same frame MAME shows.
- rtl/rabbit_video.sv:25 The raster: 96 MHz / 15 = 6.4 MHz dots, 262 lines, 320 x 224 visible (MAME's visible area); a line of 424 dots (board_rate: 15.09 kHz, 57.61 Hz, the board's rate as a recording of one plays) or 407 (15.72 kHz, 60.02 Hz, MAME's 60 Hz).
- rtl/rabbit_video.sv:27 A line is made in three steps, one line time each: stage A (line y-2): the tile rows each layer samples into srcbuf (rabbit_tilegen), the sprite rows into spbuf (rabbit_sprgen); stage B (line y-1): the layers and the sprites drawn into comp
- rtl/rabbit_video.sv:112 the registers: tilemap_regs[4][6], spriteregs[7], and of MAME's viewregs6 (0x400400-0x400413, write-only, unused in MAME) the two dwords at 0x400404 (405: the fade weight; 406-407) and 0x400408 (408-409): with 406-409 the fill colour
- rtl/rabbit_video.sv:213 the CPU's read: the dword of rd_sel (the registers are write-only: MAME's writeonly)
- rtl/rabbit_video.sv:240 vblank starts: MAME's frame update, then the vblank interrupt
- rtl/rabbit_video.sv:440 MAME's order: for each level from 15 down to 1, layers 3, 2, 1, 0 of that level, then (level 9) the fill colour and the sprites; a layer's level is 8 + its priority's low 3 bits
- README.md:5 Written from MAME 0.289's driver (`src/mame/metro/rabbit.cpp`, `src/devices/sound/i5000.cpp`), with MAME as the reference for everything; the platform layer fol
- README.md:30 The buttons are named as the game uses them: **Light Punch (A), Heavy Punch (B), Light Kick (C), Heavy Kick (D)**; A to D are the game's own names (its input te
- README.md:45 | Sound | Enhanced (the default), MAME: see "Known differences". MAME is MAME's sound exactly (for MAME's tempo too, set Refresh rate to 60 Hz) |
- README.md:48 | Refresh rate | 57.6 Hz (board, the default), 60 Hz (MAME): see "Known differences" |
- README.md:57 | Video against MAME 0.289 | `sim/run_frames.sh`: MAME's video state (tilemaps, sprite RAM, palette, registers) dumped at a frame by `tools/lua/dump_state.lua`
- README.md:58 | Test mode | The MEMORY TEST on the whole machine (`sim/run_sys.sh` with SCHED=test: the test switch, then up, up, A, as `tools/lua/testmode.lua` presses them
- README.md:59 | Video against a real board | A recording of one ("Where the core is not MAME"): the KO flash frame for frame (normal frames with the fighters, flash frames a
- README.md:60 | Sound: MAME mode | MAME's I5000 exactly (its fixed 39,062.5 Hz). `sim/run_snd.sh`: every write the game made to the I5000's registers in 100 s of the attract
- README.md:61 | Sound: Enhanced mode | The same chip at the rate the game sets in register 0x46 (47,962 Hz, the board's pitch) and its mix through a filter: two 2-pole high-p
- README.md:67 Where the core is not MAME
- README.md:69 Found in the game's own writes (MAME's write taps over 20,000 frames of the attract mode, scripted play and a fight the computer wins) and checked against a rec
- README.md:73 **The KO flash** (MAME Testers 04883, "Missing sprites during KO", open since MAME 0.146).
- README.md:75 MAME shows neither: the fighters are gone for the whole flash and the stage covers the life bars on every other frame.
- README.md:85 MAME draws that tile opaque, so the logos vanish for the length of every fade and the title replaces the white in one frame.
- README.md:86 **The test mode's MEMORY TEST passes.** It sums every data ROM through a window at 440000 whose bank (400302) selects the ROM and 256 KB of it; MAME does not ho
- README.md:88 The MRAs keep the sound ROM's first 24 bytes (its "VCDT i5000" header, which MAME's ROM_CONTINUE discards and the check sums) at the end of the sound region.
- README.md:93 **The sound's decoding is still MAME's** (MAME flags Rabbit's sound as imperfect; `docs/hardware.md` "Sound" has the details): OKI ADPCM, which the sample data
- README.md:96 Meanwhile the OSD's Sound option offers two versions: **MAME**, MAME's device exactly (its 39,062.5 Hz: every sound 23 % slow, 3.5 semitones flat), and **Enhanc
- README.md:99 Enhanced is still MAME's decoding, not the board's.
- README.md:100 **The sprite list one frame late** is the board's in the KO's flash, frame for frame; elsewhere the core applies the same rule (in a fight the sprites change ev
- README.md:105 The board's video comes from the I5000's 40 MHz oscillator (it has only that and the 68020's 24 MHz), and in a recording of a real board the attract mode runs 4
- README.md:107 The core runs at 57.61 Hz by default (424 dots a line, 15.09 kHz) and at 60.02 Hz with "Refresh rate: 60 Hz (MAME)" (407 dots, 15.72 kHz).
- README.md:108 The game counts frames, so it is the same frame for frame at either rate, only slower in time at the board's; the comparisons with MAME in "What is verified" we
- README.md:111 Its pacing (a token bucket, `docs/hardware.md` "CPU") is calibrated on the power-on RAM / ROM test, the one stretch where the game has no slack and whose end fi
- README.md:117 The snapshot of the video state at vblank (43 us) holds the CPU's video accesses, so the game's post-vblank work starts about 22 us later than in MAME.
- README.md:119 MAME's to-do list also names "raster effects (see left side of one of the levels)" and the zoom.
- README.md:137 | `docs/hardware.md` | the hardware as MAME describes it, the game's timing, and the core's design |
- README.md:157 **MAME**: the rabbit driver (David Haywood), the I5000 sound device (hap), the OKI ADPCM decoder; the hardware knowledge and the reference for every comparison.
MAMEと一致する、MAMEに合わせた、またはMAMEで確認したと記載 — 1
- README.md:62 | Whole machine | `sim/run_sys.sh`: the 68020 running the game's program, the blitter, the sound chip and the video chip behind the SDRAM controller and a behav
MAMEから移植・書き写した、または取り入れたと記載 — 1
- README.md:36 The file is MAME's `nvram/rabbit/eeprom`, so settings can be copied between MAME and the core.
MAMEの近似をそのまま採用 — 2
- README.md:105 **The frame rate.** MAME runs the game at 60 Hz, a placeholder (its screen for this driver is a made-up 1024-line one).
- README.md:119 The game's handlers for the two interrupt levels MAME guesses might be raster interrupts (5 and 1) do no drawing work, and nothing in the recording has shown a
MAMEドライバと同じ文言を含む(出典の明記なし) — 1