Skip to content

Commit

Permalink
Healthy updates
Browse files Browse the repository at this point in the history
+ learned of several asar commandline arguments:
-- disabled auto checksum, so now SS version assembles perfectly
-- PATCH.bat now assembles all 5 versions in one go
-- created symbol files for all versions
+ Also created a VSCode extension to grab data and comments from symbol files, rammap.asm, constants.asm, and hardware_registers.asm to create tooltips for labels and defines!!
  • Loading branch information
IsoFrieze committed Feb 6, 2023
1 parent b4f99ae commit 0aa2baf
Show file tree
Hide file tree
Showing 11 changed files with 62,615 additions and 86 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ __*
*.diz*
*.log
*.ini
*.code-workspace
71 changes: 41 additions & 30 deletions PATCH.bat
Original file line number Diff line number Diff line change
@@ -1,46 +1,57 @@
@echo off
echo Assembling...
echo. 2>smw.smc
asar smw.asm smw.smc
asar -wno1009 -wno1018 --fix-checksum=off --symbols=nocash --define _VER=!__VER_J smw.asm SMW_J.smc
asar -wno1009 -wno1018 --fix-checksum=off --symbols=nocash --define _VER=!__VER_U smw.asm SMW_U.smc
asar -wno1009 -wno1018 --fix-checksum=off --symbols=nocash --define _VER=!__VER_SS smw.asm SMW_SS.smc
asar -wno1009 -wno1018 --fix-checksum=off --symbols=nocash --define _VER=!__VER_E0 smw.asm SMW_E0.smc
asar -wno1009 -wno1018 --fix-checksum=off --symbols=nocash --define _VER=!__VER_E1 smw.asm SMW_E1.smc
echo Assembly complete!

:checkj
fc comparison_J.smc smw.smc > nul
if errorlevel 2 goto checku
if errorlevel 1 goto checku
fc comparison_J.smc SMW_J.smc > nul
if errorlevel 1 goto jmiss
:jmatch
echo J version match!
goto done
goto checku
:jmiss
echo J version MISMATCH!

:checku
fc comparison_U.smc smw.smc > nul
if errorlevel 2 goto checke0
if errorlevel 1 goto checke0
fc comparison_U.smc SMW_U.smc > nul
if errorlevel 1 goto umiss
:umatch
echo U version match!
goto done
goto checkss
:umiss
echo U version MISMATCH!

:checkss
fc comparison_SS.smc SMW_SS.smc > nul
if errorlevel 1 goto ssmiss
:ssmatch
echo SS version match!
goto checke0
:ssmiss
echo SS version MISMATCH!

:checke0
fc comparison_E0.smc smw.smc > nul
if errorlevel 2 goto checke1
if errorlevel 1 goto checke1
fc comparison_E0.smc SMW_E0.smc > nul
if errorlevel 1 goto e0miss
:e0match
echo E0 version match!
goto done
goto checke1
:e0miss
echo E0 version MISMATCH!

:checke1
fc comparison_E1.smc smw.smc > nul
if errorlevel 2 goto checkss
if errorlevel 1 goto checkss
fc comparison_E1.smc SMW_E1.smc > nul
if errorlevel 1 goto e1miss
:e1match
echo E1 version match!
goto done
:checkss
fc comparison_SS.smc smw.smc > nul
if errorlevel 2 goto checkssf
if errorlevel 1 goto checkssf
echo SS version match!
goto done
:checkssf
fc comparison_SS_f.smc smw.smc > nul
if errorlevel 2 goto error
if errorlevel 1 goto error
echo SS version temporary match!
goto done
:error
echo The assembled ROM does not match any version!
:e1miss
echo E1 version MISMATCH!

:done
pause
Loading

0 comments on commit 0aa2baf

Please sign in to comment.