home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frostbyte's 1980s DOS Shareware Collection
/
floppyshareware.zip
/
floppyshareware
/
USCX
/
PJ65.ARC
/
PSEUDO.COD
< prev
next >
Wrap
Text File
|
1988-08-18
|
1KB
|
51 lines
Copyright Gordon Arbeitman, 1988. All Rights Reserved.
SOFTWARE PSEUDOCODE
PC SIDE
EQUATES
PrintPort = $0379 /* for printer card */
PrintPort = $03BD /* for mono card */
EOF = $FFFF /* End of file marker .. must be > 128 */
Procedure WaitForStrobe ;
Repeat
Strobe := IN (PrintPort) AND $40 ; /* read bit 6 ->> pin 10 */
until Strobe = 1 ;
Repeat
Strobe := IN (PrintPort) AND $40 ; /* read bit 6 ->> pin
10 */
until Strobe = 0 ;
End ;
Repeat
WaitForStrobe ;
Inbyte := IN (PrintPort) AND $B8 ; /* Get the low nybble */
WaitForStrobe ;
Temp := ShiftLeft (IN (PrintPort) AND $B8), 4 ; /* Get the
high nybble */
InByte := InByte OR Temp ;
Store InByte .. or send it to the printer or whatever ;
Until (InByte = EOF) ;
END
MINICOMPUTER SIDE
Repeat for each OutByte ;
Print OutByte ; /* send the low nybble */
ShiftRight OutByte, 4 ;
Print OutByte ; /* send the high nybble */
Until (NoMoreCharacters) ;
Print EOF ;
END.