home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Carsten's PPE Collection
/
Carstens_PPE_Collection_2007.zip
/
T
/
THTTP2B3.ZIP
/
UPCR.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1994-07-26
|
1KB
|
142 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
;------------------------------------------------------------------------------
Integer INTEGER001
Integer INTEGER002
Integer INTEGER003
Integer INTEGER004
Integer INTEGER005
Integer INTEGER006
String STRING001
String STRING002
String STRING003
;------------------------------------------------------------------------------
CdChkOff
INTEGER004 = GetY()
Color 0
AnsiPos 11, INTEGER004
Print "@X00@OPTEXT@"
STRING001 = ScrText(11, INTEGER004, 12, 0)
STRING001 = LTrim(STRING001, " ")
INTEGER005 = CurConf()
If (INTEGER005 == 0) Then
INTEGER006 = 243
Else
INTEGER006 = INTEGER005 * 548 + 243
Endif
STRING003 = ReadLine(PCBDat(), 31)
FOpen 1, STRING003 + ".@@@", 0, 0
FSeek 1, INTEGER006, 0
FRead 1, STRING002, 25
FClose 1
STRING001 = STRING002 + STRING001
If (Exist(STRING001)) Then
FCreate 1, PPEPath() + PPEName() + "run." + String(PcbNode()), 1, 0
FClose 1
INTEGER002 = FileInf(STRING001, 4)
If (Exist(PPEPath() + PPEName() + String(PcbNode()) + ".tmp")) Then
FOpen 3, PPEPath() + PPEName() + String(PcbNode()) + ".tmp", 0, 0
FGet 3, STRING002
Tokenize STRING002
GetToken INTEGER001
GetToken INTEGER003
INTEGER001 = INTEGER001 + INTEGER002
INTEGER003 = INTEGER003 + 1
FClose 3
FCreate 3, PPEPath() + PPEName() + String(PcbNode()) + ".tmp", 1, 0
FPutLn 3, String(INTEGER001) + " " + String(INTEGER003)
FClose 3
Goto LABEL001
Endif
FCreate 3, PPEPath() + PPEName() + String(PcbNode()) + ".tmp", 1, 0
FPutLn 3, String(INTEGER002) + " " + "1"
FClose 3
Endif
:LABEL001
Stop
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 1 Color
; 5 Goto
; 11 Let
; 1 Print
; 3 If
; 3 FCreate
; 2 FOpen
; 5 FClose
; 1 FGet
; 2 FPutLn
; 1 CdChkOff
; 1 Tokenize
; 2 GetToken
; 1 Stop
; 1 AnsiPos
; 1 FSeek
; 1 FRead
;
;
; ■ Functions used :
;
; 1 *
; 24 +
; 1 ==
; 3 !
; 1 LTrim()
; 8 String()
; 1 CurConf()
; 1 PCBDat()
; 5 PPEPath()
; 5 PcbNode()
; 1 ReadLine()
; 2 Exist()
; 1 GetY()
; 1 FileInf()
; 5 PPEName()
; 1 ScrText()
;
;------------------------------------------------------------------------------
;
; Analysis flags : d
;
; d - Access PCBOARD.DAT ■ 2
; Program gets the full pathname to PCBOARD.DAT, this may be usefull
; for many PPE so they can find various informations on the system
; (system paths, max number of lines in messages, ...) but it may also
; be a way to gather vital informations.
; ■ Search for : PCBDAT()
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 0 For/Next
; 0 While/EndWhile
; 3 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------