← コア一覧
jtnslasher (blahm1dplays)
MAMEのドライバにない実基板の資料を引用 — 2
MAMEのソースを引用 — 77
- source/cores/nslasher/ver/sdram_main/jtnslasher_sdram_dense_ref.v:90 Byte-exact vs MAME spritelayout_5bpp per ver/gfx/verify_fold_dense.py (the proven nf4 model).
- source/cores/nslasher/ver/game/tb_snd_golden.v:2 Z80 + jt51 + 2x jt6295) and traces the SOUND path so it can be diffed against the MAME golden (mame-dump/snd_golden/): MAME golden: 1 soundlatch cmd (0x01) @boot; Z80 reads D000 exactly TWICE; ~5x OKI write 0x78 (stop); YM init burst then O
- source/cores/nslasher/ver/game/tb_sndsub.v:3 Boots jtnslasher_snd (Z80 + jt51 + 2x jt6295) standalone with the REAL sndprg ROM, sends the boot soundlatch cmd 0x01, and logs the sound-bus conversation for diff against the MAME golden (mame-dump/snd_golden/SND_GOLDEN_REPORT.md): GOLDEN:
- source/cores/nslasher/ver/arm/tb_boot.v:186 scs=~d[6] per MAME nslasher_eeprom_w.
- source/cores/nslasher/ver/gfx/tb_colmix_livelock.v:13 The golden is MAME-atomic: after the game programs fade F_NEW, MAME's palette_update() recomputes ALL faded pens instantly, so faded[] MUST equal fade_NEW(pal).
- source/cores/nslasher/ver/gfx/tb_flip.v:2 FIX C2 / task #9 gate: per-tile FLIP + colour&7 in jtnslasher_tilemap vs the gen_flip_test.py golden (derived from the MAME get_pfN_tile_info semantics + the reshuffle layout spec, NOT the RTL).
- source/cores/nslasher/ver/gfx/tb_torn_NEW.v:7 Checks: (1)+(2) faded[] must be bit-exact fade(B0) for all 2048 entries -- NOT a torn mix (the bug this fix targets), verified against an INDEPENDENT golden (tf_faded.hex, generated straight from the MAME palette_update formula, never deriv
- source/cores/nslasher/ver/gfx/tb_colmix_bufferfade.v:7 The confirmed bug: the RTL computed faded[i]=fade(LIVE pal[i]); MAME computes faded[i]=fade(BUFFERED pal[i]) — a DMA-frozen snapshot.
- source/cores/nslasher/ver/gfx/tb_colmix_bufferfade.v:18 The golden tf_faded.hex = fade(B0) computed INDEPENDENTLY from deco_ace.cpp by gen_bufferfade_test.py — never derived from this RTL.
- source/cores/nslasher/ver/gfx/tb_colmix_sel.v:3 the obj1 sprite1_drawn term (deco32_v.cpp:352/387).
- source/cores/nslasher/ver/gfx/tb_colmix_bio.v:3 FIX B gate: drive jtnslasher_colmix with the captured Jake-bio frame (vancaps f03000, pri=6 = JOINT-8bpp mode, ground truth attract_pri.txt) and compare RGB against the bio_render.py golden, which is itself 0/76800 vs MAME's own snapshot of
- source/cores/nslasher/ver/gfx/tb_obj_f2700_latexact.v:3 BYTE-EXACT-UNDER-LATENCY gate for the PIPELINED draw FSM (comb fix stage-B): render in-game frame f2700 through the REAL engine with a `LAT-clock rom_cs->rom_ok fetch model (same injector as tb_obj_f2700_lat.v) and byte-compare against the
- source/cores/nslasher/ver/gfx/tb_layer.v:3 gen_layer.py writes layer_cfg.vh (TILE8/BANK/SCRX/SCRY + PFFILE/GFXFILE for the captured MAME frame) and golden_pxl.hex.
- source/cores/nslasher/hdl/jtnslasher_obj.v:124 per-line sprite cap: MAME
- source/cores/nslasher/hdl/jtnslasher_obj.v:136 ---- effective tile + row from veff (vertical multi) ---- MAME: raw fx/fy (y&0x2000/0x4000) select the multi-tile order; the PIXEL flip passed to the draw is INVERTED (`if(fx)fx=0;else fx=1;`).
- source/cores/nslasher/hdl/jtnslasher_snd.v:19 Z80B @ 3.58 MHz + YM2151 + 2x OKI M6295 (per MAME deco32.c).
- source/cores/nslasher/hdl/jtnslasher_snd.v:107 IO-SPACE ROM WINDOW (audio-loop fix, 2026-06-09): MAME nslasher_io_sound maps the FULL 64 KB audiocpu ROM into the Z80 IO space (deco32.c:1016 `AM_RANGE(0x0000,0xffff) AM_ROM`).
- source/cores/nslasher/hdl/jtnslasher_deco156.v:44 ---- BITSWAP32: result MSB-first = v[arg0..arg31] (MAME BITSWAP32 order) ----
- source/cores/nslasher/hdl/jtnslasher_obj_fix.v:108 per-line sprite cap: MAME
- source/cores/nslasher/hdl/jtnslasher_obj_fix.v:120 ---- effective tile + row from veff (vertical multi) ---- MAME: raw fx/fy (y&0x2000/0x4000) select the multi-tile order; the PIXEL flip passed to the draw is INVERTED (`if(fx)fx=0;else fx=1;`).
- source/cores/nslasher/hdl/jtnslasher_vmem.v:50 runtime obj1 (gfx4 shadow) palette base bank (0x164008), MAME sprite2_color_bank_w
- source/cores/nslasher/hdl/jtnslasher_vmem.v:76 ---------------- deco_ace RAM (alpha control 0x00-0x1f, fade regs 0x20-0x26) ---------------- MAME deco_ace.cpp: obj alpha = ace[0x00-0x05] via get_alpha(); fade = ace[0x20-0x26] (Build B).
- source/cores/nslasher/hdl/jtnslasher_vmem.v:92 ===== RUNTIME COLOUR-BANK REGISTERS (0x164000/4/8) — deco32_v.cpp:56-70 ===== MAME implements these as LIVE registers (the 2009-era driver wrongly NOP'd them as "constants", which is why an attract capture looked static).
- source/cores/nslasher/hdl/jtnslasher_vmem.v:215 MAME nslasher_draw_sprites reads buffered_spriteram (doc/mame_deco32.c:1582), a snapshot the hardware DMA-copies from live spriteram ONLY on the CPU write to 0x174010 (spr0) / 0x17c010 (spr1) (doc/deco32.c:886,891).
- source/cores/nslasher/hdl/jtnslasher_vmem.v:279 FIX B: in JOINT-8bpp mode (pri[1]) MAME samples BOTH nibble sources at PF3's scroll (doc/mame_deco16ic.c custom_tilemap_draw:1014-1016 — one src_x/src_y for src0 and src1), so PF4's engine follows PF3's scroll registers while the mode is ac
- source/cores/nslasher/hdl/jtnslasher_game.v:37 CANVAS REALIGN: MAME nslasher visible area = y[8..247] (MDRV_SCREEN_VISIBLE_AREA(0,319, 8,247)); ours was [0..239] = 8 lines too high -> top border shown, bottom credits clipped.
- source/cores/nslasher/hdl/jtnslasher_game.v:83 nslasher has NO dipswitches (MAME nslasher input = EEPROM-configured); all game settings (coinage/difficulty/lives/demo sound) are set in the operator SERVICE MENU entered via the TEST switch.
- source/cores/nslasher/hdl/jtnslasher_game.v:154 Full dec.bin RE + MAME count_exec proved the BOOT SIGNATURE: the attract engine arms ONCE at boot via routine 0x2150 (a start-gate).
- source/cores/nslasher/hdl/jtnslasher_game.v:157 MAME golden exec: 2150=1, gate(0x21A8)=1, WAIT(0x21C8)=0, armRtn (0x21E4)=1, arm(0x48E4)=1.
- source/cores/nslasher/hdl/jtnslasher_game.v:163 FLOOD_ROOT_CAUSE.md: the ARM re-runs reset (`b 0x50`@0xA48) ~once/frame because work-RAM 0x100014 bit3 reads SET on the cab where MAME keeps it 0.
- source/cores/nslasher/hdl/jtnslasher_game.v:170 MAME GOLDEN = 0 for the whole nibble (w100014.txt: 0x100014 written twice, value 0x00000000, bit3 never set).
- source/cores/nslasher/hdl/jtnslasher_game.v:243 **MAME GOLDEN = "F F 0 F F"** (reached gate, wait-loop NOT taken, armed).
- source/cores/nslasher/hdl/jtnslasher_game.v:251 **MAME GOLDEN = 0.** Read the cab: row3 == 000000 -> 0x100014 edge byte stays 0 (HEALTHY; flood is elsewhere — recheck).
- source/cores/nslasher/hdl/jtnslasher_game.v:364 Show the LIVE values of the three colour-bank registers (0x164000/4/8) that MAME uses for the tilemap + sprite palette bases and our RTL hardcoded.
- source/cores/nslasher/hdl/jtnslasher_sdram.v:96 Byte-exact vs MAME spritelayout_5bpp per ver/gfx/verify_fold8_gateA.py (packing math) + verify_fold8_gateB.py (REAL loader: .mra -> big-endian mra2rom -> dwnld remap -> this read model).
- source/cores/nslasher/hdl/jtnslasher_sdram.v:147 The old "no hwswap, proven 800/800" claim came from check_obj1_unpack.py whose golden used a WRONG region model (16-bit interleaved, 2009-driver style); pinned mame0284 loads gfx4 PLAIN SEQUENTIAL (deco32.cpp:3861) with tilelayout planeoff
- source/cores/nslasher/hdl/jtnslasher_sdram.v:149 Without hwswap16 every pen's bit-pairs swap: pen -> ((pen&3)<<2)|(pen>>2), so shadow tiles 8/9/A (single-pen 0xE) drew pen 0xB -> pal[0x60B]=00a6c3db = the EXACT warm tan (DB,C3,A6) the diag6 cab probe measured; the correct pal[0x60E] is BL
- source/cores/nslasher/hdl/jtnslasher_main.v:63 bit2 (the m_pri&4 raw/faded coloffs, deco32_v.cpp:352) FORCED 0 — nslasher's ONLY pri write is nslasher_eeprom_w=deco32_pri_w(data&0x3) (deco32.c:650; full nslasher_map verified, NO other pri write), so m_pri&4 is structurally always 0 -> o
- source/cores/nslasher/hdl/jtnslasher_main.v:119 ---- 93C46 EEPROM (jt9346) — bit-banged via the 0x150000 write (nslasher_eeprom_w) ---- POWER-UP PRELOAD (2026-06-09): the synthesized jt9346 RAM powers up BLANK (M10K init = 0; the all-1s fill is sim-only), and the dump/NVRAM port was tied
- source/cores/nslasher/hdl/jtnslasher_main.v:123 Preload the MAME golden image (mame-dump/nvram/nslashers/eeprom -> eeprom_golden.hex, 64x16 big-endian words) through the dump port once at power-up (64 clks, runs during reset; the done bit survives soft resets so in-session service-menu w
- source/cores/nslasher/hdl/jtnslasher_main.v:410 soundlatch: 32-bit write to 0x200700, command in bits [23:16] (MAME data>>16)
- source/cores/nslasher/hdl/jtnslasher_main.v:424 0x40: MAME eeprom_set_cs_line((data&0x40)?CLEAR:ASSERT).
- source/cores/nslasher/hdl/jtnslasher_main.v:424 In the old MAME eeprom device CS is a reset-when-ASSERT line: the chip is ACTIVE when the line is CLEAR, i.e. selected when data&0x40 is SET.
- source/cores/nslasher/hdl/jtnslasher_dwnld.v:20 Proven END-TO-END by ver/gfx/verify_fold8_gateB.py (real .mra -> big-endian mra2rom -> this remap -> single-read model == MAME golden, 1495296/1495296 px) on top of the HW-proven nf4-dense identity model (raw lane-select p4, byte-exact on t
- source/cores/nslasher/hdl/jtnslasher_colmix.v:1 Composites 4 playfields + 2 sprite layers into 24-bit RGB per VIDEO_UPDATE(nslasher) (deco32_v.cpp mix_nslasher + deco_ace.cpp).
- source/cores/nslasher/hdl/jtnslasher_colmix.v:102 deco_ace get_alpha (deco_ace.cpp:208-224): >0x20 -> 0x80 special ; else 255-(v<<3) clamp>=0
- source/cores/nslasher/hdl/jtnslasher_colmix.v:111 mixAlphaTilemap flag (deco32_v.cpp:470-471): ace[0x17]!=0 && (m_pri&3).
- source/cores/nslasher/hdl/jtnslasher_colmix.v:111 In JOINT-8bpp mode (pri[1], deco32_v.cpp:491-495) the alpha-tilemap BITMAP is never drawn — the combined PF3/4 layer + PF2-on-top replace the whole plain stack — so the mist blend and the front-PF holdout must NOT fire there.
- source/cores/nslasher/hdl/jtnslasher_colmix.v:114 The raw flag still drives the obj0-pri2 on-top rule (mix_nslasher:363), which MAME applies in both modes (the empty alpha bitmap makes its blend a no-op, not the flag).
- source/cores/nslasher/hdl/jtnslasher_colmix.v:134 ---- FIX B: JOINT-8bpp combined PF3/4 (pri[1]; deco32_v.cpp:491-495) ---- mix_callback (deco32.cpp:936-939): pen = ((p&0x70f) + (((p&0x30)|(p2&0x0f))<<4)) & 0x7ff with p/p2 = {colour_bank, colour, pen} of PF3/PF4 (runtime tm_bank0/1 <<8 — s
- source/cores/nslasher/hdl/jtnslasher_colmix.v:140 OFFLINE GATE PASSED: ver/gfx/bio_render.py replays the captured Jake-bio frame (vancaps f03000; pri=6 there per the attract_pri.txt COMPLETE 0x150000 write log) through this exact formula -> 0/76800 vs MAME's own snapshot; the plain path re
- source/cores/nslasher/hdl/jtnslasher_colmix.v:154 backdrop = pen 0x300 (deco32_v.cpp:476; was 0x200 = the green left line)
- source/cores/nslasher/hdl/jtnslasher_colmix.v:157 PF2 on top (tag4, deco32_v.cpp:494)
- source/cores/nslasher/hdl/jtnslasher_colmix.v:172 F3: MAME (deco32_v.cpp:364) draws obj0-pri2 ON TOP when mixAlphaTilemap, so the alpha foliage blends OVER the character (see-through), instead of the front PF dropping it.
- source/cores/nslasher/hdl/jtnslasher_colmix.v:180 alpha1 (deco32_v.cpp:348)
- source/cores/nslasher/hdl/jtnslasher_colmix.v:182 RUNTIME reg (0x164008, MAME sprite2_color_bank_w); hardcoding 3'h6 was the warm-shadow bug (base moves in-game)
- source/cores/nslasher/hdl/jtnslasher_colmix.v:185 FIX C (mechanism G): obj1 ALPHA pri1 0/1 tilemap-side suppression (deco32_v.cpp:410-418).
- source/cores/nslasher/hdl/jtnslasher_colmix.v:191 Shadows under foreground scenery (front PF) are now hidden exactly as MAME hides them.
- source/cores/nslasher/hdl/jtnslasher_colmix.v:200 --- deco_ace obj alpha: aidx from obj1 colour, get_alpha LUT, gate by alpha1/alpha2 (deco32_v.cpp:390) ---
- source/cores/nslasher/hdl/jtnslasher_colmix.v:220 ---- raw/faded select (deco_ace coloffs): sprite -> raw when pri[2]==0 ; PF -> faded ---- obj0 coloffs (deco32_v.cpp:352) = ~pri[2].
- source/cores/nslasher/hdl/jtnslasher_colmix.v:221 obj1 coloffs (deco32_v.cpp:387) = ~pri[2] & sprite1_drawn, where sprite1_drawn = "obj0 drew at this pixel" = o0draw.
- source/cores/nslasher/hdl/jtnslasher_colmix.v:227 MAME 0284 decodes the 8x8 chars at colorbase 0x800 (deco32.cpp:1884) and deco_ace maps pens 0x800-0xfff to the raw palette (deco_ace.cpp:181) -> PF1 is never touched by the ACE fade.
- source/cores/nslasher/hdl/jtnslasher_colmix.v:229 The old "PF always read faded" premise was 2009-driver descent; visible on door-fades/scene fades where MAME keeps text full-colour.
- source/cores/nslasher/hdl/jtnslasher_colmix.v:235 Front PF (pri tag4) alpha-blended last (deco32_v.cpp:443-456): p=frontpen ; alpha=get_alpha(0x17 + (front_colour>>1)) ; coloffs = obj1's ; gated by sprite pri.
- source/cores/nslasher/hdl/jtnslasher_colmix.v:239 F2-FIX (nf14): MAME mist pen = pal2[coloffs | p].
- source/cores/nslasher/hdl/jtnslasher_colmix.v:248 MAME: the alpha-tilemap/mist is drawn from tilegen[1]->tilemap_1_draw = PF3 (deco32_v.cpp:503) when pri[0]=1, and PF3 carries the runtime colour bank set_tilemap_colour_bank(0,(data&7)<<4) (=tm_bank0).
- source/cores/nslasher/hdl/jtnslasher_colmix.v:260 FIX C (mechanism G) mist pen, 0284-faithful (deco32_v.cpp:443-456): p = alphaTilemap[x] is the front-PF PIXMAP value, which INCLUDES the tilemap colour bank — (tm_bank0<<8) for PF3 (runtime set_tilemap_colour_bank, boot-static =2) / 0x100 f
- source/cores/nslasher/hdl/jtnslasher_colmix.v:264 The nf22-vs-nf12/nf18 foliage conflict is ARBITRATED (A3): the complete attract 0x164000 write log (mame-dump/vancaps/attract_pri.txt) shows tm_bank0 is written ONCE at boot (=2) and never moves -> MAME's foliage mist pen base IS 0x200; the
- source/cores/nslasher/hdl/jtnslasher_colmix.v:267 Special moves were confirmed MAME-accurate at this pen shape on nf22.
- source/cores/nslasher/hdl/jtnslasher_colmix.v:276 obj0 absent or low pri (deco32_v.cpp:450)
- source/cores/nslasher/hdl/jtnslasher_colmix.v:278 FIX C (mechanism G): & ~pf1on — MAME mixes the alpha tilemap BEFORE drawing PF1 (deco32_v.cpp:517-519), so text renders OVER the fog and is never tinted by it.
- source/cores/nslasher/hdl/jtnslasher_colmix.v:449 3rd read: mist pen (MAME pal2 base, F2)
- source/cores/nslasher/hdl/jtnslasher_colmix.v:471 - If shadow + dialog now render DARK/correct on the cab => the entire fade FSM (pal_B/freeze/ resync/faded RAM) is the culprit (stale / never-runs / RAM-inference garbage on HW) => the fix is to DELETE it and fade INLINE on read (as MAME do
- README.md:19 You still supply the ROMs yourself: `nslasher` / `nslasherj` / `nslashers` (MAME set 0.284) in `/media/fat/games/mame/`.
- README.md:73 **Rebalanced audio mix** — music (YM2151) brought down, voice (OKI1 speech) up, SFX (OKI2) adjusted, after diffing each channel against MAME.
- README.md:104 ROMs (MAME set 0.284: `nslasher` / `nslasherj` / `nslashers`) go in `/media/fat/games/mame/`
- README.md:137 Reference: MAME 0.284 `deco32` driver.
MAMEと一致する、MAMEに合わせた、またはMAMEで確認したと記載 — 6
MAMEから移植・書き写した、または取り入れたと記載 — 1
MAMEドライバと同じ文言を含む(出典の明記なし) — 6