Metal Slug 3 - native Windows x64 recompilation
===============================================

This is a static recompilation of Metal Slug 3's Motorola 68000 program,
built on neogeorecomp. It is not an emulator frontend: the 68000 code runs
as compiled C against a model of the MVS board, with Musashi used only for
code reached through swapped bank windows.

Requirements
------------
* Windows 10/11 x64.
* Your own legally obtained ROMs:
    - the MAME "mslug3" set (256-pg1.p1, 256-pg2.p2, green.neo-sma,
      256-c1..c8.c8, 256-m1.m1, 256-v1..v4.v4)
    - the MAME "neogeo" system ROM set, for sp-s2.sp1, sfix.sfix,
      sm1.sm1 and 000-lo.lo
  No ROMs or BIOS images are included in this package.

Preparing the ROMs
------------------
Right-click Prepare-ROMs.ps1 and choose "Run with PowerShell" (or run it
from a terminal). It asks for the two zips, extracts and decrypts them into
the "roms" folder. Everything stays local.

Alternatively, if you already have the decrypted runtime files, put them in
a folder named "roms" beside Metal_Slug_3.exe.

Running
-------
Double-click "Play Metal Slug 3.cmd", or run:

    Metal_Slug_3.exe --rom-path roms

Command line (the standard neogeorecomp set):
    --rom-path DIR   --bios-path DIR   --bios FILE
    --headless       --frames N        --screenshot N:FILE
    --input FILE     --verify          --dump-misses FILE
    --scale N        --fullscreen      --wav FILE   --mute

Controls
--------
    arrows / left stick      move
    Z X C V / A B X Y        Neo Geo A B C D
    5 / Back                 insert coin
    1 / Start                start
    3 / left shoulder        select
    9                        service
    F2                       test switch
    F11                      toggle fullscreen
    Esc                      quit

Status of this build
--------------------
* Boot, attract mode, coin/service, title, soldier select and Mission 1
  gameplay were tested from the owner's dump.
* Video: sprites, backgrounds, palette, fix layer and raster effects are
  rendered by the recompiled code (screenshots were checked).
* Native coverage measured over a 9,200-frame scripted session:
  166,484,501 native instructions, 282,357 interpreted = 99.83% native.
* --verify over the same gameplay path (3,200 frames): 1,829,992 blocks
  checked, 0 mismatches.
* Audio: the YM2610/M1 path is corrected for the M1 bank mask. The final
  WAV is continuous from attract through character select and Mission 1
  (peak 29,938 over 4,000 frames); the mixer/volume balance has not been
  auditioned. Physical Deck audio still needs a listening test.
* Steam Deck AppImage: built and launched headless/fullscreen in WSL; not
  tested on physical Deck hardware.

License
-------
Original project code: PolyForm Noncommercial 1.0.0 (confirmed by the project
owner on 2026-10-26). neogeorecomp is MIT; Musashi, superzazu/z80 and ymfm
keep their own MIT/BSD-3 licences; the decryption tables come from MAME
(BSD-3-Clause). See LICENSES\THIRD_PARTY_NOTICES.txt in this folder for the
full notices. No SNK code or ROM data is claimed as original.
