From b239edfbe11fda4c5a3ca388dd5eeb350b7b0258 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 30 Jan 2021 19:27:18 +0100 Subject: improved debug mode (d) for toggling --- doc/MINIMAL.6502 | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 doc/MINIMAL.6502 (limited to 'doc/MINIMAL.6502') 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 -- cgit v1.2.3-54-g00ecf