Page 1 of 1

x16tial mouse aid

Posted: Wed Feb 10, 2021 4:32 am
by x16tial


The X16's default text screen is HUGE!  480% percent bigger than the C64's! Or is it 380%?  Whatever, it's nice!




This small utility is designed to help navigate this awesome space, primarily when developing in BASIC.




It turns the mouse on and enables:




Left Click:  Locate cursor where clicked.




Right Click: Clear screen and execute LIST.




load with:




LOAD"XMA",8,1   (or use XMA.PRG if you like typing, also LOAD can be abbreviated with L-Shift-O)




SYS 1024




The idea is that it really improves getting around large basic programs.  One hand on mouse, other on the stop key, right click to start listing, stop when need, click where you want to edit, boom. ?




** BUG **:  To prevent a lockup, after loading and activating XMA, just type a quick NEW.

If not, if you try to enter a basic program line (with a line number, not immediate) the emulator will hang.  Or you can just load an existing BASIC file.

This is probably a holdover bug from the C64 (or BASIC V2), where BASIC's memory pointers get set strangely when loading a program that doesn't sit in BASIC's memory area.




With 1.1.0, you can now SYS 1024 after doing a reset to reactivate XMA.



Fixed bugs having to do with the fact that I'm calling PLOT within the IRQ cycle.  So, it now updates "character under cursor" correctly, and will turn off any quote or insert modes that you happen to be in before clicking to a new position.




After loading this program, do a NEW or load a file, to get around the Out Of Memory error issue when loading a file with ,8,1




This build is good for R38, will probably need to be refreshed if memory locations change for character under cursor, and quote and insert mode flags.