mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-25 05:44:06 -06:00
vault backup: 2022-08-01 11:20:26
This commit is contained in:
parent
3cd73f88cf
commit
3928774584
@ -10,12 +10,21 @@ tags:
|
|||||||
- implied `inca`
|
- implied `inca`
|
||||||
- immediate `lda #$00`
|
- immediate `lda #$00`
|
||||||
- extended `LDA $31FE`
|
- extended `LDA $31FE`
|
||||||
- extended indirect `LDA [$31FE]` or `LDA [HERE]`
|
- extended indirect `LDA [$31FE]` or `LDA [HERE]` points to a memory location which specifies another memory location
|
||||||
- useful in a device driver
|
|
||||||
- direct `LDA $ff` or `lda <HERE`
|
- direct `LDA $ff` or `lda <HERE`
|
||||||
- register `trf X,Y`
|
- register `trf X,Y`
|
||||||
- indexed
|
- indexed `LDA $3111E, X` use memory location that is the sum of the operands
|
||||||
- indexed indirect
|
- `LDA ,X`
|
||||||
- relative
|
- `LDA $23,X`
|
||||||
- program counter relative
|
- 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**
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user