(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
06-16-24 11:13 AM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - 65816 ASM question
  
User name:
Password:
Reply:
 
Options: - -
Quik-Attach:
Preview for more options

Max size 1.00 MB, types: png, gif, jpg, txt, zip, rar, tar, gz, 7z, ace, mp3, ogg, mid, ips, bz2, lzh, psd

UserPost
Sukasa
Posts: 786/2068
THANK YOU VERY MUCH.

That will help me very much both in programming and in making up a better file with definitions of the different styles of addressing and that for 65816.
MathOnNapkins
Posts: 391/1106
The brackets indicated a long pointer, i.e. 24 bit and hence 3 bytes. The address inside the brackets is a direct page address.

So for example if you do LDA [$00] and at $7E:0000 there are the values 00 80 7F, the value loaded into A will be the value at $7F:8000. How many bytes are stored of course depends on the M register. You can also use the Y register as an index, and do LDA [$00], Y. That will load the value at $7F8000 + Y). I've heard that even works across bank boundaries but don't quote me on that. Read it in one of Nach's documents.

LDA ($00) by contrast, does something similar but uses the Databank register's current value and hence only needs to fetch 2 bytes to form an address.
Sukasa
Posts: 784/2068
In 65816, ther is a command that goes somewhat like LDA [&xx]. Am I right in assuming that from what I understand of the command, that the processor would load A with the value in RAM that $xx points to, e.x. if $xx is $02, and at $02 there is the value #$04, then A would be loaded with #$04 after LDA [$xx]?

If so, how many bytes large is the address pointer that would be stored in $xx? 1, 2, or 3 bytes large?
Acmlm's Board - I3 Archive - Programming - 65816 ASM question


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.011 seconds; used 348.78 kB (max 383.72 kB)