home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
test
/
pdp11
/
krter3.mac
< prev
next >
Wrap
Text File
|
1996-10-17
|
4KB
|
139 lines
.title rmser3 overlay 3 of 3 for rms error text
.ident /V04.64/
; /E64/ 10-May-96 John Santos
;
; From K11ER3.MAC
.psect
.macro save list
.if b , <list>
.ift
save <r0,r1,r2,r3,r4,r5>
.iff
.irp x,<list>
mov x,-(sp)
.endr
.endc
.endm save
.macro unsave list
.if b , <list>
.ift
unsave <r5,r4,r3,r2,r1,r0>
.iff
.irp x,<list>
mov (sp)+,x
.endr
.endc
.endm unsave
rmser3::save <r0,r1,r2> ; be nice to our caller
mov 4(r5) ,r1 ; return buffer address
mov r1 ,r2 ; save buffer address
clrb (r1)+ ; make first char .asciz
mov #77 ,r0 ; clear it out first
10$: movb #40 ,(r1)+ ; fill rest of buffer with spaces
sob r0 ,10$ ; next please
mov #dsp ,r0 ; get the index table for errors
20$: tst @r0 ; hit the end yet ?
beq 100$ ; yes, exit with no text
cmp @2(r5) ,@r0 ; type indexentry = record
beq 30$ ; errnum: integer
cmp (r0)+ ,(r0)+ ; errtxt: textaddress
br 20$ ; end ;
30$: mov 2(r0) ,r0 ; get the error text address
mov #77 ,r1 ; maxlength of 77 (8) bytes
40$: movb (r0)+ ,(r2)+ ; copy until 63 characters or a
beq 50$ ; null byte is found
sob r1 ,40$ ; next please
50$: clrb @r2 ; insure .asciz for output text
100$: unsave <r2,r1,r0> ; pop our registers and exit
return
.psect dsp ,ro,d,lcl,rel,con
dsp:
.psect msgtxt ,ro,d,lcl,rel,con
.macro $ioer$ nam,code,txt
.psect msgtxt
$$ = .
.ascii #nam#
.ascii #-# ;/*60*/
.asciz #txt#
.psect dsp
.word code,$$
nam = code
.psect
.endm
$IOER$ ER$NPK,-1184.,<Indexed file-no primary key defined>
$IOER$ ER$OPN,-1200.,<RSTS/E open function failed (STV=SYS err code)>
$IOER$ ER$ORD,-1216.,<XAB'S not in correct order>
$IOER$ ER$ORG,-1232.,<Invalid file organization value>
$IOER$ ER$PLG,-1248.,<Error in file's prologue (Reconstruct file)>
$IOER$ ER$PLV,-1256.,<File prologue version level unsupported>
$IOER$ ER$POS,-1264.,<"POS" field invalid (POS gt MRS, STV=@XAB)>
$IOER$ ER$PRM,-1280.,<Bad file date field retrieved (STV=@XAB)>
$IOER$ ER$PRV,-1296.,<Privilege violation (OS denies access)>
$IOER$ ER$RAB,-1312.,<Not a valid RAB>
$IOER$ ER$RAC,-1328.,<Illegal RAC value>
$IOER$ ER$RAT,-1344.,<Illegal record attributes>
$IOER$ ER$RBF,-1360.,<Invalid record buffer addr>
$IOER$ ER$RER,-1376.,<File read error (STV=SYS err code)>
$IOER$ ER$REX,-1392.,<Record already exists>
$IOER$ ER$RFA,-1408.,<Bad RFA value>
$IOER$ ER$RFM,-1424.,<Invalid record format>
$IOER$ ER$RLK,-1440.,<Target bucket locked by another accessor>
$IOER$ ER$RMV,-1456.,<RSX-F11ACP remove function failed (STV=SYS err code)>
$IOER$ ER$RNF,-1472.,<Record not found (STV=0/ER$IDX)>
$IOER$ ER$RNL,-1488.,<Record not locked>
$IOER$ ER$ROP,-1504.,<Invalid record options>
$IOER$ ER$RPL,-1520.,<Error while reading prologue (STV=SYS err code)>
$IOER$ ER$RRV,-1536.,<Invalid RRV record encountered>
$IOER$ ER$RSA,-1552.,<This error code no longer used>
$IOER$ ER$RSL,-1556.,<No resultant string in resultant string area>
$IOER$ ER$RSS,-1560.,<Invalid resultant string size>
$IOER$ ER$RST,-1564.,<Invalid resultant string address>
$IOER$ ER$RSZ,-1568.,<Bad record size>
$IOER$ ER$RTB,-1584.,<Record too big for user's buffer (STV=Actual rec size)>
$IOER$ ER$RVU,-1592.,<RRV update error on insert>
$IOER$ ER$SEQ,-1600.,<Primary key out of sequence (RAC=RB$SEQ for $PUT)>
$IOER$ ER$SHR,-1616.,<Unrecognizable value in FAB SHR field>
$IOER$ ER$SIZ,-1632.,<"SIZ" field invalid (STV=@XAB)>
$IOER$ ER$STK,-1648.,<This error code no longer used>
$IOER$ ER$SUP,-1656.,<Operation unsupported over network>
$IOER$ ER$SYS,-1664.,<System directive error (STV=SYS err code)>
$IOER$ ER$TRE,-1680.,<Index tree error>
$IOER$ ER$TYP,-1696.,<Error in file type extension>
$IOER$ ER$UBF,-1712.,<Invalid user buffer addr>
$IOER$ ER$UIN,-1720.,<FAL rejected some field (STV tells which)>
$IOER$ ER$USZ,-1728.,<Invalid user buffer size (USZ=0)>
$IOER$ ER$VER,-1744.,<Error in version number>
$IOER$ ER$VOL,-1760.,<Invalid volume number (STV=@XAB)>
$IOER$ ER$WCD,-1768.,<Wild card encountered during FNA/DNA string parse>
$IOER$ ER$WER,-1776.,<File write error (STV=SYS err code)>
$IOER$ ER$WLK,-1784.,<Device is write-locked>
$IOER$ ER$WPL,-1792.,<Error while writing prologue (STV=SYS err code)>
$IOER$ ER$XAB,-1808.,<Not a valid XAB (@XAB=odd, STV=@XAB)>
$IOER$ ER$XTR,-1824.,<Extraneous field detected during parse>
.psect dsp
.word 0,0 ; mark end of text
.end