hi.
In my code i have this:
If i run this, look contains #$0C. If i do this (uncomment and comment certian lines):
Then look contains #$ff. Why? Isn't that susposed to be zero? When I change it to sbc #11, my code works how i wanted it to. But i dont understand. Isn't #$0C - #12 equal to 0?
In my code i have this:
Code:
clc
sta look
sbc #12
; sta look
sta look
sbc #12
; sta look
If i run this, look contains #$0C. If i do this (uncomment and comment certian lines):
Code:
clc
; sta look
sbc #12
sta look
; sta look
sbc #12
sta look
Then look contains #$ff. Why? Isn't that susposed to be zero? When I change it to sbc #11, my code works how i wanted it to. But i dont understand. Isn't #$0C - #12 equal to 0?