← コア一覧
Deco16
MAMEのドライバにない実基板の資料を引用 — 1
- Readme.md:5 The HDL loosely represents the DECO16 board; since some chips haven't been decapped, they have been made using MAME information.
MAMEのソースを引用 — 38
- rtl/cninja/jtcbuster_decoder.v:3 Crude Buster / Two Crude board decoder (doc/cbuster.cpp ::main_map).
- rtl/cninja/jtcbuster_decoder.v:54 TC-4 registered-PAL protection HLE (doc/cbuster.cpp ::prot_w)
- rtl/cninja/jtcbuster_decoder.v:58 MAME masks the write by mem_mask before matching, so mask cpu_dout by the active byte lanes: otherwise a byte write arrives with a stale high byte and never matches.
- rtl/cninja/jtcninja_colmix.v:6 Each board has its own layer order, taken from its screen_update in MAME.
- rtl/cninja/jtcninja_deco104.v:3 DECO 104 protection / I/O mux for Data East cninja.cpp (Joe & Mac).
- rtl/cninja/jtcninja_deco104.v:11 Behaviour (see doc/deco146.cpp read_protport / write_protport): real_address = addr*2 & 0x7ff (addr = word offset) WRITE: store din to rambank[(ra&0xff)>>1]; special ports: 0x42 -> XOR reg, 0xee -> NAND reg, 0xa8 -> sound latch (+
- rtl/cninja/jtcninja_deco104.v:32 The 146 (edrandy) is the SAME engine with its own port table and constants and NO magic read-address xor (deco146.cpp: m_magic_read_address_xor_enabled = false), so it is a second instantiation with the parameters below rather than a second
- rtl/cninja/jtcninja_deco104.v:88 ---- I/O ports (MAME cninja PORT_START) ---- INPUTS (port A): P1 low byte, P2 high byte (active low).
- rtl/cninja/jtcninja_deco104.v:89 Per MAME cninja PORT_START("INPUTS"): bits0-3 joyUDLR, b4 B1, b5 B2, b6 unused, b7 START1; bits8-11 joyUDLR(P2), b12 B1, b13 B2, b14 unused, b15 START2.
- rtl/cninja/jtcninja_deco104.v:251 Log every completed protection READ so the values can be diffed against MAME.
- rtl/cninja/jtcninja_deco16.v:7 Scroll modes (control1[6:5], per deco16ic.cpp deco16_pf_update / custom_tilemap_draw):
- rtl/cninja/jtcninja_deco16ic.v:5 Per MAME (deco16ic.cpp device_start) the chip owns its own state, so it is modelled here: m_pf1_data 0x2000 bytes -> u_pf1 (AW=12) m_pf2_data 0x2000 bytes -> u_pf2 m_pf12_control 0x10 bytes -> u_mmr (jtdeco16ic_mmr, cfg/mmr.yaml)
- rtl/cninja/jtcninja_decoder.v:3 Caveman Ninja / Joe & Mac board decoder (doc/cninja.cpp ::cninja_map).
- rtl/cninja/jtcninja_decospr.v:4 MAME ref: decospr.cpp (mirrored in cores/cninja/doc).
- rtl/cninja/jtcninja_game.v:19 SCAFFOLD -- Data East DECO 16-bit (cninja.cpp), Caveman Ninja / Joe & Mac.
- rtl/cninja/jtcninja_game.v:103 The deco16ic register dump has no consumer: JTFRAME_IOCTL_RD is not set, so the core has no ioctl_din output and scenes are captured from MAME, not from hardware.
- rtl/cninja/jtcninja_game.v:124 tiles2 also needs the MAME ROM_CONTINUE de-interleave (mame2mra emits mag-00|mag-01 naive; the real region swaps the middle 256kB blocks = word bits 17<->18), folded into the rotate.
- rtl/cninja/jtcninja_game.v:305 xor (deco146.cpp disables it)
- rtl/cninja/jtcninja_main.v:3 Main 68000 subsystem for the Data East cninja.cpp family.
- rtl/cninja/jtcninja_main.v:220 A superset of MAME's PCs because of prefetch, so diff it as an in-order subsequence against the MAME trace.
- rtl/cninja/jtcninja_main.v:236 Heartbeat: per-frame liveness + cumulative palette/tilegen/sprite write counts (compare to MAME: full boot writes 4096 palette + ~50k tilegen).
- rtl/cninja/jtcninja_obj.v:59 cninja and cbuster both use MAME's tilelayout (dp straight) - cbuster verified at 98% vs screen.png.
- rtl/cninja/jtcninja_snd.v:3 Sound subsystem for Data East cninja.cpp (Joe & Mac).
- rtl/cninja/jtcninja_snd.v:13 HuC6280 physical sound_map (doc/cninja.cpp ::sound_map): 000000-00ffff program ROM A[20:16]==0 100000-100001 YM2203 A[20] & A[19:16]==0 110000-110001 YM2151 A[20] & A[19:16]==1 120000-120001
- rtl/cninja/jtcninja_snd.v:227 The cninja attract is silent (only the YM2151 tempo timer) until the main CPU sends a play command (~frame 1106 in MAME, cmd 0x14) which drives the YM2203 music.
- rtl/cninja/jtcninja_video.v:3 Video subsystem for the Data East 16-bit family (cninja.cpp and friends).
- rtl/cninja/jtcninja_video.v:243 deco16ic bank callback (driver-provided in MAME).
- rtl/cninja/jtcninja_video.v:383 vaportra uses the MXC-06 instead (vaportra.cpp: "same as Bad Dudes") - a different chip with a different sprite word format, vendored from cores/cop as jtcninja_mxc06 with the dec0 seallayout plane order.
- rtl/cninja/jtdarkseal_decoder.v:3 Dark Seal / Gate of Doom board decoder (doc/darkseal.cpp ::main_map).
- rtl/cninja/jtdarkseal_decoder.v:51 MAME does it once over the whole ROM in driver_init; the ROM is stored RAW in SDRAM and undone here, the only place it CAN live - it permutes bits inside a byte, which neither the MRA (byte/file level) nor the byte-serial download can expre
- rtl/cninja/jtdeco_irq.v:3 Data East deco_irq (doc/deco_irq.cpp): vblank plus two programmable raster interrupts.
- rtl/cninja/jtedrandy_decoder.v:3 The Cliffhanger - Edward Randy board decoder (doc/cninja.cpp ::edrandy_map).
- rtl/cninja/jtedrandy_decoder.v:66 MAME runs edrandy with empty_init: the 68k ROM is not scrambled.
- rtl/cninja/jtvaportra_decoder.v:3 Vapor Trail / Kuhga board decoder (doc/vaportra.cpp ::main_map).
- rtl/cninja/jtvaportra_decoder.v:6 000000-07ffff program ROM ffc000-ffffff work RAM 100000 PLAYERS r / priority[0] w 100002 COINS r / priority[1] w 100004 DSW r 100007 soundlatch w (byte) 200000/202000 tilegen[1] data 240000-24000f
- Readme.md:5 The HDL loosely represents the DECO16 board; since some chips haven't been decapped, they have been made using MAME information.
- Readme.md:8 It is not a preservation effort since it does not add anything on top of what MAME already delivers, for now with an extra bugs.
- Readme.md:10 If you don't like the idea that this is built on top of mame without additional hardware verification and research, don't use it.
MAMEと一致する、MAMEに合わせた、またはMAMEで確認したと記載 — 6
- rtl/cninja/jtcbuster_decoder.v:94 H out={in4,in6,in7,in5,in3:0} L out={in7,in1,in5,in4,in6,in2,in3,in0} verified vs MAME: SSP=0x084000, PC=0x600, 0x606 = 46 FC 27 00
- rtl/cninja/jtcninja_deco104.v:210 bankswitch side effect, deferred one cycle so the registered tw (e_port/e_off) matches the current access (MAME: off==0x66 on a non-latch read toggles the rambank).
- rtl/cninja/jtcninja_decospr.v:25 The whole table is always covered, matching MAME's decospr, which has no per-line cap.
- rtl/cninja/jtcninja_decospr.v:194 cninja AND cbuster both use MAME's `tilelayout` (same planeoffset), so they take dp straight - verified: cbuster sprite render matches MAME screen.png at 98% with dp, vs 21-29% for any swap.
- rtl/cninja/jtcninja_game.v:126 Verified end-to-end against the MAME gfxdecode (0 px mismatch).
- rtl/cninja/jtcninja_snd.v:229 Verified vs MAME.
MAMEから移植・書き写した、または取り入れたと記載 — 1