|
Post by stiggity on Dec 15, 2021 18:05:04 GMT
anybuddy??
|
|
|
Post by bjonte on Dec 15, 2021 18:08:04 GMT
Bjonte: The initialization begings with this.. hex = 'b bin = 'a then continues with the following.. err = -1 timeout = -2 baddata = -3 cerr = -4 spedl = -5 my assembler cannot handle negative numbers, but I _think_ i should make it err = 256-1 timeout = 256-2 and so on... I appreciate the responses! Yes, you are correct. Just add 256 to negative numbers as long as they are used as 8-bit numbers. Otherwise add 65536. In this case it seems to be a byte that represents an error state so 256 is most likely correct.
|
|
|
Post by stiggity on Dec 19, 2021 2:04:36 GMT
Bjonte: THanks alot..
Would you be capable of filling me in with the below c64 Zero Page pointers, and there c128 counterparts?
zrub0 = $6c zrub1 = $6d zcrce = $68 zcrcg = $69 zcrcq = $6a zcrcw = $6b
I've found them in my manual, but the c128 counterparts seem off, or my consistent lack of manipulating pointers as i should. The original source code uses them throughout the routine, but again, the original code's for the c64. Thats not saying it's Only, or strictly for the c64. I did my best at adapting it to work on the c128, but those pointers, are most likely not right.
|
|
|
Post by oziphantom on Dec 19, 2021 14:00:30 GMT
64tass does handle negative numbers. just if you want to put one in a memory location you need to use .char not .byte
.byte -4 ; this will fail as bytes are unsigned .char -4 ; this will pass as chars are signed .char 200 ; this will fail as chars are signed so -127/+128
in order to translate we need to know both languages, if we want to translate something from German to french, we need to know the original is German before we know what the meaning of the words are.
My best guess for /Z is "0", which you can either do as .null "my text" .text "my text",0 which ever works better for you.
|
|
|
Post by stiggity on Dec 22, 2021 4:20:08 GMT
Ozi: Thank You! Any input on the above ZP pointers?
|
|
|
Post by oziphantom on Dec 22, 2021 5:39:43 GMT
those are just floating point temp stores, which I assume your program doesn't do any BASIC Floating point math via calling routines, so its just "these variables won't be used" to which while the 128's floating addresses are different at the byte level, those addresses are still Floating point temp storage and should be fine to use "as is".
|
|