rjhelms / compe6502

Homebrew 6502 system
2 stars 0 forks source link

BASIC: add support for line editing #13

Open rjhelms opened 2 years ago

rjhelms commented 2 years ago

Not sure if I can just hack in from the support that is there, or have to implement my own. What does CBM BASIC do?

At minimum, need to have backspace working or I'll go insane.

rjhelms commented 2 years ago

Looking at Applesoft - it replaces INLIN/GETLIN logic with its own monitor routine (GETLN at FD6A: https://6502disassembly.com/a2-rom/OrigF8ROM.html#SymGETLN) which handles building the whole input buffer and passes it back to BASIC complete.

Alternately, could consider the line editing functions in inline.s, which seem to be: _ - backspace (look at MICROTAN hook for this one!) @ - cancel line BEL - ???