[A89] Re: er, addq #0,dx


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

[A89] Re: er, addq #0,dx




At 10:10 2001-04-09, you wrote:
>Ooops, you're right here -- it's addq that's limited from 1 to 8 (this time
>I'm reading it in the manual while asking the question =)  So does TIGCC
>allow "addq #8, d0" in inline ASM?

nope, it does not. it accepts "addq #8,%d0" though, since this is gnu 
assembler and not a68k.
Or... it will, if you have a symbol named d0 somewhere...
But that was probably just a typo, so the real answer is, yes, it is fixed, 
now the range is the correct 1-8 and not 0-7.

>That's right, it came up in a discussion about restoring the stack after a
>ROM Call -- because if you're only adding a value between one and eight to
>the stack pointer, addq and lea are the same speed, but addq is smaller -
>right?

That is correct.

///Olle





References: