Rybags, on Fri Mar 9, 2012 1:27 AM, said:
AND is common though but Atari Basic only uses AND/OR/NOT in a simple boolean mode.
The common way of doing such things is:
H = INT(A/256) : L = A-H*256
I suppose if you had widespread need to get hi/lo bytes throughout a program you could do it in a couple of USR routines.
MOD256$ = " pla / pla / pla / sta $d4 / lda #0 / sta $d5 / rts "
DIV256$ = "pla / pla / tax / pla / stx $d5 / lda #0 / sta $d4 / rts "
Actually, I think AND is simple boolean mode on all the BASICs I've used. Been a long time since I've used BASIC.













