Jump to content
Sign in to follow this  
KCMO

Altirra Question - Renumbering Line Numbers

Recommended Posts

Back in the 80's I used a secondary cartridge (the name Monkey Wrench sticks in my mind) that would allow me to automatically renumber my line numbers.

 

GOTO and GOSUB lines would automatically be readjusted to address the new line numbers.

 

Is there a command like that in Altirra? I can't find it....

Share this post


Link to post
Share on other sites

I keep a file version of Turbobasic to load just for this purpose. Just about the only basic that allows renumbering without a separate add-on or cartridge..

  • Like 2

Share this post


Link to post
Share on other sites

Back in the 80's I used a secondary cartridge (the name Monkey Wrench sticks in my mind) that would allow me to automatically renumber my line numbers.

 

GOTO and GOSUB lines would automatically be readjusted to address the new line numbers.

 

Is there a command like that in Altirra? I can't find it....

 

 

Well Altirra emulates the Monkey Wrench so you could go back to using that..

 

www.atarimania.com should have the needed image(s) (if it turned out to be Monkey Wrench II, just remember that one is a right hand slot, Altirra should auto work that out in the little box that comes up and you should see a few options including right hand slot. Or just use attach secondary cart in the file menu..

 

PS..The same site should also have the manuals, just to help any rusty brains :)

 

To save you time, they only have Monkey Wrench II

 

http://www.atarimania.com/utility-atari-400-800-xl-xe-monkey-wrench-ii_17608.html

 

Here's Monkey Wrench I just in case..

Monkey_Wrench.zip

Edited by Mclaneinc

Share this post


Link to post
Share on other sites

here's a .ARC with a BASIC renumber in it.

I just can't unarc it and just post the program.

The .arc is a bunch of Atari utilities.

 

Basic renumberer. X=USR(given,start,incr.). Always LIST prg. 1st.

 

I guess it makes a USR that you enter 'given', the .BAS filename,

'start' say start at 10 and increment, say 10.
UTIL1A

 

shoot, I don't remember. You'll have to figure it out.

UTIL1A.ARC

Edited by russg

Share this post


Link to post
Share on other sites

Back in the 80's I used a secondary cartridge (the name Monkey Wrench sticks in my mind) that would allow me to automatically renumber my line numbers.

 

GOTO and GOSUB lines would automatically be readjusted to address the new line numbers.

 

Is there a command like that in Altirra? I can't find it....

Just remember that Altirra supports some extensions including IF ELSE ENDIF.

Renumber utilities for Atari BASIC aren't likely to work with extensions that use line numbers.

Share this post


Link to post
Share on other sites

Wow, my head is spinning! Thank you for your suggestions. I'll try to digest each one.

Share this post


Link to post
Share on other sites

Wow, my head is spinning! Thank you for your suggestions. I'll try to digest each one.

Here's one more option. The OSS BASIC XL also renumbers Goto/Gosub line #'s references. The pluses to this option are it's 100% backward compatible with Atari BASIC and that no extra utility is required :)

  • Like 1

Share this post


Link to post
Share on other sites

...

I just can't unarc it and just post the program.

The .arc is a bunch of Atari utilities.

...

 

Why can't you unarc it?

Share this post


Link to post
Share on other sites

 

Why can't you unarc it?

Use Altirra, browse to it in Altirra's explorer and then drag the contents out..

Share this post


Link to post
Share on other sites

 

Why can't you unarc it?

I looked briefly for a PC unarc utility and didn't find one. If I unarc it in Altirra, then I have

to extract the file from the .ATR and I don't remember how to do that. Seems like I used 'makeatr'.

Share this post


Link to post
Share on other sites

If I unarc it in Altirra, then I have to extract the file from the .ATR and I don't remember how to do that.

Drag anything you want to extract out of the disk explorer window.

  • Like 1

Share this post


Link to post
Share on other sites

here's a .ARC with a BASIC renumber in it.

I just can't unarc it and just post the program.

The .arc is a bunch of Atari utilities.

 

Basic renumberer. X=USR(given,start,incr.). Always LIST prg. 1st.

 

I guess it makes a USR that you enter 'given', the .BAS filename,

'start' say start at 10 and increment, say 10.

UTIL1A

 

shoot, I don't remember. You'll have to figure it out.

I unarced it. Here's a MYDOS 4.5 .ATR with RENUMBER.BAS from ANALOG #27 (2/85), Angelo Giambra.

I believe I REMed it to help use it.

MYDOS45.zip

Share this post


Link to post
Share on other sites

Drag anything you want to extract out of the disk explorer window.

 

Dats wut I said :)

 

And if mem serves with the latest beta you can now ADD to the explorer although I'm not sure if it supports ARC's (not tested it myself)

 

Just tested, nope, only to valid dos disks, no arc support..

Edited by Mclaneinc

Share this post


Link to post
Share on other sites

I unarced it. Here's a MYDOS 4.5 .ATR with RENUMBER.BAS from ANALOG #27 (2/85), Angelo Giambra.

I believe I REMed it to help use it.

I'm afraid it doesn't work so good in Altirra, at least with the Altirra BASIC.

You're supposed to RUN it and it installs a machine routine and gives you the address to USR to.

I haven't finished playing with it, but so far I can't get it to work in Altirra.

I'm going to use my dump of Atari BASIC and see if it works better than Altirra BASIC.

You're supposed to RUN 'RENUMBER.BAS to install the machine routine. It then gives

you the base address to USR to.... eg. X=USR(1652) after you install it and then

LOAD your BAS to renumber, and LIST it to screen. I think you're supposed to be

able to use START and INCREMENT eg. X=USR(2232,10,10). I'm not sure it works at all.

Edited by russg

Share this post


Link to post
Share on other sites

I use Altirra BASIC for a speed increase (no disrespect to all the other stuff it does better), for ultimate comparability usage of the real BASIC dumps are needed..

 

I'm sure when you use the appropriate version of BASIC needed then it will work in Altirra..

Share this post


Link to post
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.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...