I would like to do a macro that tests the type of its second parameter
if the parameter is a number, I need to test it against 0, if it is a string, I want to test it against 'A' or 'a'
The idea is something like this:
macro _setVdp register,value
if (value <> 'a') and (value <> 'A')
if (value & 0xFF>0)
ld a,value & 0xFF
else
xor a
endif
endif
out (0x99),a
ld a,register + 0x80
out (0x99),a
endmacro
How can I do it in sjasm 0.42b8 ?
Aangemeld of registreer om reacties te plaatsen
login of registreer om te reageren
