Specifications

TYPFIN: HALT
TYPOUT:
JSR R5, TOLER
-
. WORD ARRAY
. WORD -LENGTH
. WORD HILIM
TYPCHK:
. WORD LOLIM
BEQ TYPFIN
JSR R5, SAVE
MOV -(RO), RO
JSR PC, DECPNT
MOV #CR, RO
JSR PC, TTYOUT
JSR R5, REST
JSR R5, TLOOP
BR TYPCHK
;suspend processor opera-
;tion, wait for key continue
;get address of bad item:
;initialization entry
;address of array
;-length of array
;high limit
;low limit
;Z-bit is set if no more out
;of limits
;an element is out of limits,
;save registers
;RO holds address + 2, get
;operand into RO
Tprint out number
;type CR, LF
mote use of second entry
;point
;restore registers
;continue searching array,
;alternate entry
;another bad element?
SINGLE OPERAND INSTRUCTIONS-Single Operand Instructions are repre-
sented as:
OPeRotion OPR dst
Instruction Time
I I’ I I I
operation code
dst
I t ,I I I I 1 I I I I I
15
6 5’ 0
The execution time for single operand instructions is the sum of the basic
instruction time and destination a$dress time for the operation.
General Operations-
CLMR CLR dd 2.3~
0 1 0 I
I
51 I 101
dd
I I I 1
15 6 5
0
Operation: 0 + (dst)
Condition Codes: Z: set
N: cleared
C: cleared
V: cleared
Description: Zeroes the specified destination.
INCrement = _
Hcdst
2.3~
0 1 0
I
I
II
I
5 2.
drt --
I I l t I 11
15
6 5
0
Operation: (dst) + 1 + (dst)
Condition Codes: Z: set if the result is 0; cleared otherwise
N: set if t&e result is < 0; cleared otherwise
C: not affected
V: set if (dst) held 077777; cleared otherwise
Description: Adds 1 to the contents of the destination.
31