mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-25 05:44:06 -06:00
811 B
811 B
| title | aliases | tags | ||
|---|---|---|---|---|
| 07-6809-advanced |
|
10 addressing modes
- implied
inca - immediate
lda #$00 - extended
LDA $31FE - extended indirect
LDA [$31FE]orLDA [HERE]points to a memory location which specifies another memory location - direct
LDA $fforlda <HERE - register
trf X,Y - indexed
LDA $3111E, Xuse memory location that is the sum of the operandsLDA ,XLDA $23,X- etc
- indexed indirect
LDA [$10, X] - relative
BEQ HERE- BEQ does a short branch
- LBEQ does a long branch
- the value is relative to HERE
- program counter relative
LDA TABLE,PCR ; A = the value stored at TABLE- if all memory references are relative, then the program cna be loaded anywhere is memory, and will still work. It is said to be relocatable