Re: A92: Questions about some instructions


[Prev][Next][Index][Thread]

Re: A92: Questions about some instructions




I will write an example of overflow in 68k asm (I hope most of you will
understand it ;-)

move.b #$FF,d0  ;Put the largest value possible in d0
addi.b   #1,d0     ;Add 1 to d0

At that point overflow occurs because the value of the addition (#$100) is too
large to be stored in the lower byte of d0.


Follow-Ups: