MEGA65 / mega65-user-guide

MEGA65 User Guide
73 stars 49 forks source link

Align the monitor documentation for the `J` cmd with the impl. #594

Closed johnwayner closed 4 months ago

johnwayner commented 4 months ago

The actual code for the J command will default to the current PC value if no argument is provided.

dansanderson commented 4 months ago

Should J be doing this? I can't think of a case where I've broken to the monitor and I want to jsr to the break point. Maybe this is useful as "run the rest of this subroutine, then return to the monitor," assuming that's what this does? After that point, I imagine the PC is useless, unless it rolls the PC back to an rts instruction. Should we document this, or make J require an argument?

johnwayner commented 4 months ago

I agree. Closing.