Trailing-Edge
-
PDP-10 Archives
-
decuslib20-03
-
decus/20-0084/filsnd.mac
There are 4 other files named filsnd.mac in the archive. Click here to see a list.
00100 TITLE FILSND
00200 ENTRY DFHACK
00300
00400
00500 ; TEST PROGRAM FOR INTERPROCESSOR COMMUNICATIONS ROUTINES.
00600 ;THE DEC-10 STORES INFORMATION IN 36-BIT WORDS ON THE DISK. FOR
00700 ;TRANSMISSION, A WORD IS PICKED UP IN 4-BIT BYTES, COMBINED 2 PER
00800 ;8-BIT BYTE AND THEN FORMATTED IN A MESSAGE OF LENGTH 1-70 BYTES.
00900 ;THE REVERSE PROCESS IS PERFORMED ON MESSAGES RECEIVED.
01000 ;EACH MESSAGE (THE RESIDUAL TEXT AFTER STRIPPING AWAY ALL THE
01100 ;MAJOR PROTOCOL BYTES) IS COMPOSED OF TWO PARTS:
01200 ;BYTE 1: LOWER 7 BITS IS THE NUMBER OF BYTES IN THE ACTUAL TEXT AND
01300 ; IS ALWAYS ONE LESS THAN THE MAJOR PROTOCOL MESSAGE COUNT. THE
01400 ; EIGHTH BIT (200 BASE 8 MASK) PRESENT IS USED TO INDICATE AN
01500 ; END OF FILE.
01600 ;BYTES 2-72: TEXT
01700
01800
01900 DEFINE ERRMES(A)
02000 < JRST [TTCALL 3,[ASCIZ/A/]
02100 JSA 16,HNGUPF##
02200 EXIT]>
02300
02400
02500 P=17
02600 L=16 ;THE LINK REGISTER
02700 C=16
02800 M=15
02900 P2=14
03000 P1=13
03100
03200 AC=0
03300 T1=1
03400 T2=2
03500 T3=3
03600
03700 DSK=1
03800
03900 DFHACK: RESET
04000 MOVE P,[IOWD PDLEN,PDLST]
04100 PUSHJ P,GETIOX ;GET TTY NUMBER
04200 PUSHJ P,GETNAM ;GET FILENAME AND EXTENSION
04300 SETZM INTFLG#
04400 IT: TTCALL 3,[ASCIZ/
04500 MANUAL INITIALIZATION OF OTHER SYSTEM? /]
04600 TTCALL 4,0 ;INCHWL
04700 TTCALL 11, ;CLRBFI
04800 CAIE "N"
04900 CAIN "Y"
05000 SKIPA
05100 JRST [TTCALL 3,[ASCIZ/
05200 TYPE Y OR N
05300 /]
05400 JRST IT]
05500 CAIN "Y"
05600 SETOM INTFLG ;YES. INITIATING OTHER SYSTEM
05700 SORR: TTCALL 3,[ASCIZ/SEND OR RECEIVE? /]
05800 TTCALL 4,0
05900 TTCALL 11,
06000 CAIN "R"
06100 JRST RECV
06200 CAIN "S"
06300 JRST SEND
06400 TTCALL 3,[ASCIZ/TYPE S OR R
06500 /]
06600 JRST SORR