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

Undefined symbol 'STATETAB0' Value=0 in 07_testsnd.zsm #1

Closed
synthead opened this issue Jul 15, 2023 · 0 comments · Fixed by #2
Closed

Undefined symbol 'STATETAB0' Value=0 in 07_testsnd.zsm #1

synthead opened this issue Jul 15, 2023 · 0 comments · Fixed by #2
Assignees
Labels
bug Something isn't working

Comments

@synthead
Copy link
Owner

synthead commented Jul 15, 2023

When assembling 07_testsnd.zsm, this error is raised:

Assembling 150 Version...
Assembling 150S Version...
/root/asm_file(32): Undefined symbol 'STATETAB0' Value=0
L011f:  lda     STATETAB0,X ; The state table get routine - WRIST_GETSTATE

The Toebes' assembler link to download includes the same tutorial programs, but they are a little different. Most of the changes are simply comment and indent differences, but I noticed this in the zip file that isn't in the code in the 7 - Playing with Sound tutorial:

-L011f:  lda     STATETAB0,X ; The state table get routine - WRIST_GETSTATE
-        rts
+L011f:          lda     TABLE0,X
+                rts

There is probably a bug in the version on the website, and this probably fixes said bug.

In addition, a ZAP file is still produced, but if it is synced to a 150, the watch resets its data and reboots when opening the program.

@synthead synthead added the bug Something isn't working label Jul 15, 2023
@synthead synthead self-assigned this Jul 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant