home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
test
/
pdp11
/
krter1.mac
< prev
next >
Wrap
Text File
|
1996-10-17
|
4KB
|
130 lines
.title rmser1 1st ovrelay for rms11 error text
.ident /V04.64/
; /E64/ 10-May-96 John Santos
.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
rmser1::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$ABO,-16.,<This error code no longer in use>
$IOER$ ER$ACC,-32.,<F11ACP access error or file improperly closed or created>
$IOER$ ER$ACT,-48.,<Current RMS activity precludes operation>
$IOER$ ER$AID,-64.,<Bad area ID (STV=@XAB)>
$IOER$ ER$ALN,-80.,<Alignment options error (STV=@XAB)>
$IOER$ ER$ALQ,-96.,<Improper allocation quantity>
$IOER$ ER$ANI,-112.,<Not ANSI "D" format>
$IOER$ ER$AOP,-128.,<Allocation options error (STV=@XAB)>
$IOER$ ER$AST,-144.,<Invalid operation at AST level>
$IOER$ ER$ATR,-160.,<Attribute read error (STV=SYS err code)>
$IOER$ ER$ATW,-176.,<Attribute write error (STV=SYS err code)>
$IOER$ ER$BKS,-192.,<Bucket size too large (FAB)>
$IOER$ ER$BKZ,-208.,<Bucket size too large (STV=@XAB)>
$IOER$ ER$BLN,-224.,<This error code no longer in use>
$IOER$ ER$BOF,-232.,<Beginning of file detected ($SPACE)>
$IOER$ ER$BPA,-240.,<Private pool address zero or not word-aligned>
$IOER$ ER$BPS,-256.,<Private pool size not multiple of "4">
$IOER$ ER$BUG,-272.,<Internal RMS error condition detected>
$IOER$ ER$CCR,-288.,<Can't connect RAB>
$IOER$ ER$CHG,-304.,<$UPDATE-Key change without having attribute of XB$CHG set>
$IOER$ ER$CHK,-320.,<Bucket header corrupted>
$IOER$ ER$CLS,-336.,<RSTS/E close function failed (STV=SYS err code)>
$IOER$ ER$COD,-352.,<Invalid or unsupported "COD" field (STV=@XAB)>
$IOER$ ER$CPB,-360.,<Parameter block has invalid argument list>
$IOER$ ER$CRE,-368.,<Could not create file (STV=SYS err code)>
$IOER$ ER$CUR,-384.,<No current record (Operation not preceded by GET/FIND)>
$IOER$ ER$DAC,-400.,<F11ACP deaccess error during "CLOSE" (STV=SYS err code)>
$IOER$ ER$DAN,-416.,<Data area number invalid (STV=@XAB)>
$IOER$ ER$DEL,-432.,<RFA-Accessed record was deleted>
$IOER$ ER$DEV,-448.,<Bad device, or inappropriate device type>
$IOER$ ER$DFW,-456.,<Error occurred on deferred write (STV=SYS err code)>
$IOER$ ER$DIR,-464.,<Error in directory name>
$IOER$ ER$DME,-480.,<Dynamic memory exhausted>
$IOER$ ER$DNA,-488.,<Zero DNA with non-zero DNS>
$IOER$ ER$DNF,-496.,<Directory not found>
$IOER$ ER$DNR,-512.,<Device not ready>
$IOER$ ER$DPE,-520.,<Device positioning error (STV=SYS err code)>
$IOER$ ER$DTP,-528.,<"DTP" field invalid (STV=@XAB)>
$IOER$ ER$DUP,-544.,<Duplicate key detected, XB$DUP attribute not set>
$IOER$ ER$ENT,-560.,<RSX-F11ACP ENTER function failed (STV=SYS err code)>
$IOER$ ER$ENV,-576.,<Operation not selected in ORG$ or TKB>
$IOER$ ER$EOF,-592.,<End-of-file>
$IOER$ ER$ESA,-600.,<Expanded string address is zero>
$IOER$ ER$ESL,-604.,<No expanded string in expanded string area>
$IOER$ ER$ESS,-608.,<Expanded string area too short>
$IOER$ ER$EXP,-616.,<File expiration date not yet reached>
.psect dsp
.word 0,0 ; mark end of text
.end