summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/MINIMAL.650249
1 files changed, 49 insertions, 0 deletions
diff --git a/doc/MINIMAL.6502 b/doc/MINIMAL.6502
new file mode 100644
index 0000000..ae2044d
--- /dev/null
+++ b/doc/MINIMAL.6502
@@ -0,0 +1,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