MEGA65 / mega65-rom-public

MEGA65 ROM public issue reporting
4 stars 0 forks source link

MONITOR: Error after assemble command #98

Closed johnwayner closed 10 months ago

johnwayner commented 10 months ago

Test Environment (required)

Describe the bug When assembling, the monitor pre-prints and, more importantly, pre-loads its input buffer with "A {addr} " so that it's easy to continue writing more assembly at the next address. However, if the cursor is moved to do anything else, that next command will have "A {addr} " appended to it, usually causing it to throw an error -- indicated by a "?" being appended to the line.

To Reproduce Steps to reproduce the behavior:

  1. Enter monitor
  2. "A 1600 NOP"
  3. "A 1601 " will be printed
  4. Move the cursor up one and hit return to re-assemble the 1600 NOP.
  5. You'll see a "?" at the end of the 1600 line.

Expected behavior Ideally the monitor would detect that the follow-on assemble command had been abandoned and only the command on the line where return was pressed would be executed.