Copying Code

Anything Sinclair ZX Basic related; history, development, tips - differences between BASIC on the ZX80 and ZX81
Post Reply
MrVertigo
Posts: 105
Joined: Fri May 27, 2022 9:06 pm

Copying Code

Post by MrVertigo »

When you want a few lines of code that are essentially the same as each other with minor changes, is the best way just to bring down a line to edit on the command line, jumping left and right with the cursor to change the line number and make the minor changes, or is there a better way?
User avatar
XavSnap
Posts: 1940
Joined: Sat May 10, 2008 4:23 pm
Location: 'Zx81 France' Fb group.

Re: Copying Code

Post by XavSnap »

Hi,
Right, it's the only way to copy a line:
LIST line number,(Shift+1), cursors <- -> and change the line number... then New/line.
Xavier ...on the Facebook groupe : "Zx81 France"(fr)
User avatar
mrtinb
Posts: 1906
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: Copying Code

Post by mrtinb »

You could also use the utility ZXTK, where you can copy lines of your code.

http://www.zx81stuff.org.uk/zx81/tape/ZXTK(Alt)
Martin
https://zx.rtin.be
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
User avatar
XavSnap
Posts: 1940
Joined: Sat May 10, 2008 4:23 pm
Location: 'Zx81 France' Fb group.

Re: Copying Code

Post by XavSnap »

Yes Martin, MERGE the same code with ZXTK... and RENUM...
Xavier ...on the Facebook groupe : "Zx81 France"(fr)
MrVertigo
Posts: 105
Joined: Fri May 27, 2022 9:06 pm

Re: Copying Code

Post by MrVertigo »

Thank you!
Post Reply