-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ 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
Showing
11 changed files
with
62,615 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ __* | |
*.diz* | ||
*.log | ||
*.ini | ||
*.code-workspace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.