If you could replace any one or two 6502 addressing modes, which two would you replace, what would you replace them with, and why?
I am interested because I'm considering basing a RAMON6 architecture (see RAMON5) on the 6502 instruction set.
For reference, according to the datasheet the addressing modes on the 65C02 are:
- Absolute a
- Absolute Indexed Indirect (a,x)
- Absolute Indexed with X a,x
- Absolute Indexed with Y a,y
- Absolute Indirect (a)
- Accumulator A
- Immediate #
- Implied i
- Program Counter Relative r
- Stack s
- Zero Page zp
- Zero Page Indexed Indirect (zp,x)
- Zero Page Indexed with X zp,x
- Zero Page Indexed with Y zp,y
- Zero Page Indirect (zp)
- Zero Page Indirect Indexed with Y (zp),y
---
I'll start the ball rolling, I personally would quite like a JSR (a,x) instruction, as per another topic of mine.
I don't see a great deal of utility to zp,x and zp,y. I'd probably want to replace them with the missing counterparts (zp,y) and (zp),x. Or maybe a couple of stack relative modes.