Jump to content
EMwhite

C64 Line renumber utility?

Recommended Posts

It's quite appropriate that I spend much of my free time messing with 8 bit gear because my memory is failing constantly and limited to 64K.

Can somebody remind me of the options for the Commodore 64, pertaining to a BASIC extension utility to do line renumbering, possibly a search (and or search/replace if such a thing ever existed), and maybe a built in wedge.

I finished (last evening) typing in 700+ lines of BASIC from a program I wrote in 1986 and found several places where I ended up running line numbers into single digits.  Have numerous SYS and even some USR calls, and just plain need help.  Next, I'll try and reverse the 8K of assembly that I wrote, armed only with my documentation and no source, I need to back into what the routine does based on how my BASIC code called it and interpreted the results.

Stretch goal... are there any utilities out there that allow up/down scrolling similar to how a machine language monitor allows you to scroll up/down?  (taller order for interpretive BASIC).

Preferably, looking for something that is either fully relocatable (uses all relative addressing) or is happy to sit in the cartridge memory space.

Really though, renumber is they key thing that I'm after.

  • Like 1

Share this post


Link to post
Share on other sites

When I had a real C64, I used the Final Cartridge 3 to do all of that in BASIC.  It does the up/down scrolling, has renum, auto, find, and a few other useful commands.

It also provided a lot more useful stuff such as dos commands, turbo loader and a freezer + monitor. 

  • Like 1

Share this post


Link to post
Share on other sites
Posted (edited)
13 minutes ago, desertfish said:

When I had a real C64, I used the Final Cartridge 3 to do all of that in BASIC.  It does the up/down scrolling, has renum, auto, find, and a few other useful commands.

It also provided a lot more useful stuff such as dos commands, turbo loader and a freezer + monitor. 

Yeah, the renum in FC3 works pretty well.  Loads fine with EasyFlash or similar too.

It will also do scrolling like you want. (stretch goal 🙂

I don't use this cartridge much, but it IS a huge toolbox so it's useful here.

Here's the manual for it: https://rr.pokefinder.org/rrwiki/images/7/70/Final_Cartridge_III_english_Manual.pdf

 

Edited by mrdoornbos
  • Like 1

Share this post


Link to post
Share on other sites

If this is for the X16 emulator you can also just type it into a modern text editor and run the emulator with "-bas FILE.BAS" and it will input the file at bootup.

Share this post


Link to post
Share on other sites

Thanks all.  Do you recall how much it consumed (8K I suppose?).  Not interested in any circle/line draw nonsense : )  Just wary of being able to fit and test/debug my code while that cart is in mem.  I've seen so many ultimate/final/super/dooper etc. will look for that one specifically.

Re: X16, the funny part is that after losing about 2 hrs of typing in VICE when it crashed after an audio issue, I started in with r37 only to become overwhelmed with fear that the SYS calls would send me on a wild goose chase until I reacquainted myself with my own [damn] code.

BBS's aren't in demand in 2021 but for me it's been quite a ride, typing it in.  1st, being impressed with complex string manipulation that I was able to pull off back then, the way that I implemented a data-bus (retaining x # of messages with recoverability in rotating fashion), preserving state information for system and users in case of power-outage and other matters.  Also that I somehow backed into sharing of data between BASIC variables and 6502 code without any way to research.  But then there is the part where I was completely disorganized having only taken Pascal in high school and no advanced dev classes yet, spelled "aloud" versus "allowed" in text, and had so much trivial nonsense in the BBS's menus (thinking it would actually be tolerable or interesting to callers; it wasn't, they just wanted to head to the D>ownloads section since I ran @ 1200 baud and support 'new' Punter).

Will see how far this gets...

But just for fun, here is a remnant; the first two pages of the 7 page doc that I wrote (for some reason).  The user agreement is pretty funny (written when I was 18 yrs old).

IMG_9869.thumb.jpg.cf2452c2ce0990dcd5ac32f481cf4907.jpg

 

  • Like 1

Share this post


Link to post
Share on other sites

Final cartridge contains 64kb in total I believe. Not too sure. But I don’t think it consumed any ram at all while active due to clever bank switching 

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.


×
×
  • Create New...

Important Information

Please review our Terms of Use