OT Renumber fpr Sharp PC-1500



#8

Hi All,

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.

Kind regards

Karl


#9

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

#10

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

#11

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


#12

Of course the renumbering task has to correctly renumber GOTO and GOSUB statements too. So the utility has to scan each line for the GOTO and GOSUB tokens and alter their parameters.


#13

Namir

You know everything! I indeed forgot about that bit.

Btw., if the number in the GOTO, GOSUB or THEN (if followed by a line number) statement becomes longer, you will have to adjust the line length byte as well.

Thanks

Peter

#14

Thanks to all of you who responded and your hints about programming a renumber function (I already guessed that I have to do it myself).

Kind regards

Karl


Possibly Related Threads...
Thread Author Replies Views Last Post
  Sharp PC-1350 user manual (english) Basil 8 586 07-09-2013, 04:50 AM
Last Post: Marcus von Cube, Germany
  New screen on pictures of new Sharp EL-9950 Mic 4 438 06-10-2013, 10:40 AM
Last Post: Mic
  New graphing calculator by Sharp ! Mic 1 243 06-07-2013, 09:56 PM
Last Post: Eddie W. Shore
  Sharp PC-E500 question Basil 1 234 04-30-2013, 03:54 AM
Last Post: Chris Smith
  Almost totally OT: Looking for Sharp EL-9900G ROM upgrade Marcus von Cube, Germany 3 318 03-03-2013, 09:35 AM
Last Post: Marcus von Cube, Germany
  OT: A question about the Sharp EL-8131 Marcel Samek 11 628 02-13-2013, 03:10 PM
Last Post: Massimo Gnerucci (Italy)
  OT: Forth on Sharp PC-1500 Bill (Smithville, NJ) 3 318 12-10-2012, 12:53 PM
Last Post: Bill (Smithville, NJ)
  Sharp PC-1500 question (F2 button disabled?) LHH 7 482 12-03-2012, 08:34 PM
Last Post: LHH
  OT--Palm & Sharp Wizard need tech care Matt Agajanian 9 650 08-28-2012, 11:54 PM
Last Post: Matt Agajanian
  Sharp PC-1211 update Gene Wright 3 314 05-25-2012, 11:56 AM
Last Post: Peter Geiser

Forum Jump: