Need help with Kowalski assembler syntax
Posted: Thu Dec 28, 2023 6:50 am
I'm trying to have the assembler populate an 8-bit jump table and I can't figure out the correct syntax. I want it to put the low order address byte of a group of routines. This is what I'm trying:
< My routines >
routine_1 (first line of code) A0 00 ; assembles to $0420
(more lines of code) E6 00
D0 02
...
4C BF 0E ; last line at $0434
routine_2 (first line of code) A0 00 ; assembles to $0437
(more lines of code) 68
85 60
...
4C BF 0E ; last line at $0441
routine_2 (first line of code) A0 00 ; assembles to $0444
(more lines of code) B1 60
85 76
...
etc...
< My jump table >
.BYTE <routine_1 ; gets set to $5B
.BYTE <routine_2 ; gets set to $6F
.BYTE <routine_3 ; gets set to $70
etc...
The table "should" contain $20, $37, and $44 or maybe the contents of the address, but it contains neither. If I leave off the '<' I get
message saying something about not being able to fit a 16 bit value into an 8 bit BYTE. Also tried playing around with different combinations
of '#', '$', '>', and '<' but nothing I try gives the results I want. Is it even possible? If so, what is the correct syntax? Also, is there a good
user manual for the Kowalski assembler available online somewhere? I've been looking for the past 3 or 4 days and I can't find anything
that has a lot of detailed information. Thanks.
< My routines >
routine_1 (first line of code) A0 00 ; assembles to $0420
(more lines of code) E6 00
D0 02
...
4C BF 0E ; last line at $0434
routine_2 (first line of code) A0 00 ; assembles to $0437
(more lines of code) 68
85 60
...
4C BF 0E ; last line at $0441
routine_2 (first line of code) A0 00 ; assembles to $0444
(more lines of code) B1 60
85 76
...
etc...
< My jump table >
.BYTE <routine_1 ; gets set to $5B
.BYTE <routine_2 ; gets set to $6F
.BYTE <routine_3 ; gets set to $70
etc...
The table "should" contain $20, $37, and $44 or maybe the contents of the address, but it contains neither. If I leave off the '<' I get
message saying something about not being able to fit a 16 bit value into an 8 bit BYTE. Also tried playing around with different combinations
of '#', '$', '>', and '<' but nothing I try gives the results I want. Is it even possible? If so, what is the correct syntax? Also, is there a good
user manual for the Kowalski assembler available online somewhere? I've been looking for the past 3 or 4 days and I can't find anything
that has a lot of detailed information. Thanks.