][ PROGRAM UTILITIES ][
Page 23 of 24
PROGRAM SIZE
Standard Starting Memory Location:
PRINT "SIZE= ";(PEEK(175)+PEEK(176)*256)-2049;" BYTES"
Non-Standard Starting Memory Location:
PRINT "SIZE= ";(PEEK(175)+PEEK(176)*256)-(PEEK(103)+PEEK(104)*256);" BYTES"
AMPERSAND VECTOR
Do Specified Command On & <RETURN>
| Memory Location |
CATALOG |
LIST |
RUN |
ZERO VARIABLES |
| POKE 1013 |
76 |
76 |
76 |
76 |
| POKE 1014 |
110 |
165 |
18 |
112 |
| POKE 1015 |
165 |
214 |
217 |
214 |
QUICK SORTING ROUTINE
1000 FOR I = 1 TO N - 1 : REM N = NUMBER OF ITEMS
1010 P = I
1020 FOR J = I + 1 TO N
1030 IF A(J) < A(P) THEN P = J
1040 NEXT J
1050 T = A(I) : A(I) = A(P) : A(P) = T
1060 NEXT I
APPLESOFT PROGRAM MEMORY LOCATIONS
PEEK (103)........Start of Applesoft Program in Memory Low Byte
PEEK (104)........Start of Applesoft Program in Memory High Byte
PEEK (105)........LOMEM Low byte
PEEK (106)........LOMEM High Byte
PEEK (107)........Start of Array Space Low Byte
PEEK (108)........Start of Array Space High Byte
PEEK (109)........End of Array Space Low Byte
PEEK (110)........End of Array Space High Byte
PEEK (111)........Start of String Storage Space Low Byte
PEEK (112)........Start of String Storage Space High Byte
PEEK (115)........HIMEM Low Byte
PEEK (116)........HIMEM High Byte
PEEK (117)........Line Number being executed Low Byte
PEEK (118)........Line Number being executed High Byte
PEEK (119)........Line Number where the program stopped Low Byte
PEEK (120)........Line Number where the program stopped High Byte
PEEK (175)........End of Applesoft Program Low Byte
PEEK (176)........End of Applesoft Program High Byte
SPECIAL KEYBOARD COMMANDS
Open Apple-Control-Delete...................................Flush System
Open Apple-Shift-Control-Reset, release Reset, wait 2 beeps.Simulate Power Off
VERIFY............prints "COPYRIGHT APPLE COMPUTER" in ProDOS.
Proves you're not using an IBM.