Currentally I'm using unsigned values.
With signed values (a == b) and (a != b) are the same, but when I use (a < b) it tends to get complicated.
This is what I currentlally have for unsigned value (assume 16 bit acc,index):
Code: Select all
;first value in stack
;next value in acc
CMP $01,S ;if(a < b)
BGE + ; = if(!(b >=a))
LDA #$FFFF ; true
BRA ++
+ ; else
LDA #$0000 ; false
++
PLY
I'm thinking that I should be able to do this if I divide this into two sections, positive and negitive (but it starts etting confusing)
Can Any suggestions be made???