Re: A92: A stupid question...
[Prev][Next][Index][Thread]
Re: A92: A stupid question...
VINCENT VIVES wrote:
>
> I was wondering why when I compile a prog I made, there's an error like :
>
> " add.b #1,a0"
> ^
> L wrong size operand.
>
> Because when I read any guide about 68k asm, it's written that the length of
> the data can be :
> a byte, a word, a longword.
If you read more carefully, you'll probably find that when the destination
is an address register you can only use word or longword sizes and that all
the destination is affected (that means that if you use a word, it's sign-
extended to long before operating on the whole address register).
Laurent
References: