Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 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
|
||||
2
Task/Copy-a-string/Applesoft-BASIC/copy-a-string-2.basic
Normal file
2
Task/Copy-a-string/Applesoft-BASIC/copy-a-string-2.basic
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
S$ = "HELLO" : REM S$ IS THE ORIGINAL STRING
|
||||
C$ = S$ : REM C$ IS THE COPY
|
||||
3
Task/Copy-a-string/Applesoft-BASIC/copy-a-string-3.basic
Normal file
3
Task/Copy-a-string/Applesoft-BASIC/copy-a-string-3.basic
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
P$ = "S" : P = 53637 : GOSUB 100"POINT STRING S AT SOMETHING ELSE
|
||||
?S$
|
||||
?C$
|
||||
Loading…
Add table
Add a link
Reference in a new issue