Posts: 33
Threads: 1
Joined: Nov 2006
Quote:
I hope you don't mind asking for a hint or link to a Renumber command for the Sharp PC-1500. I looked through all the few links I got with Google but couldn't find one except one commercial offer. Isn't there any Renumber routine out there ? I wonder. Thank you very much in advance.
I believe the Radio Shack TRS-80 PC-2 was an OEM version of the Sharp PC-1500 - and that they used the same BASIC. There's a nice resource page for the Pc-1500/PC-2 here, including a link to the PC-2 manual, which you probably already found: http://www.pc1500.com/
If the BASIC was indeed the same, then there isn't a built-in renumber command. My copy of the PC-1500 manual is at home -- I'll check tonight for you.
I loved my PC-2. I still think the tiny 4-pen printer/plotter was pretty darned cool. It's fun to dig it out and show it off every few years. Last time I had to build a new battery pack for the printer...
Posts: 614
Threads: 66
Joined: Jul 2006
Hi Karl,
As Dave has already pointed out, there's a great PC-1500 web page.
One way of doing it, would be to write it to the cassette port, save it as wave file on PC and then convert to text file where you could easily use a small program to renumber the source listing. You could also use the PC emulator to test the program out before reversing the Text to Wav and then using the cassette in to get it back into the PC-1500.
A little klutzy, but do-able. I've used this method to dump a listing of a large program from a ROM cartridge to the PC and then print the listing for further study.
Good Luck,
Bill
Posts: 53
Threads: 1
Joined: Sep 2005
Hi Karl
There is a RENUMBER in one of the Toolkits there were sold commercially.
It would be possible to write one in Basic, but you need to know how the line numbers are set up.
The number of a line is a 2-Byte binary number in memory, you need to PEEK it, change it, and POKE it back into the memory. A line of BASIC starts with the line number (2 Bytes), 1 Byte for the length of the line, then the BASIC-Tokens and commands, and finally as the end of the line the byte 0Dh (13 dec).
Depending on your RAM modules, the area for BASIC programs starts at 40C5, 38C5, 20C5 or 00C5 (all hex).
Best regards
Peter