Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling instructions... #15

Open
chrisroode opened this issue Jun 15, 2023 · 1 comment
Open

Compiling instructions... #15

chrisroode opened this issue Jun 15, 2023 · 1 comment

Comments

@chrisroode
Copy link

Hello, I cloned this repository, and after searching the web, I decided to try compiling the assembly with asar to see if I had a working setup. I got a long list of fatal errors, making me think I'm not configured right. Can you add your compiling instructions so I can help troubleshooting this?

Here's the std output.

$asar smw.asm
macros.asm:133: error: (Edefine_not_found): Define '_VER' wasn't found.
macros.asm:14 (called from bank_00.asm:125): error: (Edefine_not_found): Define '_VER' wasn't found.
macros.asm:14 (called from bank_00.asm:127): error: (Edefine_not_found): Define '_VER' wasn't found.
macros.asm:14 (called from bank_00.asm:129): error: (Edefine_not_found): Define '_VER' wasn't found.
macros.asm:14 (called from bank_00.asm:138): error: (Edefine_not_found): Define '_VER' wasn't found.
macros.asm:14 (called from bank_00.asm:140): error: (Edefine_not_found): Define '_VER' wasn't found.
macros.asm:14 (called from bank_00.asm:142): error: (Edefine_not_found): Define '_VER' wasn't found.
macros.asm:14 (called from bank_00.asm:147): error: (Edefine_not_found): Define '_VER' wasn't found.
macros.asm:14 (called from bank_00.asm:149): error: (Edefine_not_found): Define '_VER' wasn't found.
macros.asm:14 (called from bank_00.asm:151): error: (Edefine_not_found): Define '_VER' wasn't found.
macros.asm:14 (called from bank_00.asm:176): error: (Edefine_not_found): Define '_VER' wasn't found.
macros.asm:14 (called from bank_00.asm:178): error: (Edefine_not_found): Define '_VER' wasn't found.
macros.asm:14 (called from bank_00.asm:180): error: (Edefine_not_found): Define '_VER' wasn't found.
macros.asm:14 (called from bank_00.asm:185): error: (Edefine_not_found): Define '_VER' wasn't found.
macros.asm:14 (called from bank_00.asm:187): error: (Edefine_not_found): Define '_VER' wasn't found.
macros.asm:14 (called from bank_00.asm:189): error: (Edefine_not_found): Define '_VER' wasn't found.
bank_00.asm:598: error: (Edefine_not_found): Define '_VER' wasn't found.
bank_00.asm:622: error: (Edefine_not_found): Define '_VER' wasn't found.
bank_00.asm:1261: error: (Edefine_not_found): Define '_VER' wasn't found.
bank_00.asm:2090: error: (Edefine_not_found): Define '_VER' wasn't found.
bank_00.asm:2693: error: (Edefine_not_found): Define '_VER' wasn't found.
bank_00.asm:2693: error: (Elimit_reached): Over 20 errors detected. Aborting.
A fatal error was detected while assembling the patch. Assembling aborted. Your ROM has not been modified.
$

I'm building on macOS Catalina. asar passed it's unit tests.

@MacaylaMarvelous81
Copy link

I think the 'How to Assemble' section in the README used to work as instructions, but it seems to be out of date. If you want to use asar directly, you need to define _VER, like this:

asar -wno1009 -wno1018 --fix-checksum=off --symbols=nocash --define _VER=!__VER_U smw.asm SMW_U.smc

It used to be defined in smw.asm, but it was removed in 0aa2baf since PATCH.bat was made to assemble all versions at once. The sh script also seems to be out of date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants