New community dev tool uploaded: x16tial renumber
Posted: Wed Mar 03, 2021 5:04 am
x16tial renumber
View File
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!
Submitter
Submitted
03/02/21
Category