EASy68K
http://easy68k.com/EASy68Kforum/

"ADDRESS REGISTER INDIRECT WITH INDEX"
http://easy68k.com/EASy68Kforum/viewtopic.php?f=5&t=1271
Page 1 of 1

Author:  gtippery [ Wed Dec 18, 2013 4:04 pm ]
Post subject:  "ADDRESS REGISTER INDIRECT WITH INDEX"

Code:
Line 10 ERROR: Invalid syntax
00001000                            10              MOVE    D7,(A0+A6.L)
Line 11 ERROR: Invalid syntax
00001000                            11              MOVE    D7,0(A0+A6.L)
Line 12 ERROR: Invalid syntax
00001000                            12              MOVE    D7,(0,A0+A6.L)
Line 13 ERROR: Invalid syntax
00001000                            13              MOVE    D7,(0,A0+A6)
Line 14 ERROR: Invalid syntax
00001000                            14              MOVE    D7,(0,A0.L+A6)


I give up, what IS the correct syntax?

Author:  profkelly [ Fri Dec 20, 2013 1:30 pm ]
Post subject:  Re: "ADDRESS REGISTER INDIRECT WITH INDEX"

Code:
    MOVE D7,(A0,A6.L)
    MOVE D7,(A0,A6.W)

Author:  gtippery [ Sat Dec 21, 2013 5:18 am ]
Post subject:  Re: "ADDRESS REGISTER INDIRECT WITH INDEX"

:oops: {Need a "bangs head" smiley}

Thanks. Not sure where I got the "+" from. Maybe a different assembler.

Author:  profkelly [ Sat Dec 21, 2013 2:00 pm ]
Post subject:  Re: "ADDRESS REGISTER INDIRECT WITH INDEX"

:banghead:

Author:  Obeisance [ Mon Feb 12, 2018 12:02 am ]
Post subject:  Re: "ADDRESS REGISTER INDIRECT WITH INDEX"

Does EASy68k include the scaling part of the "address register indirect with index" addressing mode?

as in:

Code:
MOVE ($0,A2,D0.L*4),D1


This "*4" allows for a shorter way of indexing an offset number of long words (or words) without explicitly writing a multiplication instruction.

Author:  profkelly [ Mon Feb 12, 2018 1:59 pm ]
Post subject:  Re: "ADDRESS REGISTER INDIRECT WITH INDEX"

Scaled Index address is not supported. That feature was not available until later versions of the 68K family. I think the 68020 was the first variant to support it.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/