i need to subtract the number in $4031 from the number in $4030.
if the result is zero - store in $4032
if the result is negative - store in $4033
if the result is positive - store in $4034
4000 lda $4030
4003 sec
4004 sbc $4031
4007 beq $07
4009 bmi $09
400a sta $4034
400d brk
400e sta $4032
4011 brk
4012 sta $4033
4015 brk
is that how it's done? i'm unsure about 2 branches one after another. thanks.
if the result is zero - store in $4032
if the result is negative - store in $4033
if the result is positive - store in $4034
Code:
4000 lda $4030
4003 sec
4004 sbc $4031
4007 beq $07
4009 bmi $09
400a sta $4034
400d brk
400e sta $4032
4011 brk
4012 sta $4033
4015 brk
is that how it's done? i'm unsure about 2 branches one after another. thanks.