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

Fix Undefined symbol 'TIM_2_8TIC' Value=0 in 04_flash.zsm #6

Merged
merged 1 commit into from
Jul 15, 2023

Conversation

synthead
Copy link
Owner

Fixes #5!

This is the same fix as #4, but for 04_flash.zsm 💥

From #4:

Fixes #3!

Replaces TIM_2_8TIC with TIM2_8TIC in 03_update.zsm.

This one is a little interesting! The TIM_2_8TIC symbol actually exists in the include file inside the Wristapp.i for the 150 zip archive from http://toebes.com/Datalink/wristapps.html:

TIM_2_8TIC      EQU     $83     ; This is the normal blink interval

However, the Wristapp.i file from Toebes' assembler setup program (inside the zip archive here) does not have the symbol TIM_2_8TIC. Instead, it contains the TIM2_8TIC symbol, which looks to be renamed from TIM_2_8TIC:

TIM2_8TIC       EQU     $83     ; This is the normal blink interval

Additionally, TIM_2_8TIC does not exist in the include file inside the Wristapp.i for the 150s zip archive. It also contains a similar TIM2_8TIC:

TIM2_8TIC       EQU     $83     ; This is the normal blink interval

Since there's different versions of this include file floating around, I thought I'd check the date stamps of the file in the Wristapp.i for the 150 zip archive vs the file inside the setup program:

Location Date
Assembler archive Aug 9th 1997
Wristapp.i for the 150 May 10th 1997

Since the include file in the assembler archive is newer, and the same symbol is also available for the 150s in the assembler archive, I'm going to assume that this symbol was renamed after May 10th, 1997 from TIM_2_8TIC to TIM2_8TIC, and that the file in the Wristapp.i for the 150 zip archive is out-of-date.

From #3:

When assembling 03_update.zsm, this error is raised:

Assembling 150 Version...
Assembling 150S Version...
/root/asm_file(49): Undefined symbol 'TIM_2_8TIC' Value=0
        db      EVT_ENTER,TIM_2_8TIC,0          ; Initial state

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 3 - Better Input:

-        db      EVT_ENTER,TIM_2_8TIC,0          ; Initial state
+        db      EVT_ENTER,TIM2_8TIC,0           ; Initial state

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

@synthead synthead self-assigned this Jul 15, 2023
@synthead synthead added the bug Something isn't working label Jul 15, 2023
@synthead synthead merged commit d5f80a2 into main Jul 15, 2023
@synthead synthead deleted the fix-Undefined-symbol-TIM_2_8TIC-in-04_flash.zsm branch July 15, 2023 08:56
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
Development

Successfully merging this pull request may close these issues.

Undefined symbol 'TIM_2_8TIC' Value=0 in 04_flash.zsm Undefined symbol 'TIM_2_8TIC' Value=0 in 03_update.zsm
1 participant