If there are no errors, it will run the emulator immediately instead of having to press a key. If there are errors, it will pause so you can read the error. It will also log all output to a file log.txt (which is overwritten each time). There are a few old threads of this, but they're out of the way and don't have it exactly the way I do it.
Code: Select all
@echo off asm6 MainASM.nes game.nes demo.txt 1>log.txt 2>&1 if exist game.nes goto theend pause theend: