home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
PCBOARD
/
RP_OL10B.ZIP
/
ONELINER.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1994-03-20
|
3KB
|
233 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 2.OO (plain) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Boolean BOOLEAN001
Integer INTEGER001
Integer INTEGER002
Integer INTEGER003
Integer INTEGER004
Integer INTEGER005
Integer INTEGER006
String TSTRING001(2)
String TSTRING002(1)
String STRING003
String TSTRING004(50)
String STRING005
String STRING006
String STRING007
String STRING008
String STRING009
String STRING010
;------------------------------------------------------------------------------
INTEGER002 = ReadLine(PPEPath() + "ONELINER.CNF", 1)
STRING003 = ReadLine(PPEPath() + "ONELINER.CNF", 2)
STRING008 = ReadLine(PPEPath() + "ONELINER.CNF", 3)
STRING006 = ReadLine(PPEPath() + "ONELINER.CNF", 4)
STRING007 = ReadLine(PPEPath() + "ONELINER.CNF", 5)
STRING010 = Upper(ReadLine(PPEPath() + "ONELINER.CNF", 6))
TSTRING002(1) = PPEPath() + "ONELINER.DAT"
TSTRING001(1) = PPEPath() + "ONELINER.TOP"
TSTRING001(2) = PPEPath() + "ONELINER.BOT"
INTEGER004 = 1
If (Exist(TSTRING001(1))) DispFile TSTRING001(1) , 1
Gosub LABEL002
For INTEGER003 = 1 To INTEGER001
Print STRING008
PrintLn TSTRING004(INTEGER003)
Next
If (Exist(TSTRING001(2))) DispFile TSTRING001(2) , 1
INTEGER006 = GetX()
INTEGER005 = GetY()
Print STRING003
Print "@X07 "
Print STRING006 + "YES"
Print "@X07 "
Print STRING007 + "NO"
Gosub LABEL003
:LABEL001
If (STRING010 == "NONE") Then
End
Else
Call STRING010
Endif
End
:LABEL002
If (Exist(TSTRING002(1))) Then
FOpen 1, TSTRING002(1), 0, 0
FGet 1, INTEGER001
For INTEGER003 = 1 To INTEGER002
FGet 1, TSTRING004(INTEGER003)
Next
FClose 1
Delete TSTRING002(1)
Else
FCreate 1, TSTRING002(1), 1, 0
FPutLn 1, "1"
FPut 1, "@X08o@X07Ne@X0FLiN@X08eR@X08Z @X01v@X091.o @X03ß @X08/ C@X07oD@X0FeD BY: WHiTE Ti@X07GE@X08R"
FClose 1
Endif
Return
:LABEL003
STRING005 = ""
While (BOOLEAN001 == 0) Do
STRING005 = Upper(Inkey())
If ((STRING005 == "LEFT") || (STRING005 == "Y")) Then
STRING005 = ""
INTEGER004 = 1
AnsiPos INTEGER006, INTEGER005
Print "@X07"
AnsiPos INTEGER006, INTEGER005
ClrEol
Print STRING003
Print "@X07 "
Print STRING006 + "YES"
Print "@X07 "
Print STRING007 + "NO"
Continue
Endif
If ((STRING005 == "RIGHT") || (STRING005 == "N")) Then
STRING005 = ""
INTEGER004 = 2
AnsiPos INTEGER006, INTEGER005
Print "@X07"
AnsiPos INTEGER006, INTEGER005
ClrEol
Print STRING003
Print "@X07 "
Print STRING007 + "YES"
Print "@X07 "
Print STRING006 + "NO"
Continue
Endif
If (STRING005 == Chr(13)) Then
If (INTEGER004 == 1) Then
STRING005 = ""
Gosub LABEL004
Gosub LABEL005
BOOLEAN001 = 1
Continue
Endif
STRING005 = ""
BOOLEAN001 = 1
Gosub LABEL005
Goto LABEL001
Endif
EndWhile
Return
:LABEL004
Print "@X07"
Cls
PrintLn
PrintLn "@X0Fo@X07NeLiNeRZ @X01v@X091.o @X0Dß@X05eTa @X08/ @X0FC@X07oDeD BY: @X08W@X07Hi@X0FTE Ti@X07GE@X08R"
PrintLn "@X07"
PrintLn "@X0Fa@X07DD @X0Fa @X0Fo@X07NeLiNeR @X08/ @X0FP@x07uNCH @X0Fi@X07T @X0Fi@X07N @X0FN@X07oW@X08!"
PrintLn "@X07"
Print "@X08─■ "
InputStr "@X07_", STRING009, 7, 160, Mask_Ascii(), 4096
If ((STRING009 == Chr(13)) || (STRING009 == " ")) Then
Return
Endif
INTEGER001 = INTEGER001 + 1
If (INTEGER001 > INTEGER002) INTEGER001 = INTEGER002
TSTRING004(INTEGER001) = STRING009
Return
:LABEL005
FCreate 1, TSTRING002(1), 1, 0
FPutLn 1, INTEGER001
For INTEGER003 = 1 To INTEGER001 - 1
FPutLn 1, TSTRING004(INTEGER003)
Next
FPut 1, TSTRING004(INTEGER001)
FClose 1
Return
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 2 End
; 1 Cls
; 2 ClrEol
; 21 Goto
; 31 Let
; 20 Print
; 6 PrintLn
; 14 If
; 2 DispFile
; 2 FCreate
; 1 FOpen
; 3 FClose
; 2 FGet
; 2 FPut
; 3 FPutLn
; 1 Delete
; 1 InputStr
; 5 Gosub
; 5 Return
; 1 Call
; 4 AnsiPos
;
;
; ■ Functions used :
;
; 19 +
; 2 -
; 10 ==
; 3 <
; 3 <=
; 1 >
; 6 >=
; 11 !
; 6 &&
; 6 ||
; 2 Upper()
; 2 Chr()
; 1 Inkey()
; 1 Mask_Ascii()
; 9 PPEPath()
; 6 ReadLine()
; 3 Exist()
; 1 GetX()
; 1 GetY()
;
;------------------------------------------------------------------------------
;
; Analysis flags : C
;
; C - Call child PPE ■ 3
; This is usually normal, but may be a tricky way to launch some
; sysop-only commands.
; ■ Search for : CALL
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 3 For/Next
; 1 While/EndWhile
; 7 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------