summaryrefslogtreecommitdiff
path: root/doc/MINIMAL.6502
blob: ae2044d89c3daa826e1255540093f3d8bae0c425 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Immediate ADI
Absolute  ADA
Relative  ADR

little endian

lda
sta
clr
neg
inc
dec
cpi
adc
sbc
jmp
jsr

nop
clc
sec
not
lsl
rol
lsr
ror
asr
rts
phs
pls


rel
word at abs adr
SP+rel

bran

no interrups, but win/out

0x7fff 255 byte stack (instead of 0x100 to 0x1ff on 6502)

sts/lds store relative to stack
function calls with parameters

XXW codes, acting on 16-bit words

WIN, OUT as shortcurs, not really necessary
relative addressing for jumps would help to write relocatable code by hand