Snippets

ScorpionIlluminati Emu Assembler Script

Created by ScorpionIlluminati last modified

echo off rem save the old path echo on
SET oldpath=%path%

echo off rem set the path to the working folder, otherwise compilation will fail echo on
path c:\;path

echo off rem delete old assembled binary if it exists echo on
if exist bin/emu/rom.bin del bin/emu/rom.bin

echo off rem /p pure binary rem /k enable if assembler directives rem /o enable optimisations rem ow+ optimise absolute long addressing rem release=1 define to enable release code echo on
\snasm68k\snasm68k.exe /p /k /o op+,os+,ow+,oz+,oaq+,osq+,omq+ /e release=1 source.asm,\bin\emu\rom,\bin\emu\rom,\bin\emu\rom > \logs\emu.log

echo off rem restore the old path echo on
path oldpath
pause

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.