My question is about the 6502 Assembly language. I'm trying to learn it using this website https://skilldrick.github.io/easy6502/.
On the topic of addressing modes. I don't understand the indirect addressing mode. See the source code example below.
LDA #$01
STA $f0
LDA #$cc
STA $f1
JMP ($00f0) ;dereferences to $cc01
Why is the JMP ($00f0)
dereferenced to $cc01
instead of $01cc
.
My memory looks like this
00f0: 01 cc 00 00 00 00 00 00 00 00 00 00 00 00 84
Here you see 00f0
starts with 01
and then followed by cc
so it looks more logical to me that the jump instruction would dereference to $01cc
, but why is this somehow reversed?