Trailing-Edge
-
PDP-10 Archives
-
k20v7d
-
unsupported/tm03.mac
There are no other files named tm03.mac in the archive.
UNIVERSAL DEFS -- TM03 specific macro definitions for RDREG
SUBTTL N. B. Mahoney/NBM
;This file contains the TM03 specific macro definitions for RDREG
;to interpret the TMO3 massbus registers. The format of the macros
;is decribed when each macro is defined.
.DIRECTIVE .XTABM,FLBLST,.NOBIN
SALL
;Copyright (C) 1980,1981,1982,1983 by
;Digital Equipment Corporation, Maynard, Mass.
;
;
;This software is furnished under a license and may be used and copied
;only in accordance with the terms of such license and with the
;inclusion of the above copyright notice. This software or any other
;copies thereof may not be provided or otherwise made available to any
;other person. No title to and ownership of the software is hereby
;transferred.
;
;The information in this software is subject to change without notice
;and should not be construed as a commitment by Digital Equipment
;Corporation.
;
;Digital assumes no responsibility for the use or reliability of its
;software on equipment which is not supplied by Digital.
TM3VER==1 ;Major version
TM3MIN==0 ;Minor version
TM3EDT==0 ;Edit number
TM3WHO==0 ;Who edited
SUBTTL Assembly parameters and drive type register definitions
;The following definition controls whether RDREG will ask for the
;DATAO/DATAI drive select field in addition to the RH20 device
;code. For those devices that are always in massbus slot 0 (the
;DX20 for example), set FTDSEL to a 0 and RDREG will always use
;a drive select field of zero. For those devices that do require
;a drive select code, set FTDSEL to -1 and RDREG will ask for and
;use the drive select value specified by the user.
FTDSEL==-1 ;Need drive select for TM03's
;The following macro defines the drive type register values for those
;devices that we can interpret. The arguments to the DTRTYP macro
;are as follows:
;
; 1 - Octal value of drive type (right 9 bits)
; 2 - Corresponding mnemonic for this drive type (this mnemonic
; is used in the second level macro definitions below)
DEFINE DRVTYP,<
DTRTYP 52,TU45 ;;TU45s have a DT of 52
DTRTYP 54,TU77 ;;TU77s have a DT of 54
>
SUBTTL First level massbus register definitions
;The following macro defines the registers that we want to read and
;interpret in the device. The arguments to the XX macro are as
;follows:
;
; 1 - Massbus register number (register select field)
; 2 - Mnemonic for the register
;
;Note that the CONI definition MUST be first. RDREG depends on this
;and will work incorrectly if it is not.
DEFINE REGS,<
XLIST
XX 0,CONI ;;CONI - Must be first
XX 0,CR ;;Control register
XX 1,SR ;;Status register
XX 2,ER ;;Error register
XX 3,MR ;;Maintenance register
XX 4,AS ;;Attention summary register
XX 5,FR ;;Frame Count register
XX 6,DT ;;Drive type register
XX 7,CCR ;;Check Character register
XX 11,TR ;;Tape Control register
XX 70,SBAR ;;Secondary block address register
XX 71,STCR ;;Secondary transfer control register
XX 72,PBAR ;;Primary block address register
XX 73,PTCR ;;Primary transfer control register
XX 74,IVIR ;;Interrupt vector index register
LIST
>
SUBTTL Second level massbus register definitions
;The following macros define the bits and fields in each of the
;massbus registers that we want to interpret. For each massbus
;register mnemonic that we defined in the first level macro definition
;above, we define a macro with the same name here that gives the
;bit and field definitions for that register. The arguments to
;the FIELDS macro are as follows:
;
; 1 - The bit mask of the bit or field in the 36 bit word
; 2 - The text associated with the bit or field
; 3 - One of BIT, VAL, or NVAL to indicate that this entity is a
; bit, a field containing a positive number, or a field containing
; a negative number, repectively. RDREG only interprets BIT values
; if the bit is on. VAL values are always printed as a field. NVAL
; values are first negated and then always printed as a field.
; 4 - Either ALL or one of the drive type mnemonics defined by
; the DRVTYP macro above. ALL values are interpreted for
; all of the legal drive types. Values that are given with
; a specific drive type mnemonic are only interpreted if the
; device is of that drive type.
DEFINE CR,<
FIELDS 1B35,<Go>,BIT,ALL
FIELDS 37B34,<Fnc>,VAL,ALL
>
DEFINE SR,<
FIELDS 1B20,<Attention>,BIT,ALL
FIELDS 1B21,<Composite error>,BIT,ALL
FIELDS 1B22,<Pos in Progress>,BIT,ALL
FIELDS 1B23,<On-line>,BIT,ALL
FIELDS 1B24,<Write lock>,BIT,ALL
FIELDS 1B25,<End point>,BIT,ALL
FIELDS 1B27,<Drive present>,BIT,ALL
FIELDS 1B28,<Drive ready>,BIT,ALL
FIELDS 1B29,<Slave Stat change>,BIT,ALL
FIELDS 1B30,<Phase encoded>,BIT,ALL
FIELDS 1B31,<Settle down>,BIT,ALL
FIELDS 1B32,<ID burst>,BIT,ALL
FIELDS 1B33,<Tape mark>,BIT,ALL
FIELDS 1B34,<Begin of tape>,BIT,ALL
FIELDS 1B35,<Slave attent>,BIT,ALL
>
DEFINE ER,<
FIELDS 1B35,<ILF>,BIT,ALL
FIELDS 1B34,<ILR>,BIT,ALL
FIELDS 1B33,<RMR>,BIT,ALL
FIELDS 1B32,<CB par err>,BIT,ALL
FIELDS 1B31,<FMT err>,BIT,ALL
FIELDS 1B30,<DB par err>,BIT,ALL
FIELDS 1B29,<IDE or Vert par err>,BIT,ALL
FIELDS 1B28,<FMT err or LRC>,BIT,ALL
FIELDS 1B27,<Non-Std gap>,BIT,ALL
FIELDS 1B26,<FC err>,BIT,ALL
FIELDS 1B25,<CS or Ill tape mrk>,BIT,ALL
FIELDS 1B24,<Non-exec fcn>,BIT,ALL
FIELDS 1B23,<Drive Tim err>,BIT,ALL
FIELDS 1B22,<Op Incomp>,BIT,ALL
FIELDS 1B21,<Unsafe>,BIT,ALL
FIELDS 1B20,<Corr DE or CRC>,BIT,ALL
>
DEFINE MR,<
FIELDS 1B35,<Maint Mode>,BIT,ALL
FIELDS 17B34,<Maint OP Code>,VAL,ALL
FIELDS 1B30,<Maint Clock>,BIT,ALL
FIELDS 1B29,<Sel Slave Clock>,BIT,ALL
FIELDS 777B28,<Maint data fld>,VAL,ALL
>
DEFINE AS,<
FIELDS 377B35,<Attentions>,VAL,ALL
>
DEFINE FR,<
FIELDS 177777B35,<Frame count>,VAL,ALL
>
DEFINE DT,<
FIELDS 777B35,<Drive type>,VAL,ALL
FIELDS 1B25,<Slave present>,BIT,ALL
FIELDS 1B24,<Drive Request>,BIT,ALL
FIELDS 1B23,<7 Channel>,BIT,ALL
FIELDS 1B22,<Moving Head>,BIT,ALL
FIELDS 1B21,<Tape drive>,BIT,ALL
FIELDS 1B20,<Nosector Adresses>,BIT,ALL
>
DEFINE CCR,<
FIELDS 777B35,<Validity check>,VAL,ALL
>
DEFINE TR,<
FIELDS 7B35,<Slave select>,VAL,ALL
FIELDS 1B32,<Even par>,BIT,ALL
FIELDS 17B31,<Format select>,VAL,ALL
FIELDS 7B27,<Density>,VAL,ALL
FIELDS 1B23,<Ena abort DT err>,BIT,ALL
FIELDS 1B22,<Tape ctrl write>,BIT,ALL
FIELDS 1B21,<FC stat>,BIT,ALL
FIELDS 1B20,<Accl>,BIT,ALL
>
DEFINE SBAR,<
FIELDS 177777B35,<Addr or fr cnt>,VAL,ALL
>
DEFINE STCR,<
FIELDS 1777B29,<Block cnt>,NVAL,ALL
FIELDS 77B35,<Function code>,VAL,ALL
>
DEFINE PBAR,<
FIELDS 177777B35,<Addr or fr cnt>,VAL,ALL
>
DEFINE PTCR,<
FIELDS 1777B29,<Block cnt>,NVAL,ALL
FIELDS 77B35,<Function code>,VAL,ALL
>
DEFINE IVIR,<
FIELDS 777B35,<EPT relative interrupt offset>,VAL,ALL
>
DEFINE CONI,<
FIELDS 1B18,<DB par err>,BIT,ALL
FIELDS 1B19,<Drv exc>,BIT,ALL
FIELDS 1B20,<Long WC>,BIT,ALL
FIELDS 1B21,<Short WC>,BIT,ALL
FIELDS 1B22,<Chan err>,BIT,ALL
FIELDS 1B23,<Drive resp err>,BIT,ALL
FIELDS 1B24,<Reg acc err>,BIT,ALL
FIELDS 1B25,<Chan rdy>,BIT,ALL
FIELDS 1B26,<Overrun>,BIT,ALL
FIELDS 1B27,<MBE>,BIT,ALL
FIELDS 1B28,<Attn>,BIT,ALL
FIELDS 1B29,<STCR full>,BIT,ALL
FIELDS 1B30,<AIE>,BIT,ALL
FIELDS 1B31,<PTCR full>,BIT,ALL
FIELDS 1B32,<Done>,BIT,ALL
FIELDS 7B35,<PI>,VAL,ALL
>
END