For the last hand-written Assembly function that I need in my game, I want to do a comparison of two values. (Well, actually a comparison of two arrays, but the array aspect isn't important for my question.)
Both values are set in variables, i.e. I don't compare a variable with a constant value, but I compare two variables.
Now what do I have to do to check for "less than" (<) and "greater than" (>).
I do not need <= and >=, like I did yesterday. Only < and >.
Code: Select all
LDA Value1 CMP Value2 BEQ @equals XXX @lessThan YYY @greaterThan @equals: ; ... @lessThan: ; ... @greaterThan: ; ...