← All cores
DJMainSD (kyledlester)
Cites MAME source — 41
- DJMain.sv:219 The set: the .mra's <rom index="1">, written by scripts/build_mras.py -- byte 0 the map: 0 djmainj, 1 djmainu, 2 djmaina (dj_main) byte 1 the inputs: 0 beatmania, 1 pop'n music, 2 pop'n stage byte 2 bit 0: a master ATA password locks the
- DJMain.sv:286 The ports, active low, in three layouts (djmain.cpp).
- DJMain.sv:316 Turntables: MAME keeps a 16-bit position and adds 70 for each unit the dial moved (turntable_r); the game reads the high byte.
- DJMain.sv:317 MAME's dial, at sensitivity 30 and key delta 15, moves about 15 units a frame for a held key: some 1000 a frame.
- rtl/dj_ata.sv:6 Written from the ATA-1/ATA-3 register model and what MAME's ata_hle / ide_hdd do, sized to what the games use.
- rtl/dj_ata.sv:7 Measured on bm1stmix in MAME (scripts/mame/ata_trace.lua, docs/RESEARCH.md section 8): a soft reset, SET FEATURES twice, SET MULTIPLE 16, then READ MULTIPLE in LBA mode, all polled.
- rtl/dj_ata.sv:22 Data words are sector[2i] | sector[2i+1] << 8, as MAME's ATA gives them.
- rtl/dj_ata.sv:77 the geometry: MAME's CHD metadata for the set, carried by the .mra
- rtl/dj_ata.sv:83 ATA security, as MAME's ata mass storage: a drive with a master and/or user password starts locked and refuses reads (ERR, ABRT) until SECURITY UNLOCK (0xF2) is given each enabled one.
- rtl/dj_ata.sv:86 The games read once while locked and expect it to fail (scripts/mame/ata_trace.lua).
- rtl/dj_main.sv:3 Konami DJ Main (GQ753): the 68EC020, MAME's djmainj memory map, work RAM, sprite RAM and registers, the interrupts, and the ports to the video, sound, SDRAM and hard disk.
- rtl/dj_main.sv:5 Reference: djmain.cpp (MAME 0.289); each block names the handler it follows.
- rtl/dj_main.sv:8 ---- CPU and bus TG68KdotC_Kernel directly, with the generics and the ready handshake of Arcade-KonamiGX_MiSTer's gx_main.sv (proved there against MAME's boot trace): the kernel on its own 24 MHz clk_cpu, `ready` held until it takes the acc
- rtl/dj_main.sv:26 ---- interrupts (djmain.cpp) level 4 vblank (vb_interrupt): at the start of vblank if v_ctrl (0x5d4000) bit 15 is set, else held pending and raised when a v_ctrl write sets bit 15 (v_ctrl_w).
- rtl/dj_main.sv:101 inputs, active low as MAME's ports
- rtl/dj_main.sv:108 turntables: MAME's m_turntable_pos
- rtl/dj_main.sv:185 regions (djmain.cpp base_map + main_map_j)
- rtl/memory/dj_sdram_top.sv:13 Image (byte addresses), loaded from the .mra's index 0 stream: 0x0000000 program ROM, 1 MB, 68000 order (even byte first) 0x0100000 sprite ROM, 2 MB, each 128-byte tile re-ordered on the way in so a 16-pixel row is one granule: MAME byte
- rtl/video/dj_sprites.sv:3 Konami DJ Main sprites (the 001642): djmain.cpp draw_sprites() as a line renderer.
- rtl/video/dj_sprites.sv:7 THE LIST (MAME's sortedlist).
- rtl/video/dj_sprites.sv:11 Its record goes into that slot with everything the line renderer would otherwise divide for: xscale = 0x400000 / zoomX, yscale = 0x400000 / zoomY (16.16, 1.0 = 0x10000) ox -= (size * xscale) >> 13, oy likewise (the position
- rtl/video/dj_sprites.sv:20 Slots are drawn from 127 down to 0, a later one over an earlier one, as MAME draws them, so slot 0 is on top.
- rtl/video/dj_sprites.sv:21 For each tile row ty and column tx (size 1, 2, 4 or 8 tiles square of 16 x 16): sy = oy + ((ty * yscale + 0x800) >> 12), its height the next row's sy - sy sx = ox + ((tx * xscale + 0x800) >> 12), its width likewise tile code = code + xoff[x
- rtl/video/dj_tilemap.sv:6 What changed for DJ Main (k054156_k054157_k056832.cpp, tilemap_draw_dj, set_config(BPP_4dj, 1, 1)):
- rtl/video/dj_tilemap.sv:9 * two layers (A, B), not four: djmain.cpp draws only layers 0 and 1 * 512 visible columns at 16 MHz dots (line buffers of 1024, 512 used) * 4 bpp "dj" tiles: 32 bytes a tile, 4 a row; the planes, most significant first, are bytes 3, 1, 2, 0
- rtl/video/dj_tilemap.sv:120 MAME draws a line-map page only when linemap_enable() was called, which djmain.cpp never does: tilemap_draw_dj skips it (update_linemap returns 1).
- rtl/video/dj_tilemap.sv:178 MAME: ay = (dy - offs_y) % height with dy = (int16_t)m_regs[0x10+layer], and sx = (dx - offs_x) & (width - 1)
- rtl/video/dj_tilemap.sv:235 the line's scroll pair: page, then layer * 0x200 + the map row (mode 2 takes the row's group of eight), wrapping at 512 rows as MAME's mask does
- rtl/video/dj_video.sv:6 Raster (djmain.cpp set_raw(32 MHz / 2, 660, 0, 512, 418, 0, 384)): 16 MHz dots from the 48 MHz clock, a dot every third clock; 512 x 384 visible, 24.24 kHz lines, 57.997 Hz frames.
- rtl/video/dj_video.sv:8 Sync positions are not in MAME and are this core's: hsync dots 536-595, vsync lines 388-391.
- rtl/video/dj_video.sv:16 MIXING, as djmain_state::screen_update: three inputs -- layer A (K55 PRIINP_0, register 7), layer B (PRIINP_3, 10), sprites (PRIINP_10, "sub 2", 17) -- each gated by K55_INPUT_ENABLES (45) bits 0, 1, 6, put in order by MAME's own three-elem
- rtl/video/dj_video.sv:89 The sprite list is taken at the start of vblank, where MAME draws it: the game's vblank handler rewrites the whole list from line 384 on (measured, scripts/mame/obj_timing.lua: lines 384-415, on busy frames into the next frame's first lines
- rtl/video/dj_video.sv:134 MAME's exchange sort of three: for i < j, swap when pri[order[i]] > pri[order[j]]
- README.md:18 MAME 0.289 `konami/djmain.cpp` is the hardware specification.
- README.md:96 Convert each once with MAME's `chdman`: all of them with the script here (PowerShell; a folder per set, images already converted are skipped):
- README.md:100 powershell -ExecutionPolicy Bypass -File scripts\convert_chds.ps1 -MameDir C:\path\to\mame -OutDir C:\bemaniHDD
- README.md:166 **DIP switches** — each game's, from MAME (coinage, difficulty, stages, demo sounds, event mode…).
- README.md:187 **No dropped frames.** The CPU runs about 1.85× MAME's 68020 model on the same code, so the game's work always finishes within its frame, including the busiest
- README.md:237 | Video: MAME's writes to the video chips replayed into the core, frames compared with MAME's (POST and play demo) | 0 differing pixels, also at twice the expec
- README.md:241 | Disk: every game's ATA command trace from MAME | only SET FEATURES, SET MULTIPLE, READ MULTIPLE, and on the locked disks READ (expected to fail) and SECURITY
- README.md:259 MAME's `djmain.cpp` (smf) and Guru's hardware notes.
Says it matches, follows or was checked against MAME — 3
- README.md:233 Before release, the core was checked in simulation (ModelSim) against MAME 0.289:
- README.md:238 | Video, every game: 10 attract-mode frames each | static content identical; differences only in moving sprites MAME draws mid-update |
- README.md:239 | Boot: TG68K + the board running the real program | the first 2,059 video writes match MAME in order and by frame |
Says it was translated, ported or taken from MAME — 1
- README.md:33 | `<disk>.hdd`, converted from the set's CHD (below) | your MAME set | `/media/fat/games/<set>/` |
Shares text with the MAME driver without saying so — 2