Re: A92: serious help here please
[Prev][Next][Index][Thread]
Re: A92: serious help here please
>> B) what if you had 16(a0,d0),d1...for example:
>>
>> if you had the following:
>> a0=$0002
>> d0=$0004
>> d1=$0006
>> $0006=#8
>> $0016=#10
>> would "ADD 16(a0,d0),d1" be:
>> a) d1=30 (16+indirect(a0+d0)+d1)
>> b) d1=16 (indirect(a0+d0+16)+d1)
>> and if the answer is (b) then why is 16 outside parentheses?
>>
>> -Rob
>Neither : it will take a0+d0+16 (so the adress will be 22)
>before
>a0=$0002
>d0=$0004
>$0022=#20
>after:
>d1=#20
22 is $16 (hexadecimal)...but the ADD statement says
"source+destination->destination"...won't you have to add d1 to the
answer you get for the source?
what you are trying to say is:
ADD 16(a0,d0),d1
a0=$0002
d0=$0004
d1=$0006
$0016=#10
afterward d1=#10 and not d1=#16, which makes no sense because then you
aren't actually adding the source and destination together, you are just
MOVEing the source into the destination...it's like saying MOVE
16(a0,d0),d1.
So, is he correct, or is it some other answer? Someone, please comment.
-Rob
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com