Page 1 of 1

New community dev tool uploaded: x16tial renumber

Posted: Wed Mar 03, 2021 5:04 am
by x16tial



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!






 

New community dev tool uploaded: x16tial renumber

Posted: Wed Mar 03, 2021 5:29 am
by Cyber

Nice work!


22 minutes ago, x16tial said:




(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!)



Bogus...


23 minutes ago, x16tial said:




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



Excellent!

I always vote for in-house solutions. )


New community dev tool uploaded: x16tial renumber

Posted: Wed Mar 03, 2021 6:53 pm
by Starsickle

Fantastic! If the kernel and interpreter team don't make progress, this tool would be a great optimization tool for people like me that have some large and sprawling ambitions.


New community dev tool uploaded: x16tial renumber

Posted: Wed Mar 03, 2021 8:20 pm
by Wertzui

This is going in the right direction!