Jump to content

New community dev tool uploaded: x16tial renumber


Recommended Posts

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!


 

  • Like 2
Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

Please review our Terms of Use