Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
4
Task/Copy-a-string/Applesoft-BASIC/copy-a-string-1.basic
Normal file
4
Task/Copy-a-string/Applesoft-BASIC/copy-a-string-1.basic
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
100 DEF FN P(A) = PEEK (A) + PEEK(A + 1) * 256 : FOR I = FN P(105) TO FN P(107) - 1 STEP 7 : ON PEEK(I + 1) < 128 OR PEEK(I) > 127 GOTO 130 : ON LEFT$(P$, 1) <> CHR$(PEEK(I)) GOTO 130
|
||||
110 IF LEN(P$) > 1 THEN ON PEEK(I + 1) = 128 GOTO 130 : IF MID$(P$, 2, 1) <> CHR$(PEEK(I + 1) - 128) GOTO 130
|
||||
120 POKE I + 4, P / 256 : POKE I + 3, P - PEEK(I + 4) * 256 : RETURN
|
||||
130 NEXT I : STOP
|
||||
Loading…
Add table
Add a link
Reference in a new issue