10 ON ERROR GOTO 330
20 REM SHELL "my.exe"
50 DIM f(1000)
60 SCREEN 7
70 SHELL "pcxview.exe setka.pcx /g /k /q"
80 GET (164, 83)-(177, 93), f: X5 = 164: Y5 = 83: REM  PUT (164,83),F,XOR
90 D$ = INKEY$: IF D$ = "" THEN 90
91 XX = 0: YY = 0
100 IF D$ = "8" OR D$ = CHR$(0) + CHR$(72) THEN IF Y5 > 6 THEN XX = 0: YY = -5 ELSE XX = 0: YY = 0
110 IF D$ = CHR$(0) + CHR$(80) OR D$ = "2" THEN IF Y5 < 175 THEN XX = 0: YY = 5 ELSE XX = 0: YY = 0
120 IF D$ = CHR$(0) + CHR$(75) OR D$ = "4" THEN IF X5 > 6 THEN XX = -5: YY = 0 ELSE XX = 0: YY = 0
130 IF D$ = CHR$(0) + CHR$(77) OR D$ = "6" THEN IF X5 < 290 THEN XX = 5: YY = 0 ELSE XX = 0: YY = 0
140 IF D$ = CHR$(13) THEN SCREEN 0: WIDTH 40: GOTO 160
150 PUT (X5, Y5), f, XOR: X5 = X5 + XX: Y5 = Y5 + YY: PUT (X5, Y5), f, XOR: GOTO 90
160 IF X5 <= 77 AND Y5 <= 96 THEN GOSUB 200: RUN "M1"
165 IF X5 >= 77 AND X5 <= 155 AND Y5 <= 96 THEN GOSUB 200: RUN "m2"
166 IF X5 >= 155 AND X5 <= 232 AND Y5 <= 96 THEN GOSUB 200: RUN "m3"
170 IF X5 >= 232 AND Y5 >= 96 THEN GOSUB 200: SCREEN 1: DEF SEG = &HB800: SHELL "a.exe spasibo.fli": GOTO 330
180 IF X5 >= 155 AND X5 <= 232 AND Y5 >= 96 THEN GOSUB 200: RUN "idgaz.bas"
181 IF X5 <= 77 AND Y5 >= 96 THEN GOSUB 200: RUN "m5"
182 IF X5 >= 77 AND X5 <= 155 AND Y5 >= 96 THEN GOSUB 200: RUN "xxxxx"
185 IF X5 >= 232 AND Y5 <= 96 THEN GOSUB 200: RUN "m4.bas"
199 GOTO 160
200 RETURN
320 i$ = INKEY$: IF i$ = "" THEN 320
330 RUN "setk"

