1 Introduction lsnes is SNES rerecording emulator based on bsnes core. 2 Command line options • Syntax: lsnes.exe (|) • Syntax: lsnes-avidump • Syntax: movieinfo.exe 2.1 ROM options These options control loading the ROM. 2.1.1 --rom= Load (SFC file format) as main SNES cartridge ROM. This is the game ROM for SNES and cartridge BIOS for other types. Required option. 2.1.2 --headered-rom= Same as --rom, but strips first 512 bytes off the file as copier header. Handy for loading .smc and .fig (also some others) files. 2.1.3 --rom-xml= Set the mapping XML file for main cartridge ROM. If not specified, defaults are used. 2.1.4 --bsx= Load (BS file format) as BS-X non-slotted flash memory. Also sets system type to BS-X non-slotted (not compatible with --bsxslotted=, --dmg=, --slot-a= nor --slot-b=). 2.1.5 --headered-bsx= Same as --bsx but strips first 512 bytes off the file as copier header. Handy for loading .smc and .fig (also some others) files. 2.1.6 --bsx-xml= Set mapping XML file for BS-X non-slotted flash memory. If not specified, defaults are used. Only can be used together with --bsx=. 2.1.7 --bsxslotted= Load (BS file format) as BS-X slotted flash memory. Also sets system type to BS-X slotted (not compatible with --bsx=, --dmg=, --slot-a= nor --slot-b=). 2.1.8 --headered-bsxslotted= Same as --bsxslotted but strips first 512 bytes off the file as copier header. Handy for loading .smc and .fig (also some others) files. 2.1.9 --bsxslotted-xml= Set mapping XML file for BS-X slotted flash memory. If not specified, defaults are used. Only can be used together with --bsxslotted=. 2.1.10 --dmg= Load (GB file format) as Game Boy ROM. Also sets system type to SGB (not compatible with --bsx=, --bsxslotted=, --slot-a= nor --slot-b=). 2.1.11 --headered-dmg= Same as --dmg but strips first 512 bytes off the file as copier header. Handy for loading .smc and .fig (also some others) files. 2.1.12 --dmg-xml= Set mapping XML file for Game Boy ROM. If not specified, defaults are used. Only can be used together with --dmg=. 2.1.13 --slot-a= Load (ST file format) as Sufami turbo cartridge A ROM. Also sets system type to Sufami Turbo (not compatible with --bsx=, --bsxslotted= nor --dmg=). 2.1.14 --headered-slot-a= Same as --slot-a but strips first 512 bytes off the file as copier header. Handy for loading .smc and .fig (also some others) files. 2.1.15 --slot-a-xml= Set mapping XML file for Sufami turbo cartridge A ROM. If not specified, defaults are used. Only can be used together with --slot-a=. 2.1.16 --slot-b= Load (ST file format) as Sufami turbo cartridge B ROM. Also sets system type to Sufami Turbo (not compatible with --bsx=, --bsxslotted= nor --dmg=). 2.1.17 --headered-slot-b= Same as --slot-b but strips first 512 bytes off the file as copier header. Handy for loading .smc and .fig (also some others) files. 2.1.18 --slot-b-xml= Set mapping XML file for Sufami turbo cartridge B ROM. If not specified, defaults are used. Only can be used together with --slot-b=. 2.1.19 --ips-rom= Apply IPS patch to main cartridge ROM. Requires --rom=. 2.1.20 --ips-rom-xml= Apply IPS patch to main cartridge ROM mapping XML. Requires --rom-xml=. 2.1.21 --ips-bsx= Apply IPS patch to BS-X non-slotted flash. Requires --bsx=. 2.1.22 --ips-bsx-xml= Apply IPS patch to BS-X non-slotted flash mapping XML. Requires --bsx-xml=. 2.1.23 --ips-bsxslotted= Apply IPS patch to BS-X slotted flash. Requires --bsxslotted=. 2.1.24 --ips-bsxslotted-xml= Apply IPS patch to BS-X slotted flash mapping XML. Requires --bsxslotted-xml=. 2.1.25 --ips-dmg= Apply IPS patch to Game Boy ROM. Requires --dmg=. 2.1.26 --ips-dmg-xml= Apply IPS patch to Game Boy ROM mapping XML. Requires --dmg-xml=. 2.1.27 --ips-slot-a= Apply IPS patch to Sufami turbo cartridge A ROM. Requires --slot-a=. 2.1.28 --ips-slot-a-xml= Apply IPS patch to Sufami turbo cartridge A ROM mapping XML. Requires --slot-a-xml=. 2.1.29 --ips-slot-b= Apply IPS patch to Sufami turbo cartridge B ROM. Requires --slot-b=. 2.1.30 --ips-slot-b-xml= Apply IPS patch to Sufami turbo cartridge B ROM mapping XML. Requires --slot-b-xml=. 2.1.31 --ips-offset= Set IPS apply offset to (can be negative). IPS apply offset is added to all addresses inside IPS file before applying. If the resulting address is negative, write is ignored (with a warning). If resulting address exceeds ROM size, the ROM is extended. Using offset of -512 is handy for applying IPS patches meant for SMC/FIG or such files. 2.1.32 --pal Force ROM to be considered PAL-only (warning: Will cause error if used on anything except SNES and SGB). 2.1.33 --ntsc Force ROM to be considered NTSC-only (default for everything except SNES and SGB). 2.2 New session options (lsnes.exe only) If filename is not specified, new session is started. These options control the properties of new session: 2.2.1 --port1= Set type of port1. Valid values are: • none: No device connected • gamepad: One gamepad (the default) • multitap: Four gamepads (warning: makes most games refuse to start) • mouse: Mouse. 2.2.2 --port2= Set type of port2. Valid values are: • none: No device connected (the default) • gamepad: One gamepad • multitap: Four gamepads. • mouse: Mouse • superscope: Super Scope • justifier: One justifier • justifiers: Two justifiers 2.2.3 --gamename= Set the name of game to 2.2.4 --author= Add author with full name of (no nickname). 2.2.5 --author=| Add author with nickname of (no full name). 2.2.6 --author=| Add author with full name of and nickname of . 2.2.7 --rtc-second= Set RTC second (0 is 1st January 1970 00:00:00Z). 2.2.8 --rtc-subsecond= Set RTC subsecond. Range is 0-. Unit is CPU cycle. 2.3 If filename is specified on command line, it is loaded as initial state (instead of constructing one). Mandatory for lsnes-avidump.exe and movieinfo.exe. 2.4 Misc. options 2.4.1 --run= (lsnes.exe only) After running main RC file, run this file. If multiple are specified, these execute in order specified. 2.5 dump options (lsnes-avidump.exe only) 2.5.1 --prefix= Set dump prefix. Default is “avidump”. 2.5.2 --level= Set compression level (0-18). Default is 7. 2.5.3 --length= Set number of frames to dump. Mandatory. 2.5.4 --lua=