Hamazing/source/hexagon/debug.bat

22 lines
588 B
Batchfile
Raw Permalink Normal View History

2023-05-22 16:17:35 +02:00
del hexagon.exe
del "..\winuae\hd0\hexagon.exe"
@if X%VBCC%==X%~dp0 goto AlreadySet
@set VBCC=%~dp0
@set PATH=%VBCC%\..\tools;%PATH%
:AlreadySet
copy "..\tools\vc.cfg" %~dp0
vc -g -hunkdebug -O2 -notmpfile -nostdlib -o "hexagon.exe" "hexagon.asm"
copy hexagon.exe "..\winuae\hd0"
copy hexagon.exe "..\winuae\hd0\a"
copy "..\winuae\hd0\s\debug-sequence" "..\winuae\hd0\s\startup-sequence"
@echo /|set /p =hexagon.exe >>"..\winuae\hd0\s\startup-sequence"
"..\winuae\winuae64" -config="configs\a500_debug.uae" -s use_gui=no -s filesystem2=rw,hd0:test:%~dp0\..\winuae\hd0,0
del vc.cfg