asm6 MainASM.nes game.nes demo.txt > compilelog.txt 2>&1 This way you won't have to press any keys/close the console window and if there are any errors, you just can check compilelog.txt.