x16tial renumber

These files might not work on the most current version of the Commander X16, or these may be held over from the previous forum. To find previous versions of the emulator, so you can test old programs, please visit Our GitHub Page
Post Reply
x16tial
Posts: 177
Joined: Sun Feb 07, 2021 8:23 pm

x16tial renumber

Post by x16tial »


Version 0.1.1: renumber your BASIC programs! 

BUT, for now, GOTOs, GOSUBs, THENs, and ONs will have to be manually fixed with the aid of the cross reference that prints when you execute the renumber.

(Copy the cross reference list from the shell window and paste it somewhere handy.  Make sure you have -echo on when you start your emulator!)




To activate:

LOAD "XREN.PRG",8,1

SYS 1300

NEW (this resets BASIC's memory pointers)

and load your basic program, then type:

REN <starting line number>, <increment>

The old line number, an arrow, and the new line number will then print, giving you a cross reference for fixing gotos and such.

Currently, <increment> needs to be 1-255




HIGHLY RECOMMENDED: Download and activate XMA (x16tial mouse aid) from the Dev Tools area as well, which is very handy for getting around your program to make those changes.




FUTURE VERSION(s) will incorporate making the changes to the references, but for now, this should save some work in renumbering your program(s).




This is good for R38, future revisions of ROMs will probably break this.  But I will try to supply updates as quickly as possible.




Note: It *is* possible to get illegal line numbers (> 63999).  What you do after this, you do so at your own risk!



renumber, not rename, dangit ?


Attachments
x16tial renumber
x16tial renumber
xren2.png (15.67 KiB) Viewed 357 times
x16tial renumber
x16tial renumber
xren.png (12.89 KiB) Viewed 357 times
xren.prg
x16tial renumber
(247 Bytes) Downloaded 83 times
Post Reply