← コア一覧
aquarium (decoryah)
MAMEのソースを引用 — 83
- Aquarium.sv:5 Written for MiSTer from MAME 0.289's driver (src/mame/excellent/aquarium.cpp, with excellent_spr.cpp and the devices it uses).
- Aquarium.sv:141 keyboard: 1 / 2 start, 5 / 6 coin, 9 service, T tilt, F2 the service mode (MAME's defaults; F2 holds the switch while pressed, the OSD's Service Mode sets it; the game looks at it when it starts, so it takes a Reset)
- Aquarium.sv:165 MAME's INPUTS (d80084), active low: P1 in bits 15:8, P2 in 7:0, each 0 up, 1 down, 2 left, 3 right, 4 / 5 buttons 1 / 2, 6 unknown (1), 7 start
- Aquarium.sv:173 the DIP switches (the MRA's <switches>, ioctl index 254): DSW bits 7:0 (SW1) and 15:8 (SW2) as MAME reads them; MAME's defaults until they come
- Aquarium.sv:287 the OSD's volume steps on MAME's own level
- rtl/aquarium_core.sv:2 Aquarium (Excellent System, 1996; ES-9206): the machine, written from MAME 0.289's src/mame/excellent/aquarium.cpp.
- rtl/aquarium_core.sv:7 The 68000's memory map (MAME's main_map; nothing is mirrored, anything else reads 0, MAME's unmapped value, and ignores writes):
- rtl/aquarium_core.sv:12 IRQ 1 (autovectored) at the vblank, held until acknowledged (MAME's irq1_line_hold).
- rtl/aquarium_core.sv:12 The watchdog resets the machine 5 s after its clock last fell (MAME's mb3773_device).
- rtl/aquarium_core.sv:15 Clocking and MAME's timeline: one 96 MHz clock.
- rtl/aquarium_core.sv:15 The 68000's clock is a pair of phase enables (fx68k's enPhi1 / enPhi2), one every 3 clocks (32 MHz: the CPU at 16 MHz), from the CPUs' start, as MAME's CPUs start at time 0.
- rtl/aquarium_core.sv:16 MAME's memory is instant and has no wait states; here the program ROM is read through a cache from the SDRAM (rtl/aquarium_cache.sv) and the video memories are copied at the vblank (10.7 us; a CPU write to an entry not yet copied waits for
- rtl/aquarium_core.sv:18 DTACK is always asserted at once (no wait states, as in MAME); where the data is not there yet when the CPU would take it, or a write has to wait, the CPU's phases are held, and the phases it missed are given back right after, at one every
- rtl/aquarium_core.sv:23 The machine starts just before a vblank of the raster (which runs from power-up on): MAME's screen is at the start of its vblank at time 0 and calls its vblank callbacks first a frame later (below); every vblank is 1,600,000 clocks apart (6
- rtl/aquarium_core.sv:42 MAME's input ports, active low as read (SYSTEM bit 15, the latch's pending flag, is the board's)
- rtl/aquarium_core.sv:61 one clock at each vblank while running (MAME's frame_done)
- rtl/aquarium_core.sv:64 ================================================================== the start MAME's screen begins at the start of a vblank at time 0 without its callbacks; its first vblank (the IRQ, the sprite buffer, frame_done 0) is a frame later.
- rtl/aquarium_core.sv:67 START_EARLY: MAME makes a bus access at the start of its bus cycle (the 4 cycles are counted after it), the core makes it when AS has gone low (S2; a write is made then, a read's data is taken by the CPU at S6), and fx68k leaves its reset a
- rtl/aquarium_core.sv:88 the sound board starts at MAME's time 0 (its Z80, YM2151 and OKI have no bus to line up), START_EARLY clocks after the 68000
- rtl/aquarium_core.sv:147 A write is made as soon as AS is low, with its data (fx68k's DOB is loaded with AS) and its byte lanes (wr_dsn), as MAME makes it at the start of the bus cycle (its strobes come two phases later).
- rtl/aquarium_core.sv:229 d80020 bits 1:0 (MAME: unmapped), the picture's flip (rtl/aquarium_video.sv)
- rtl/aquarium_core.sv:249 the latch's pending flag as the 68000 reads it: the board's. (The benches' MAME_SYNC: as MAME's 68000 sees it, its own write at once and the Z80's acknowledge only at the next vblank, where MAME's scheduler next lets the Z80 run; docs/hardw
- rtl/aquarium_loader.sv:5 The image (mra/*.mra, tools/aquarium_rom.py): MAME 0.289's regions in MAME's byte order (the ROM_LOAD16_WORD_SWAP files are swapped back by the MRA, so a 16-bit word's high byte is the even byte), the same layout for both sets: 0x000000 ma
- rtl/aquarium_oki.sv:2 OKI MSM6295: four ADPCM voices from a 256 KB ROM, written from MAME 0.289's okim6295.cpp / okiadpcm.cpp.
- rtl/aquarium_oki.sv:2 The owner's Hexion core's hexion_oki.sv, with the status read added (MAME's read(): 0xf0 with bit i set while voice i plays), which Aquarium's Z80 uses.
- rtl/aquarium_oki.sv:5 The command port: a byte with bit 7 set picks the phrase (its 8-byte entry in the ROM's table: start and end address, 3 bytes each, big-endian, 18 bits); the next byte starts it on the voices of bits 7:4 that are not playing, at the volume
- rtl/aquarium_oki.sv:10 One output sample per tick (the chip's clock / 132 with pin 7 high, / 165 low): each playing voice decodes its next nibble (signal += the step's difference, clamped to -2048..2047; the step index moves by -1, -1, -1, -1, 2, 4, 6, 8, clamped
- rtl/aquarium_oki.sv:12 The output is the sum of the four voices (MAME's sample is it / 2048).
- rtl/aquarium_oki.sv:17 In MAME a command is instant: a voice started by a command before a tick plays its first nibble at that tick, as here.
- rtl/aquarium_oki.sv:38 MAME's read(): 0xf0 | the voices playing
- rtl/aquarium_oki.sv:70 MAME's m_sample: the nibble count
- rtl/aquarium_oki.sv:76 MAME's m_command != -1
- rtl/aquarium_oki.sv:124 the command first when both wait: it came before the tick, or in the same clock (MAME: the stream update at the write generates the samples up to it with the voices as they were)
- rtl/aquarium_ram.sv:41 the bench's (a block RAM powers up 0, as MAME's memory)
- rtl/aquarium_sound.sv:2 Aquarium's sound board: the Z80, the YM2151, the MSM6295 and the 68000's sound latch, written from MAME 0.289's src/mame/excellent/aquarium.cpp (with machine/gen_latch.cpp, sound/okim6295.cpp, sound/ymopm.cpp).
- rtl/aquarium_sound.sv:14 The mix is MAME's: a stereo speaker, the YM2151's left and right at 0.45 each and the OKI at 0.47 to both, as 16 bits (ymfm's samples are 16-bit; the OKI's sum is in units of 1/2048 of full scale, so 0.47 of it is 7.52 x its sum): out = 0.4
- rtl/aquarium_sound.sv:18 Clocking and MAME's timeline (the owner's Hexion core's scheme): the Z80 steps once per 18 clocks of 96 MHz from its start, as MAME's Z80 starts executing at time 0.
- rtl/aquarium_sound.sv:19 Its ROM is read through a cache from the SDRAM (rtl/aquarium_cache.sv); while a miss is filled its clock enable is held and the cycles it missed are given back right after at one step per 8 clocks, so the program stays on MAME's timeline; a
- rtl/aquarium_sound.sv:28 the sound board's (its start: MAME's time 0)
- rtl/aquarium_sound.sv:64 The board's start (MAME's time 0) restarts it from phase 0, as jt51's counters leave their reset there
- rtl/aquarium_sound.sv:261 ------------------------------------------------------------------ the interrupts the NMI is the latch's pending flag, the IRQ the YM2151's line; either goes up on the Z80's own timeline (behind by the steps it still owes after a wait, it s
- rtl/aquarium_sprites.sv:2 Aquarium's sprites, a line at a time into a line buffer: MAME 0.289's excellent_spr_device::aquarium_draw_sprites (src/mame/excellent/excellent_spr.cpp) for one bitmap row.
- rtl/aquarium_sprites.sv:10 MAME draws the list from the last sprite to the first with prio_transpen, and each opaque pixel sets the priority bitmap to 31 whether it was drawn or not, so the first sprite drawn at a pixel (the highest-numbered) owns it: here sprites ar
- rtl/aquarium_sprites.sv:13 (the code wraps at 0x4000, MAME's element count; codes from 0x2000 are past the 1 MB ROM, zero in MAME's region: transparent), across 16 pixels apart from x (from x + chain * 16 leftwards with flip x) or down from y (from y + chain * 16 upw
- rtl/aquarium_sprites.sv:15 The tile is 16 x 16 x 4 planar: a row is 8 bytes, a 4-word burst at GFX_W + code * 64 + row * 4; pixel x's pen is {w3, w1, w2, w0} bit 15 - x (MAME's planes 48, 16, 32, 0).
- rtl/aquarium_tmap.sv:2 One of Aquarium's tilemap layers, a line at a time into a line buffer: MAME 0.289's tilemap rules (src/mame/excellent/aquarium.cpp, src/emu/tilemap.cpp) for one bitmap row.
- rtl/aquarium_tmap.sv:5 VRAM: two words a tile (rows of 32): word 0 the code (bits 11:0), word 1 the attributes: bits 4:0 the colour, 5 the category, 8 flip x, 9 flip y. The pixel is the 4-bit packed pen of the low ROM with the high ROM's bit as bit 4 (MAME's expa
- rtl/aquarium_tmap.sv:11 The scroll (set_scrollx / set_scrolly with MAME's tilemap rule, effective_rowscroll): MAME's bitmap pixel (bx, by) shows the layer's pixel ((bx + scrollx) & 511, (by + scrolly) & 511).
- rtl/aquarium_video.sv:2 Aquarium's video: the video memories, their snapshot at the vertical blank, the raster, the three tilemap layers, the sprites and MAME 0.289's mix of them (src/mame/excellent/aquarium.cpp screen_update, excellent_spr.cpp).
- rtl/aquarium_video.sv:10 MAME draws the whole frame at the start of the vertical blank (its screen: 60 Hz, 512 x 512, the visible area 320 x 256 at 16, 16, no vertical blank time): the picture is the state of that instant, and the game writes its video memory all t
- rtl/aquarium_video.sv:13 The core does what MAME does: at the vblank (vbl_ev) the live copies are copied into the display copies in 512 clocks (5.3 us, 64-bit words; a 68000 write to an entry the copy has not yet reached waits for it, rtl/aquarium_core.sv), and the
- rtl/aquarium_video.sv:32 MAME_FRAME (the benches' define, never the core's) makes the frame's last line, in the vertical blank, as long as MAME's frame wants (6,175 or 4,420 clocks: 1,600,000), for the cycle-by-cycle comparisons with MAME.
- rtl/aquarium_video.sv:35 The visible line 0 is MAME's bitmap row 16.
- rtl/aquarium_video.sv:35 The vblank begins at line 256 (vbl_ev): MAME's vblank, the 68000's IRQ 1.
- rtl/aquarium_video.sv:38 Flip (d80020 bits 1:0, which MAME does not have: the game writes 01a0, and 01a3 with its Flip Screen DIP on, and adds 8 to the txt layer's x scroll then; MAME shows the game unflipped with that txt offset): the picture turned 180 degrees, M
- rtl/aquarium_video.sv:43 Each visible line is drawn during the line before it into ping-pong line buffers (a layer each; the sprites' with a claim bit a pixel) and mixed as the beam runs, in MAME's order (screen_update): bak cat 0 (priority 1), mid cat 0 (2), txt c
- rtl/aquarium_video.sv:178 the 68000's read: the word of the entry (the sprite RAM's byte on the low lane, 0 above it, MAME's umask16(0x00ff))
- rtl/aquarium_video.sv:305 ================================================================== the dot sub 0: the line buffers' address (the dot); sub 1: their words, the mix (MAME's order), the palette's address; sub 2: the palette entry; sub 3: the colour.
- rtl/aquarium_video.sv:341 RRRRGGGGBBBBRGBx, 5 bits each (MAME's RRRRGGGGBBBBRGBx_decoder), pal5bit
- README.md:4 Written from MAME 0.289's driver (`src/mame/excellent/aquarium.cpp`, with `excellent_spr.cpp` and the devices it uses), with MAME as the reference for everythin
- README.md:10 **Status.** Simulated with the game's real programs and compared with MAME 0.289 (see "What is verified"); built with Quartus 17.0.2 (38 % of the ALMs, 54 % of
- README.md:36 The buttons are named for what they do (measured in MAME 0.289, and as the game's own control panel picture on the player select screen names them): **Rotate Ri
- README.md:48 | DIP switches | MAME's: Difficulty, Winning Rounds (vs. CPU, vs. player), Coinage, Flip Screen (the core turns the picture, below), Demo Sounds |
- README.md:55 The first release kept MAME's frame time exactly, 1,600,000 clocks of 96 MHz, by making some lines a clock longer than others, and a RetroTINK 4K in direct vide
- README.md:65 | The 68000 against MAME, cycle by cycle | MAME's debugger trace with each instruction's cycle count against the bench's (`sim/tb_top.sv` +ITRACE, `tools/cmp_tr
- README.md:66 | The Z80 against MAME, cycle by cycle | MAME's debugger trace of the audiocpu (`tools/lua/trace_z80.lua`) against the bench's (+ZTRACE, `tools/cmp_ztrace.py`):
- README.md:69 | Sound | The same 1,200 frames' sound (`AUDIO=1`, 48 kHz stereo) against MAME's recording (`-wavwrite`): `tools/audio_cmp.py` compares their loudness frame by
- README.md:73 Where the core is not MAME
- README.md:75 **The sound latch's handshake, and MAME's scheduler.** At its first sound command (frame 47) the game writes the latch and waits for the Z80 to acknowledge it.
- README.md:76 MAME runs the Z80 after the 68000 in each of its scheduler's timeslices, so its 68000 sees the acknowledge only at the next vblank: MAME's own trace shows it sp
- README.md:78 The board's Z80, and the core's, answer within microseconds, so from frame 47 on the core runs one frame ahead of MAME: its state at vblank n is MAME's at vblan
- README.md:82 (The benches' `MAME_SYNC` build makes the 68000 see the acknowledge at the next vblank, as MAME does: it then needs no offset, with the same stale stack bytes.)
- README.md:86 Its picture is MAME's: the core takes the video state at the vblank, as MAME draws it then (with CRT 240p, all but its top and bottom 8 lines).
- README.md:88 **Flip Screen.** MAME does not flip this game; the board does (the game sets two bits of a video register MAME does not have and moves its text layer by 8 dots
- README.md:89 The core turns MAME's unflipped picture 180 degrees (`docs/hardware.md`, "Flip"); where the board puts the flipped picture on its raster is not known.
- README.md:91 **The video snapshot's wait.** The copy of the video memories at the vblank takes 5.3 us; a 68000 write to an entry it has not reached yet waits for it, and the
- README.md:94 Fed the same register writes (the bench's `+YMLOG` replayed into a standalone ymfm and a standalone jt51) the two follow each other closely; the core's sound ag
- README.md:96 **The sound's resampling.** The MSM6295's 8 kHz samples and the YM2151's 55.9 kHz ones are held between samples and mixed as MAME mixes them (the YM2151 at 0.45
- README.md:108 | `sim/` | Verilator benches: the whole machine (`run_sys.sh`: the 68000's trace +ITRACE, the Z80's +ZTRACE, the write log +WLOG, the sound logs +SNDLOG / +YMLO
- README.md:110 | `docs/` | `hardware.md`: the hardware as MAME describes it, the measurements, the core's timing |
- README.md:122 The system bench is built with MAME_FRAME (MAME's frame, 1,600,000 clocks, so it can be compared with MAME cycle for cycle) unless `RASTER=hw` (the core's own r
- README.md:137 The instruction traces: MAME's debugger, `tools/lua/trace_68k.lua` / `trace_z80.lua` (with `-debug -debugger none`), against `sim/run_sys.sh ...
- README.md:145 **MAME**: the aquarium driver and the Excellent System sprite device (David Haywood), the MSM6295 and its ADPCM, the generic latch, the MB3773, ymfm (Aaron Gile
MAMEと一致する、MAMEに合わせた、またはMAMEで確認したと記載 — 2
- README.md:67 | The video chip | `sim/run_frames.sh`: MAME's video state (the VRAM, the palette, the sprite RAM and the scroll words of frames f-1 and f, `tools/lua/dump.lua`
- README.md:68 | Whole machine | `sim/run_sys.sh`: the 68000 and the Z80 running the game's programs, the ROM image downloaded through the loader into the SDRAM controller and
MAMEの近似をそのまま採用 — 2
- rtl/aquarium_video.sv:19 The raster: a 15 kHz raster of its own (MAME's screen for this driver is a placeholder: 512 lines at 60 Hz, 30.7 kHz), 320 x 256 visible, every line the same length and every dot the same width (a scaler or a monitor locks onto it line by l
- README.md:54 The video is the game's 320 x 256 picture (MAME's visible area) on a 15 kHz raster of the core's own: MAME's screen for this driver is a placeholder (60 Hz, 512
MAMEドライバと同じ文言を含む(出典の明記なし) — 2
- rtl/aquarium_sound.sv:190 bitswap<8>(data, 7, 6, 5, 2, 3, 1, 4, 0): result bit 2 = data bit 1, bit 1 = data bit 4, bit 0 = data bit 0 — 共通の文言: excellent/aquarium.cpp:263
- rtl/aquarium_sprites.sv:2 Aquarium's sprites, a line at a time into a line buffer: MAME 0.289's excellent_spr_device::aquarium_draw_sprites — 共通の文言: excellent/excellent_spr.cpp:110