Bits and Bytes

See all articles from QZX v6 n2
Author(s): Alex Burr (K5XY)
Publication: QZX
Pub Details: QZX v6 n2 (Volume 6, Issue 2)
Date: January 1988
Pages: 10

109 Here is a method for deletina a block of consecutive lines from a BASIC program on the T/1000, T/S 1500, and ZX 81. Let us suppose that you have a program which ytou want to change by deleteing everything after line 287 up to but not including line 500. The steps are as follows:

(1) Add these five lines

288 LET S = PEEK 16425 + 256 * PEEK 16426-50
289 LET L = E-S
290 POKE S + 1, INT (L/256)
291 POKE S,L - 256 * PEEK (S+ 1)
292 STOP

(2) Add these 2 lines

498 LET E = PEEK 16425 + 256 * PEEK 16426 + [ 10 + number of digits in the line number of the first line that we added (ie. 288)]
499 GOTO 288

(3) Use the direct command GOTO 498 <ENTER>

You will get report code 9/292 on the TV screen)

(4) Use the direct command GOTO 288 <ENTER>

110 A bug in the ROM of the T/S 2068 causes problems when the DELETE (Cap Shift/0) is held down to delete multiple characters in the edit line. Sometimes it outputs the DELETE keyword instead of just deleting characters as it should in the auto-repeat mode. This oddity is especially noticeable when the edit line is long. The cure is to try releasing and pressing the DELETE key at differing frequencies.