New community dev tool uploaded: x16tial renumber

All aspects of programming on the Commander X16.
Post Reply
x16tial
Posts: 177
Joined: Sun Feb 07, 2021 8:23 pm

New community dev tool uploaded: x16tial renumber

Post 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!






 
User avatar
Cyber
Posts: 482
Joined: Mon Apr 27, 2020 7:36 am

New community dev tool uploaded: x16tial renumber

Post 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. )

Starsickle
Posts: 81
Joined: Mon Aug 31, 2020 12:00 am

New community dev tool uploaded: x16tial renumber

Post 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.

Wertzui
Posts: 32
Joined: Mon Mar 01, 2021 7:06 pm

New community dev tool uploaded: x16tial renumber

Post by Wertzui »


This is going in the right direction!

Post Reply