PC-1500 lhasm .CHECKSUM directive

Talk in English

Modérateur : Politburo

Répondre
kuzja
Fonctionne à 75 bauds
Fonctionne à 75 bauds
Messages : 17
Enregistré le : 01 avr. 2021 14:26

PC-1500 lhasm .CHECKSUM directive

Message par kuzja »

Hello,
after a break, I came back to the PC-1500 assembler, and I encountered a problem with the .CHECKSUM directive.
For the tests, I used lhasm version 0.7.8.

In my program, the .CHECKSUM directive works fine with no argument.
Now I'd like to change it so that it starts the calculation from a certain label, e.g.:

Code : Tout sélectionner

.CHECKSUM LABEL1
But the label is interpreted as "code", i.e. the first optional argument, and I am not able to convince the compiler it should handle it as the start address. I also tried to use a variable (like %00s) instead of the label name, but there was no difference.

If I put a dummy code as an argument, the directive works fine:

Code : Tout sélectionner

.CHECKSUM 00 LABEL1
There is nothing wrong with this workaround, but I wonder, is there a way to do it without the dummy code...?
Thanks for any ideas. :)
Répondre

Retourner vers « Silicium in English »