home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Glitch Apple Disk Collection
/
2014.glitch.apple.collection.zip
/
indexed
/
LOC1.DSK
/
MAINMENU.txt
< prev
next >
Wrap
Text File
|
2014-09-09
|
3KB
|
89 lines
FORGET DIE
FORGET PZ
FORGET T1
VARIABLE T1
: KEYIN CLRKEY
BEGIN RND DROP GETKEY DUP 128 <
WHILE DROP
REPEAT CLRKEY 1000 DELAY DUP PUTC ;
: CVRTNUM 176 - ;
: END? PEEK DUP 141 = SWAP ZR = OR ;
VARIABLE DR1FLG
: LENGTH
DUP
BEGIN
DUP END? 0 =
WHILE
1 +
REPEAT
SWAP - ;
: RKEY BEGIN KEYIN 141 = UNTIL ;
: RDYMES PRINT " PRESS "RETURN" WHEN READY " RKEY ;
: RRDY CR RDYMES ;
: NXTP PAD LENGTH PAD + ;
: DSB0A ZR NXTP T1 OVER POKE ADD1 POKE N1 24575 POKE CR 132 PUTC PAD WRITELN CR ZR 24575 POKE ;
: DSB0 HOME BEGIN PRINT " DRIVE (1 0R 2) = " KEYIN CVRTNUM N1 N2 CNM
UNTIL DUP N1 = IF N1 -> DR1FLG THEN 176 + -> T1 CR PRINT " INSERT DISK, " CR RDYMES ;
VARIABLE FILETYPE
: PRWORK PRINT " WORK : " ;
: PRMAP PRINT " MAP : " ;
: PRGAME PRINT " GAME : " ;
: DSB1 DSB0
BEGIN NXTP PUSH CR CLRKEY PRINT " NAME OF " FILETYPE CASE: PRWORK PRMAP PRGAME THEN NXTP READLN NXTP PULL > UNTIL ;
: DSB2 DSB0A T1 177 =
IF PRINT " INSERT PROGRAM DISK, " RRDY
THEN ;
: CAT PAD ASSIGN " CATALOG,D " DSB0 DSB0A RRDY ;
: SIDE CR 132 PUTC PRINT " BLOADSIDE,D1 " CR 45056 PEEK ;
: INSERTMS HOME VTAB 8 HTAB PRINT " PLEASE INSERT GAME DISK " CR 11 HTAB PRINT " SIDE " . PRINT " IN DRIVE 1. " CR CR 7 HTAB RDYMES ;
: RESTG BWIN DSPEX HOME N2 -> FILETYPE 10 30 8 N16 WINDOW
PAD ASSIGN " BLOAD " DSB1 NXTP ASSIGN " .G,A2816,D " HOME DSB0A CLOSE
5470 23936 640 MOVMEM REF
BEGIN 21 VTAB 9 HTAB CLEOP PRINT " THIS GAME? (Y/N) " KEYIN DUP 217 = SWAP 206 = OVER OR NOT WHILE DROP REPEAT
IF ZR 22098 POKE ZR 22099 POKE ( BLACK MASKS!!
N1 24560 POKE ( INDICATES RESTART
N1 -> F DROP N1
ELSE BWIN DSPEX HOME
THEN ;
: DEMO DROP N1 N3 -> F ;
: MAPC DROP N1 N2 -> F ;
: MSEL PRINT " SELECT OPTION: " KEYIN -> F ;
: NEWG DROP N1 ZR -> F ;
: LDG 9 VTAB N16 HTAB PRINT " LOADING " CR 15 HTAB ;
: RCC N1 -> DQQ 10 VTAB 12 HTAB PRINT " STARTING DEMO " READ " CC,D1 " ;
: RK LDG PRINT " GAME SETUP " READ " K,D1 " ;
: RLL READ " LL,D1 " ;
: RUTL BEGIN N2 9 INSERTMS HOME SIDE N2 = UNTIL
LDG PRINT " MAP MAKER " READ " MU1 " ;
: C20 20 VTAB CR CLEOP ;
: MM BWIN DSPEX ZR 24418 POKE
HOME ZR -> DR1FLG DQQ
IF N3 -> F
ELSE 11 HTAB PRINT " LORDS OF CONQUEST " 5 VTAB 13 HTAB PRINT " GAME SELECTION "
22 VTAB 11 HTAB PRINT " IIE AND IIC OWNERS " CR N4 HTAB PRINT " MAKE SURE CAPS LOCK KEY IS DOWN. "
BEGIN 13 25 8 N16 WINDOW HOME
PRINT " 1) NEW GAME " CR
PRINT " 2) SAVED GAME " CR
PRINT " 3) MAP MAKER " CR
PRINT " 4) DEMO " CR
CR MSEL ZR
F 177 = IF NEWG THEN
F 178 = IF RESTG THEN
F 179 = IF MAPC THEN
F 180 = IF DEMO THEN
UNTIL
F N1 <> IF BWIN THEN DSPEX HOME DR1FLG
IF C20 PRINT " CHECK GAME DISK IS IN DRIVE 1, " CR 7 HTAB RDYMES C20 THEN
THEN
F CASE: RK RLL RUTL RCC THEN ;
: TW 132 PUTC PRINT " BLOADTREVOR,A$D100 " CR
HEX 20 DEB0 POKE 00 DEB1 POKE D1 DEB2 POKE 4C DEB3 POKE A8 DEB4 POKE DE DEB5 POKE DECIMAL MM ;
CLOSE RUN
0 POKE 00 DEB1 POKE D1 DEB2 POKE 4C DEB3 POKE A8 DEB4 POKE DE DEB5 POKE DECIMAL MM ;
CLOSE RUN
RUN