028_MAINDEC 11 DCQKC D_D_1140_1145_INSTRUCTION_EXERCISER_Sep74 028 MAINDEC D 1140 1145 INSTRUCTION EXERCISER Sep74

028_MAINDEC-11-DCQKC-D_D_1140_1145_INSTRUCTION_EXERCISER_Sep74 028_MAINDEC-11-DCQKC-D_D_1140_1145_INSTRUCTION_EXERCISER_Sep74

User Manual: 028_MAINDEC-11-DCQKC-D_D_1140_1145_INSTRUCTION_EXERCISER_Sep74

Open the PDF directly: View PDF PDF.
Page Count: 108

Download028_MAINDEC-11-DCQKC-D_D_1140_1145_INSTRUCTION_EXERCISER_Sep74 028 MAINDEC-11-DCQKC-D D 1140 1145 INSTRUCTION EXERCISER Sep74
Open PDF In BrowserView PDF
Product

Codal

MAIN)EC~11.DCQKC-D·D

Product Na!'l1el

11/421 and 11145 INSTRUCTIO'J EXERCISER

Date Created I

SEPTEMBER 21, 1974

Maintalnera

Dlag"ostl0

AI.Jthor'

John Ada'llS

G~ouP

The lnformatlon In thl' doo~ment 11 subJeot to
ohance wlthout notrol a~d s~ould not be oonstrued
as a c~mmitment by 01glta' E~ulpment CorporatTon.
DlgTtal
EQulpment
CorporatTon
aSlumes
no
,.esp6n~'bl ITty '0r an~ errors that may
appear In
th

Is

The

'T1~nua I

I

software

descr1bed

In

thTs

fu~~'Shed to the purchaser under a
~n a sinole comcyt,r
system and

document

Is

Ileense for uel

can be cooled
Inclualon of 1I~ITA~'s cocyrlJht "atlas)
only
use in such sy,tem, excoot aa ma~
Bt~a?wlse ~e provided In w,.ltlng by DIGItAL.
(~lt~

'0,.

nl~Tta!

EQulom~nt

~ a 300 n" 1b I '
301 t\l/afO 01"
OIGITAL~

CO'Do,.atlo~

II ~ i3
:3QU I pilIsnttl>tat

I IG " , 0 i"

:UI'YIUGfI'r

,t :"1

(,;)

1911,

aiJUmeS

Or r it ! I 0. b I I r t v 6 f
I, not lUOO II id

1971

DIGI.t'AL r:QUI PM}~N'T' (,c)RP0}7/\:rrON

"~

,thy
I

PDP~11/40

Table of

AND PDP-11/45

tNSTRUCTIO~

EXERCISER

Conte~ts

1,1
r::GlUIP"1CH
1,1',? 1ptional Equipment Used

Chaotel' 2

1.2

STORAGE

1.3

PRELl~I~ARv

LOADt~G

2,1

PROGRA~S

PRO:E~U~E

AND STARTING

ACT11

OP~RATION

Chaetal' 3 SWITCH SETTINGS
3,1
Ch.cta~

11/45

DISP~AY

REGISTER

4 ERRORS
4.1:1 Error Prlntout ror~at (CP Error)
4.1',2 Errol', Prlntout F'or"at CDevToe Error)
4,1:3 Error PrIntout ror"at (ParIty Error)

C~aoter

4,1~4

Error PrIntout rornat (Relecat!on (rror)

4,2

~ARITY

4,3

ERROR LOOPING

4.4

UNPREDICTEO ERRORS

4,5

TRAP TO LOCATION

4

4.6

TRAP TO LOCATION

1~

4,7

~EMORY

4,8

ERROR DISCUSSION

ERROR DETECTION

MANAGEMENT (KT11> ABORT

5 SU8ROUTINE ABSTRACTS
5,1

SCOPEA

5,2

ERROR

5,3
PROGRAM
5,3",1 :'(ELOC

R(~OCATI~N

5,3~? qelocatlon above 28K (STMM)
5,3',3 lODEV

At T t 0

5 , 3', 4

IJ

5,4

CLOCK INTERRUPT

Page 2

PDP~11/4~

AND PDP.11/45

I~STRUCTIO~

EXERCISER

Table of co~t.~t5
5,~

Chaoter 6

Chaoter ,

E~D

MISCE~LA~EOUS

6.1

EXECUTto~

6,2

PASS

6,3

1/0 DEVICE ADDRESS MODIFICATION

6,5

user

PROG~A~

TIME

MOD!rICATI0~

deflned ralocatlo"

DESCRIPTION

',1

STACK POINTER

',2

~OWER

rAILURE

1'~lts

POP.11/4~

AND PDP-11/45

INSTRUCTI0~

tXERCISER

ADltract

ABSTRACT

This

llaQ"ostlo Progran Is deSigned to be a
oheck oi' t~e PDP.11/4~ and PDP~11/45
prooeS90~S.
Tna program e~eoutes eacn InstructIon
In .1 I address modes and In~ludes tests 'or traos
and the Teletyoe Interruot seQuence. The p~ogram
relocates the test 0008 t~rouQn~ut meMO~Y ~.124K.
!f selected. the program may be ~.Iocated by an~
of t~e aYallable diSkS,
comc~ehensl~8

Page 4

PDP'11/4~

AND PDP-l1/45
RIQI.ITreMents

I~STRUCTIO~

EXERCISER

CHAPTe:~

Page 5

1

R(Q:.JI~E"'IEr-.jTS

1', r

rau! PMENT
CEl~tl'll

PDP"11 ramI IY

1.1.2

1. 2

F'rocessol' .-11th 81( II'II"'Ol'Y,

CQulo~8nt

octlonal

Used

1.

KW11.P

(Pl'oQI'a~mabli

2.

KWll~L

(LTne rreauency

3.

AI I oarlty

4.

KT11~e,D

5.

RKll. Rrll. RP11,

6.

KJ-l1

7.

EIS

Cloc~)

~.mory oDtlo~s

(11/40, 11145

(11/4~

(11/4~

Cloc~)

"'Ie~ory

RS~3/4,

Stack

ExtendElO

Management)

Rel1

LI~lt)

Instr~ctlon

Sit)

STO"AGE

orogl'am loads Tnto the first 6< of memory, and runs 1n all
(a",olusIve of roaders).

The

1~3

No",e.

PRELIMI~A~Y

PROGRAMS

memOry

pDp~11/4~

Loaalng

AND oDp-11/45 INSTRUCTIO~ EXERCISER
Procedure

and Startl~g

CHAPTER
LOADING AND

Paae 6

2

STARTI~G

PROCEDURE

I' console TTY II a
Load tMe DrOgram usIng tne Absolu~e Loader.
sl~lal
devloe (LAJ0S, V'05. etc.), f1 I fer oharacters are reQuired.
olEioslt Tnto locatTon 1002 (F"ILL.S) a 0 (iil'le fll i'1r ol'laraeter) and
loeatlon 12103 11(ootal) (the tTII,,. count).
Load Addr,ss = 20~
Preis start.
Set operatIng swItches
Contents of OPT,CP Is tYOed on fTrst pass (see Chaot 7)
, ~he code Is I'el~oated by
w~Ttlng
the code onto the 1/0 devIce and l'eadlnQ the code baok Into
ltl I'elooated ~osltion. If the code cannot be relocated (because of
lnlu"lclent ~e~ory) t~e routine 'Jump,' to the next sectlo~ nf
un~.looat.d orogram code,
The code ~oved 18 11'1 thaM 1~ «4~0~)
by~es),
At the start and and of each sletTon of cede to be ~oved Is a
sletTon of code whTch establishes the first address of t~e oode to bl
moved, and sets a scope pOinter (~1/R11) and also a seotlon which
es~abllshes the last address aMd 'Ju~DS'
io the relocatfo" (RELOC)
I'outlne. Each seetlon of code Is Identlfl,d as shown below,
ADDRESS TO 9E

1~~0~0~0~~~rlRST

CODE TO BE
J~0~00'~000~LAST

THE

~ELOC

RoutTne

doeS

100~(octal)
bytes of
I'outlne monlto~s SW12,

5~3~2

RelocatTo~

~OVEO

RELOCATED00~0~~~000

ANO EXECUTED

ADDRESS JF CODE TO aE

RE~OCATED000~00000~

not relocate Ol'ogram oode I"to the
memory, tnus preservIng the loaders,
SW~5, &Md S~0~.

above 28K

last
ThIs

(STM~)

Th. STMM SUbroutine relocates the orogram sod. aboye 28K If ~e~ory and
the KT ODtlon are aval lable,
T~e
routIne moves the code at ~w8K
uowards to add~esses above 26K. ~aCh suoceedlng reloeatl,n Is to
memory 1K greater than the last, The prog;am Is e_Iouted In 81 I eaSel
fl'em vlrtu81 memory addresses 0-37776, howevert th. phYsical address
ohanols by lK f4~00) on each relooatlo~.
~:>T

E

The 'virtual ' Ilght (11/40) wlll be on
when the orogram Is eX8cutl"Q above 28K.
Thls routlMe ,onltors SW12, SW09,

5.3.3

SW~5,

and SW03.

T"D[V

Th, IODEV Subreutlne Is cal led fro~ eIther the RELOC or STMM routInes
wheneyer an !/O devTce Is selected to o.rfo~m orogram relooatlon.
T~Ts routine 6btalns the physIcal 3US address for ~ead and
~rlte
and

POP.11/4~

Subroutl~e

AND POP.11/45

INSTRUCTIO~

Abstraots

Page 17

EXERCISER

the byte cou~t 'ro~ the oal I In~ routln.. The davlce to ~e used Is
obtaIned f~om rocatlon JEV. The C~d' to be relocated Is written 'rom
Its oresent c~sltTon and then read Into the relooa~ed posItron, If a
d.vlce error ocou~s the error Is reported and thl oceratlon fs retried
ue to three tT~es,

Thl purcosl of the WAITIO RoutIne Is to r.ter8n~e ~Ia the Cp tha
locatio,,' as tn. device dlHlng the NPR tranlferl,

sam.

m.mOI'Y

0 SK AD~

5 " 3', S

l'

The OSKAD~ SubroutTne is c,1 led 'r,m t~8 IODEV routIne, It generates
.. ~and~m disk address '01' tha sllloted dIsk
SW04 Is set, otherwlsa
It generates a I~I dIsk address. Thl glneratld ra~dom addressls al'l
Ilm'tad (se dTsk overflow wi I I not occ~r) bv the tabla AORTA3.

5~'

CLOCK INT£RRUPT

The Clock
loeatlons
SW06.

5',5

Int.~I'UDt '01'

the I I"a ,~d ~roar.mmabl. cloeks
LTItKS and PTICKS on eaoh Int",uDt, T"Is routine

Incre~ant
~onltorl

END

T9 entered at the com~l.tlon of each pass It sets ue
neW c,ocessor status) for the next pass and orTnt9 an end of
Dass message I

ThTs

routl~a

(lead!

Tyr

QUICK

~123456789

BROWN
~ASS

#

fOX
AAAA

JU~PEO

OVER

THE

LAlV

D~GS

BACK

PDP.11/4l .qn PDI"l-11/45 INSTRUCTtO'l EXERCISER

Page 18

"11lcellaneous

CHAPTE:~

6

MlSCE.L .. A'J[OUS

6~t

EXECUTI0~

TIME

Tne executIon tl~e 19 highly varlaole (dependent OM prOC8!SO~, type of
memory, a~d amount of ~emorY)t ~owev'r. when the progran Ts running
lucoessfully tlolere Is a l"Iotioeable 'F'llcke~1 dl9alaYId 0" the oonlole
Ilaht pattern',
The 'fliCKer' will dim wl'le., 'T' bit trap passes (every
odd cass) are ru~nTng. the program s~ould be run fer a mfnfmJm 0':
4 PA~SES (PASS #
8 PASSES (PASS

*

~0~3)

11/4~

00~7)

11/45

soma tycloal tlme. follow'
PF'P.11/45 WITH 104K ME~O~Y (96K tORE, BK MOS)-24 MINS
PDP~11/45 WITH 4eK MEMORY·l~ MtNS

6~2

PASS

~ODlrICATION

The PSW of t~e paSs ~aY be modIfied Oy patchIng Into looatlo~ PSWTAB+2
the 1esl~ed PSw, for example P&tc~l~g 040000 Into PSWTA8+2 causes the
creuram to run In suoervlsor mode ~n t~e seoond cass,

6~3

1/0

~EVICr

To modIfy the

ADDRESS

MODlrICATI~N

0'

~rogram add~ess
t~e 1/0 devloes on the
UnibUS Datch
the aocroprlate devloe table (see lIstIng table of oontents - Device
Tables) and also the a6proprlatl table entry at 'RrGADR' In the error
1I.;'vlce I'o\Jtlne.

POP·11/4~

A~D

PDP~11/45

I~STRUCTI0~

EXERCISER

Page 19

MIscellaneous

The DrOg~am may he mOdified to or~vlde exte~ded memory e~erclslng,
Essentlal Iy t~e mOdlflcatTon !ncreases the test Iteration count w~lc~
oauses test code to he exeouted In mem~ry for a longer parto1 of time.
Note
that thTs "'odlflcatlo,., l'IIi II Increase the ru~ tIme substantlCllly,
The '10 d I fie a t Ton Is:
LOCATIO"l

rROM

TO

The orOQra m wfl I reQU8st a lower a'd upper lImit '6r r~locatTo~,
T~.
lImits '"ust 1-18 between the last locltlol'! In the listing ."d 15'7776,
The orOQl"a m wf 1'1 execute In the IO~er
4K
("-17776)
e,nd
t~e
II,,"Itl
IPeclfTed.
'he startTng address Is 2~4. To rltaTn orevlQullY
speolfled IlmTts. start at 210.

POP~11/40

Program

A~O

PDo-11/45

!~STRUCTIO~

~e9crT6tlon

PROGRAM

EXERCISER

Page 2"

D~SCRIPTION

The orogram 19 dlvTded Into four sections of Dosltlon I~deoendent
relocatable test cOde. Each section Is aDoroxlmateiv lK words long,
(8~ceDt s.et16~ 1 and A).
SletTon

~

TnTs section causes a 256 word 3X or 9 w,rst easl
noTse test pattern ,0 be ~elooat.d througnout
II'llrnol'Y

0 .. 2BK.

This should not be ·constructed to
memory test.

be

a

sletlon 1

ThIs sectlon tests thl u~a~y Instruction set
executlng eac~ unarY Tnstruotlon In eaoh address
~ode (exoludln~ unary TnstruotTons
uslne address
~ode 7),

seetlon 2

TnTs section tests the unary Instructions using
address mode 7 and bTnar'es Tn al I address model
(excluding blnar~ bytes OPS usTng address ~ode 7).

~

ThIs section tests bInary byte OPS using address
,,"ode 7, JMP, JSR and ~rogram trao (lOT, TRAP, and
EMT) lnstruetl~ns,

Seotlon

Sectlon A

F'ollowlng Seotlo", 3 ls a !'outlne to ascertaIn
OP t~e program Ts runnTng on. T~8 results
ue used by the fo II owTng aeetlons to check
addltlonal
Instructlons/featu~es of the 11/4~ and
11/45. This routine leaves tl'le results I", location
'QPT,CP'.
T~e contents of ti'lls locatio,", are typed
out as f'olloiHSl

whlc~

wherel

t"'.

PO~ft11/4~ AND pDp.11/45
Pregram OascrTDtlQn

INSTRUCTIO~

page 21

EXERCISER
Mlmor)'
manage~.nt
ava 11 ab le/"ot aVIL t I ab

option
Ie

ElS available/not Ilvallabll

9lTl4 • 1/0 •

NOTE

Bl'P13 • 1/~ •

EIS Ts • "ways
pap_1i/drS,

avaT I ab lion

11/4'

F'PP

Ill/allable/not

11i4e

F'fS

avallabll/not

avallabll

8 I T12 • 11 " .-

avallabll

~ lIB •

stack 11mrt (11/4e KT oDtlon)
avaTlall/net avaTltbil

B ITUJ • 11k'! •

KWI1-P avaTlable/not Ivai lable

BIT~9 •

1/111 •

KW11-L avaTlabie/not aval labll

81'08 •

1/~ •

Conlol.

8 !Til

06 •

sl8t10n 4

Th1s section
statuI word

In,truotlQn,

seotTon

~

,variable/not

~4

: 11/40.

bIt Tn thl prOOlssor
cll.rld, r.'lrved
odd addr"s traDI,

c~lck'

CPSW)
a~d

11/~5,

that
can

.ao~

bl

Sit

ThTs slctton g~lck' thl SXT, XOR, S09.
a~d RTT Instruotlons,
T~ls

'Ictton

r~ltructlons
(PtRQ) logic,

sIet10n 7

tTY

avaTlabl.

c~lokS

and

~ARK,

RTT

thl ASH, ASHe, MW~, OIV. SPL
the DrOgr.~ Inta'ru~t reaulst

ThTs 8,ctTon c~eck9 the stack lImIt rlglste,
(KJ-11 optIon on 11/4~), a~d memory ~anagement
II b0 r t
log I c ( , f s)' a tl m nil' m0 r e t i1 a" 3 2 K 0 f
MemOf'),') •

F'ollowTntJ SectTon 7 ue two rOl,ltlnas to c,",eCK tn. Telotype orl"t.r
10aTc and a routlne to start althlr the KW11.~ or t~e KW11-L olock.
If .Ither the KW11.P or the 
Se:dMENT ~AS 3EEN WRITTEN INTO
SEGMENT ~AS 9EEN ACCESSED
StOMENT LENGTH FIELD
BINARY REPRESNETATION
BLOCKS IN Sr.~MENT.

or

NUMBER OF 32 WORD

..

APPENDIX B
RC11 RE:GlSTE~S
IN'ERRUPT VECTOR • 210
• L 0 0 K

~C~A"77744~

A H E

12

15

R e: G

A 0

11

S

T

E

R

1~

6

~

5

I!·-·-~I-----------I-----------I-----------------·----~------1-------------------------·----------!
AA !
I
UNIT
I
TRACK ~O
I
SECTO.
1
I--·--!-----------I-----·-----I·----------------~-----------1---------------------·-------------1

RCOA .. 777442 .. "

S

K

A

~

0

12

RES

11

REG

S

S

T

10

~

E

6

a

5

r----~--·---·-··-·l----·--·---I·----------------·----· ------J---------------------------··-------I
1

UNIT

SEC'O~

NO

TRACK

l.---~------~-.---l--~~-·~~---I--~--------------~.--.-w-·---t----~--------~-··---·--~··~--·----·-l
RCfR .. 7?7444 ... 0

S

E

K

~

R

0

REG

R

T

5

E:

~

9

..

4

t----~I---~-I-----I--~--l-~---I ----I-----I-----l---·-I-··--t-----I·-·--!·-·~·I--·--I----·I-·-w-l

I DLE I BCE 1 DS£ 1 NXM •

t----~t ..

I

ATe: ..

Mxr ..

\J

0

C

K

S

0

III

I

I APt I SAE I DOE 1 MXr I

1

I

1

AoORESS ~ARITV ERROR
SYNC ADDRESS ERROR
OIIK OVE~rLOw ERROR
MISSED T~A~SF'ER

APr •
SAl: •
OOf ..

CHECK ERROR
OAtA SYNC tRROR
'JON-EX I ST MEMORY
A TRACK ERROR
B~OCK

!lJXM ..

! ATE i

--·!--~~-l~~---l·-·--I-----I·----l·--·-I-----l----·I-----I---~·I-----I----~I-·-·-I

OAT A l.A H: ERROR

OL.[ •
BCE •
OSE ..

RCOS ... 711446

--·-t-..

T

R

0

L

T

S

&

T

A

U

S

R

E

0

S

T

E

R

..

I----~f-----l- ---l--~--l~'-·-l·-·--!-----i-----t·----1-----1-----1-----1-----1-----1-·----1-----1
SC f OE 1 At 1 WL.E 1 ~xo I weE I BAI 1 ABT 1 ROY I IE! A1' I 14.16 I MM I rUN I rUN I GO 1

1

t----~t-----l- .. ---I--~~-l-~---I-- .. --I-----I-----l·--·-I----·I-----I-----I---~·I-----I··----I---·-I
sc •
BUS ADORESS 3IT 17
sPtctAL CONDITI0~
14.1' ..
DE •
BUS ADDRESS 31T 16
DATA ERROR
A1' ..
AE ..
MM
MAtNTENA~CE ~ODE
ADDRESS ERROR

n:

wLE: ..

WR I

~XD

NON-EXlST[NT DISK
WRITE CHECK ERROR
INHIBIT CA l~CRE:~E\JT
ABORT
READY
IN'ERRUPT ENABL.E

wCE •
BAI ""

A8T ..

RoV ..
IE

RCWC .. 7'774~H'

.. ill

RCCA-777452 ..

0

e u

R 0
~

RCMN.7174,9 .. M A
Rcoa-717456 .. M A

T

rUN ...

LOCI( ERROR

C

0

e:

t\J

T

N

T

E

~

A

a u

A

A
F'

0

D R
C E

~

F'

R

E:

R

E

S

G

E

S

S

R

E

G

R

E

G

READ

Ul

11 WRITE CHECK

rl!1 WRITe:
GO

'I!!

N T

J

R

GO

rUNCTION
fJ~ LOOI< AHEA~

T

E

R

i1

E

G

T E

S

S

S

T

E

R
R

T

E

R

APPENDIX C
R"11 RE:GIS'!'E:~S
INftRRUPT VECTOR , 204
RF'bcs.117460 .;. 0
15

S

14

CON

K

13

T R 0

11

12

1~

S

L
9

TAT

8

U S

7

REG

6

5

I

4

e:

T

R

21m

3

1----~j--~--I-----l-----1-·---J·-·--I-----i-----I~----I-----l-----I-----I---~-I--~--------l-----I

I WLO I Mxr t CLR I ROV I

I (RR I

rR~

£RR

ERR 'LOGICAL OR OF' 14",,9)
F'Re:E2E (LOCICAL OR OF' OAE t5-1r21)
WRITE CHEC~ ERROR
DATA PARITV ERROR
NON £XISTANT DIS~
WR t n: L.OeK OUT
MISSED TRANSF"ER
DISK CLEAR
CONTROL. ~EADY

1

wc~

t OPE I

~ED

IE t A1? I A16 I

HM I

rUN

I

GO I

I----~t---~-I-----l--~--I-·---l-----I-----i·-·--l-----I-----I-----I-----I---~-1-----------I-----1

rRi!

WeE
OPE
NED
1011.0

lAX'

CLR
ROV

R'WC.7??462
RP'i!lMA.77'4'4

•

C

Rf'OA!h7?7466 " 0

D

R

0

"" IN

U

R

R

s

I(

C

J

0

T

N

E

N

A 0

D

R

T

INTERRUPT ENABLE
BUS ADDRESS BIT 17
BUS ADDRESS BIT 16
MAINTENANC[ ~OOE
FUNCTION
READ
21" NO OP
01 WR lTE
11 W-1TE

IE
A17
A16
MM

rUN

[

M

E

M

0

~

E

5

S

V

A-

E

R

C~ECK

E R

T

$

G
pit

1"

D 0

R

E

S

S

T

E

R

G

S

15 .
11
10.
. . .
e
!~·--~-~~·--·~~~--·-·~~-p~!--~l·-·---··-·--··~~·~.·,-·-~---------------------·-----~--·--------·-l

i----~-.-!~!:~--.-------.-.---l.-.-~-----.---~.-~-~~~~- ____ !~~~~~~e.-.----;----------.----------~
S
15

14

13

II:

ADD

RES

EXT

S

e

1~

12

o

ENS
7

N

lit

e:

,.

3

R

0

2

R

R

1

G

e:
~

!----~l---~-I-~--·l--~~-l~.-~-l--~-~I---·-f·-·-·I.-·,·-I----·I~-·-·l--·---·~·~·---·--I·---·I---"-l
t APE I ATt t BTt teTE 1
! NXM t
! 841 1 OR~ I
1 OAO t
UNtT
I
TA
I

t-·--~t---·-I-·---t--~~-1

APE

AT!:

en:
eTE

NXM

BU

•• ---1··~--I-----f-----i·-·,-.1-----t--~--I·-·----~--·---·--I-----I-----l

ADDRESS PARITV ERROR
A TIMING TRACK ERR~R
8 TIMING TRACK ERROR
c 'IMING TRACK ERROR
NON~£XISTANT MEMORV
BUS ADORtSS INHIBIT

RrOBR.777422 • D A T A B
RFMA_???4?4 • M A N

U f

TEN

A

H

ORL
OAO

UNIT

TA

OATA REQUEST
01SI(

~A

Te:.

ADDRESS OVERFLOW

UN 11' NUMBER
I ON OF" TRACI( ADDRESS

!:)(TE:~S

IN F/F'OAR

PER

REG

S

T

E

R

A NeE

REG

S

T E

R

E

A

10

e

t-··-~-·-~~--~----·--~--·~~---J--w------~------~----------------,--------~-~·-~--·-----------~-l
1
01 K
SEGMENT
ADORESS
l~.--~---------------~~-.~~---I--~-w-----------. --u-------.-.-.-~-.--------~.----~--.--

______ w_l

$

T E R

APPENDIX 0
RK11 REGISTERS
IN'ERRUPT VECTOR
AKOS.7774m~

• n

~ 22~

v E

R

S

TAT

REG

U S

S

T

E

R

f----~------------1·-~-·I~.---1·-.--1-----f·----I·----I-----I-----I·----I---·~-----------·------I

1

10

I

1 RKS I ORV I SIN f

DP~

SO~

1 DRV I ROY I WDS ISC=SAI

SECTOR eTR

I

r~---.---~--1--·--1--~--1-----I-----I---·-f-----l-----I-----I-----I-----I----q------------------I

10
rlPL

RKS
ORV

SIN
SOK

RKER ... 7774m2 • r

ORE
OVR

WL.O

SK£
PQ!'

!\IX'"

!)LT

IOE:NT OF' ORIVE
ORtVE: POWER LOW
SET TO INDICATE RK"5
ORIVE UNSAF'E
SEEK INCOMPL.ETE
SECTOR COUNTER OK
R

R

0

R

R

[

OR\'
\oIPS

SC=SA
5C

NON~£XlSTANT

5

G

DRIVE ERROR
DISK OVERRUN (OVERPLOW)
WRtT£ LOCK
SEEK ERROR
PROGRAMMING ERROR
OATA LAT£

DRIVE READY
REiD/WRITE/SEEK READY
wRITE PROTECT STATUS
SECTOR COUNTER=SECTOR ADDRESS
SEOTOR

RD"

TE
NXO
Nxe
NXS
CSE

wee

T

E R

TIMING E~ROR
NON-e:XISTANT DISK
~ON-EXISTtNT Cy~tNOER

NON-e:XlSANT SECTOR
CHtCK SUt04 ERRQR
WRITE CHfCK ERROR

5

TAT

R

U S

~

G

S

T

E

R

t-·--~t-----l-~---l--~~-l-----l·----l-----t-----I"---~1-----1-----1-----1-----1--·--1-----1-----1
t ERR f HE 1 SCP t
I 3Al I rM' 1
Y sse 1 ROY I IE I A1? t A16 I
FUN
I GO I
r-·--~t---~-l-----t--~--l-----l--·--I-----I-----t.----l·----I-----I-----I---~-l-----I-----I---·-I
ERR
BUS ADDRESS BIT 17
ERROR(OR 0' RKER & R~CS(14)
A11
!-lARD ERROR
SEARCH COMPLETE
BUS ADDRESS INHI3IT INC.
FORHAT MODE:
STOP ON sorT ERROR
CONTROL. READY
INTERRUPT rNABL.E

!o!E
SCP
RAJ
F'MT

sst

~DV

IE
RKWC.777406

•

VI

RKLA-77141121 • C
RKta .. 777412 • !';

0

R

0

U

R

R

S

K

C a
r;

J

N T
A D J

N

GO
T

R

B U S
R e:

t •• --~-·-.~-t--.--p--~~-.~.---

SUS ADDRESS BIT
rUNCTION
RESET
~V30
WRITE
?J"1
:t!u,
READ
WT CHK
011
ENABLE fUNeTION

A16
FUN

5

E

G

A

0

0

S

T

E

III

R

f

S

S

16

UHl

HH.
lUI

111

SEe:K
RD C"IK
ORV "ESET
WT LOCK

s

.. --------.-~.---·t.--.- l---w-------~-----~---~-----------------·-l

I DR SEL.
1
CYL.INOER
i SUA I
SECT~R
I
!.-··-·-----I-----~--~~-·~~--·-·-.------.--."---I.-·,.~I------------·------p--·---·------------·-l
RKOB~717416

•

~

A T A

B U ,

F'

e:

R

R

£:

G

s

T

£

R

APPENDIX E
RP11C REG 1HERS
IN'ER~UPT

VECTOR • 254

RPbs~71611~

•

~

R

S

TAT

U

REG

S

S

T

E

R

I-----t---"-I-----I---~-I·----r-----I-----l-----t.----I-------------------~--·---·---··----I---·-l

51 I su I UNSfl WP I AT~71
ATTENTION
I ATN~1
l----~I·----I-----l-----~-~---I-----l-----f-----t-~-.-I-------------~-----~------·-------_I-----1

I SUR t ONL I RP03% HNf I

SELECTED UNIT READV
SELECTED UNIT ON ~lNE
SELECTED UNIT IS R~03
HEAOER NOT fOUNO
SEEK INCOMPL.ETE

SUR
O~1.
RP~3

Io4Nr
91

RPfR"776'12 • r

R

R

a

R

R

f

SEEK UNDERWAY
SELE:TED U~IT UNSAre:
SELECTED U~IT WRITE LOCKED
ORIVE ATTENTION

SU

UN9f
\011..0

AT""'''ATN''
S

G

T

E

R

I----~!--- .. -l-----l--~~-l~~---I·----l-·-·-f-----I.----I----·l·-·-·t--·--t---~-I-----l-----!-----I

I WPV I ruv I NXC t NXT l ~Xs 1 PGf I rMT f MOD t LP[ I WPE J CSt 1 T£ I WCt I NXM 1 top I OER I
l~·--;f-- •• -l-.-·-l·-~.-l~~---I-----I-----I-----t.----I·-·--I~---·I--·--t---~-l--·--I·----I---·-I
wpv
rruv
NXC

WRITE PROT VIOL.
rU.E UNS,H'( VIOL.
~ON.£X!ST.NT CYLIN)ER
'lON.£XISTANT TRACK
~ON.[XISTANT SECTOR
PROGRAM £RROR
rORMAT ERROR
HOOE E;RROR

~XT
~xc

"'Gr
F'MT

MOO

RPCS.'76114

• e

0

N

T R 0

I.

L.ONG PARITY ~RROR
WO~D PARITY ~RRO~
CHfCK SUt.4 E:RROR
TI~ING EptROR
WRITE CHECK ERROR
~ON .. EXlSTANT MEMORV
ENO or PACI(
DISK ERROR

LPE
wPt
CSt
TE

weI!

NXM
EO"
OER
S

T

A

T

U

R E

S

S

G

T

E

R

l.~--~t--~~-I-----I--~·-l~.-·-I·----I---~-I-----t.--·-1-----1-----1-----1---··------------1-----1
HE I AI£ I MOO 1 ~OR 1
ORIVE SfLECT t RDV I I~ I A1' 1 A16 1
rUNCTION
I GO I
1----~!-----I-----I--~--I~.··~l·----I-----I-----I-----I-----I-----I-----t----~-------·----I---~-l

1 ERR,
ERR

ERROR (OR Of ALL E~ROR BITS)
ERROR (OR or ALL 3UT
9ATA ERROR BITS)
ATTENTION INTERRUPT ENABLE
RP11-C IS CONOIT10~EO TO RD
IWRT DISK PACKS IN POP1a O~
POP 15 F'ORMAT
rUNCTION IS A HEADtR OPERe
SELECT
READY
INTE~RUPT ENABL.E

AlE
MODE

HOR
~RIVE
~OY

IE

RPWC.776116 -- W Q R
RPBA·716'2~

A11
A16
rUN

~ARO

~E

--

e

RPCA.716122 • e

U

s

0

J

N

ADD

~

E S

C

0

Y LIN

(8 I T5 IHh08)

D E R

GO

eus ADDRESS BIT 11
BUS ADDRESS BIT 16
'UNCTION
~0e
INIT
10~
~al
WRITE
tal
~10
REAO
11~
~11
WRT CK 111
ENABLE OPERATION

REG

,.

REG

S
A

0

S

0

RES

S

T

E

R

S

T

e:

SEEK
WR ITt (NO SEn:)
LofOME SEEK
RO (NO SEEK)

R

REG

S

T

E

R

S

K

A D

j

RES

S

REG

S

T

E

R

-

,

!"--·.-··~~-----I-~--~~-~·~------~-------I---------ft---·----------,---~--I--w-----·-----~------~~l
TRACK AOORESS
CURRENT SECTOR
SECTOR ADDRESS

.

I~~·-~---·--·- -I----~~--~.-------------~I-------~-··-------·-------~----I---------~---------·--~l
SUCA~776'34

-!

E LEe
(BITS 00-t'lB>

TED

U

N

T

c

V

i..

~

D E R

A

DRS

APPENDIX F'
RC:GISTERS

~se3/4

tN'ERRUPT VECTOR

~

204

• CON

RSCS1.17204~

T

R 0

~

S

TAT

U

R e:

S

G

II-----t-----I-----I--~--l-----l-----I-----t-----I-----I-----I-----I-----I----~T-----I-----I-----l
Sc t TRE I MC~EI ~ I 'VA 1 PSfLI A11 t 116 I ROY
IE I
~UNCTION
1 GO I
1-----1·----1-----1--~--1-·---I-----I-----t-----l-----1-----1-----1-----1-----1-----1-'----1-----1
!
CONTRoLLrR 1 DRIVE
I CONTROLLER
1
DRIVE
I

MCPE

SPECIAL CONDITto~
rUN
TRANSF"ER ERROR
'1 ASS BUS C0 ~ TR0L BJ S PARITV ERROR

210 121 2!

r'JVA

OR!V!: AVAH.ABL.E

2!lU'~

~c

TRE

PSE:L

PORT stL.ECT
BUS ADDRESS BIT 11
gUS ADORESS SIT 16
READY
INTERRUPT ENABL.E

A1'1
A16
ClOV

IE

RSWC ... 111042

..

lJ

0

R

RSBA ... 772~4~

...

F.I

U

S

-

"

E

S

RSOA.712"'46

0

It.
R

NO OPERATION
DRIVE CLEAR
SEARCH
WRITE CHECK

~e2!l2!~

l"U'~
1UJ2I2!

WRITE

READ

l1UJ~

ENABLE F'UNCTION

GO

C

0

J

N

T

0

0

~

E

S

E

rUNCTION

S

A D

0

R

e:

G

R

E

D R E

5

E

G

S

S

R

S

T E

q

E

R

G

S

T

E

R

t----~t-·---I-··-·I---·-l·~---I·----l-----i-----!---~-I-----I-----I-----I---·~I-----I-----I-----l

t
SPARE
1
TRAC~
ADDRESS
I
SEC TO_ ADORESS
I
t----~!·-·--I-·--·I-----I-·---I-----I-----f-----I-----I-----I-----I-----i-----I-----l-----l---·-t
RSCS2-772~50 ~

CON

~

T R 0

S

TAT

u

S

R t

G

S

T E R

*2

I--·-~l-----i:----l---~-I-~---l-----t-----i-----I~----I-----I-----I-----I----~I-----I-----l-----1
t OLT t wet 1 upr ! NEO 1 ~x~ I PG[ 1 Mxr f MOPE!
OR I IR I CLR I PAT 1 BAI I
UNIT
I

1----~I-----I-----l-----1-~---I--·--I-----t-----t-----1-----I-----I-----I----~I-----I-----l-----1

DLT
WCE
UPE:

DATA

"JED

~ON"ExtSTENT
~ON"EXIST£NT

CHECK ERROR
UNIBUS PARtTY ER~O~

t.JXM

PGE
MXf'
RSOS .. ?722152

OR
lR
CLR
PAT
BAI

01S~

MEMORY

PROGRAM ERROR
MISSED TRANS~ER

-"

R

V

E

DATA BUS PARITY ERR
OUTPUT READY
INPUT READY
CONTROLLER CLEAR
PARITY TEST ~AT:1/0aEVEN/OOD
BUS ADDRESS INHIBIT INC.
UNiT SEL.ECT

~DPE

L.ATE

WR1T~

UNIT

5

T

A

T

U

5

R

E

G

S

T

E

R

!-----t-----I-----I--·--J-----I-----I-----i-----t-----1---------------------·~------------------1
~R~ I LB' 1
0 f DPR I DRV I
r

t ATA 1 ERR I PIP 1 MOL 1

I----~!-----l-----I--~--l-----I-----l-----f-----t-----1------------------------------·----------1
ATA
E:RR

,::lIP
MOL

ATTENTION 4CTIVE
ERROR SUMMARY
POSITIONING IN PRO~RESS
~EDIUM ON ~INE

WRL
LBT
DPR
DRV

WRITE LOCKED
LAST BLOCK T~ANSFERRED
DRIVE PRESENT
DRiVE READY

R

t

G

S

E:

T

R

!-----t-----!-----l--~--l~~---l---u-l-----l-----l---~-------------------1-----1-----1-----1-----1
OPt 1 OTE 1 w~E 1 lAE 1 AO i
I
I PAR I RMR I ILR I I~r 1

lOCK tUNS I

l-----I-----I-----!--~--l~·---l---u-I-----i-----I-----------------------!---.-1-----1-----1-----1

DCI<
IHS

oPt

OTE

DATA CHECK
I)RlVE UNSAfE

PAR

OPERATION

RMR

~RIVE

WLE
tAE

I NCOMPI.E TE

TIMING ERROR

A

T T

E

T

N

MASSBUS PARITY ERROR
REGISTER MODIFY REFUSED
ILLEGAL ~EGISTER REf.

ILR
ILl!'

l.OCK ERROR
INVALID DISK AOO~ESS

!.JR t TE

RSAS .. 7'2~56 -

DISK ADDRESS OVERFLOW

AD

S

~

0

ILLEGAL

U

M

M

rU~CTI0N
~

A

Y

t----~---------------~--·-·---------------------I-----1-----1-----1-----1-----1-----1-----1-----1
I AT1 I AT6 t AT5 1 AT4 I AT3 I AT2 I ATt 1 AT0 1

I

t-·--~-·-·----------·~·-·~·---··---------------~I-----I----~I-----I-----I---·~I---~-I"~--~I-·---I
A

H

E:

A

D

t----~---.~----------~~-l~.---l-----I-----i--~--t-----1-----1-----1-----1-----1-----1·----1-----1
I
I
CURRENT ADDRESS
1
SECTOR rRACTION
I

r----~---·~--------·-~--l-~---I·----t-----I-----I-----l-----I-----I-----I-----I-----Ip----I-----l

RSOBw712062 RSMR_7?2~64

~

- M A

RSOT.7'2066 - 0

U

po'

F'

N T

R

E:

G

V E

T

Y P

A T A

R

B

E:

R

5

E

e:

T
R

e:

R
G

S

T

E

R

APPENDIX A
KT11 CIO R~GlSTERS
SR0-777512 - S

TAT

15

14

13

W S

E G

~

12

11

10

S

T

9

E

R

6

7

6

5

4

3

2

1

B

T----~r-----l-----1-----1-~---I-----I-----i-----l-----T-----l-----1-----1-----1-----1,·----1-----1

I NRA ! P~E 1 AV 1 MHT 1 PAS I 0 I TE I MM I r: I MO I D£ 1 110 t PA I GE 1 NO lENA r
I-----t-----I-----I-----l-----I-----t-----i-----I-----1-----1-----1-----1-----1-----1·----1-----1
NON.RESIDENT ABORT
°AGE L~NGTH ERROR
ASnRT • READ ONLY .CCESS VlOLATION
H~MO~V MANAGEMENl TRAP
PROGRAMS AID SYSTE~ rLAG
ENABLE MEMORY MANA~EME~T T~APS
MAtNTENANCE MODE

~RA •
PLE AV
* HMT _

•

PAS •

• TE
MM

• IC

SR1~7775'4

w

S

TAT

U S

REG

S

COMPLETE~

CPU MODE
00 • KERNAL
10 - NOT USED
~1 - SUPERVISOR 11 - USER
II) - SEGMENT ADDRESS SPACE
o • 1 SPACE
1 ~O SPACE
PAGE- PAGE #

•

~NA

•

- INSTRUCTION

~O~E-

T

E

- ENABLE MEMORV MANAGEMENT

~

AUTOINCRMENT/DEcqE~E~T or THE GPR'S, I~CLUDING
RErrRENCES THROUGH THE 'c, SRi IS CLEARED AT THE BEGINNING
OF EACH I~ST~UCTto~ PETCH, WHENEVER A GPR IS ~ItHER AUTO INCREMENTEDI
otC~EMENTED THE REGISTER NUMBE~ ANO THE lHOUNT (IN 2/S COM~LEMENT
NOT~TtO~' IS RECORDEO IN SRi.

SRi RECOROS ANY
~XPLICIT

11

15

1~

7

8

3

2

!----~-~----------·--~---~·---I·-------------·-·t------------------·------~---I---------------·-I
AMOU~T
REG NO
AMOUNT
REG NO
I
I--~-~---~--·--------~~-··~---I~----------------I·-----------------~-·----~---I------··---·----w-I
SR2.17?576 • S

TAT

U

S

REG

S

T

E

R

#2

SR2 IS LOADED ~ITH THE 16 81T Vl~TJA~ ADDRESS AT THE BEGIN~ING or EACH
!NS1RUCT10N rETCH, OR WITH THE A'O~ESS TRAP VECTOR AT THE 3EGINNING
or AN I~TERRUPT, 'T' BIT TRAP, PARITY, 000 ADDRESS, ANO TI~EOUT TRAPS,

• SR3.712516

w

S

TAT

U S

REG

S

l'

~

E

#3

SR3 ENAB~ES OR OISAB~ES THE USE JF 110 SPACE. WHEN '0 SPACE 15
'
DIS ABLe: 0 ALL REFERENCES USE THE t I ' SPACe: REG IS T&: RS J WHEN
' 0 ' - SP1\ CE
15 ENABLED BOTH 'I' ANO to' REGISTERS ARE: USED. A '1' ENABl.ES '0' SPACE"
2

1

QJ

I----~---------------~----·---l-----------------I-------------------------~---I--·--I-----I-----1
t
I l
I I< 15 I U I
I-------------------------~---l-----------------l-----------------------------1-----1-----1-----1
I J .. USER 0 SPACE E'IA8L E
S .. SUPERV I SOR '0' SPACE ENABLE
K
KE~N£l. '01 SPACE ENABLE
II

'HE

PROGRA~

P

DOES NOT ENABLE ANY '0' SPACES

AGE

KIPDR~.I

0

E

R

GO

O~ER,

0

C

R

T

£:

0

G

S

REG

S
A

INIT
100
WRITE
101
READ
110
311
WRT CK 111
ENABLE OPERATION

SEEK
WR ITt (NO SEEK)
HOME SEEK
RD (~O SEEI<)

~~0
~01
~la

0

RES

S

T

E

R

S

T

E

R

REG

S

T

E

R

RPOA ... 776724 .. 0

S

K

A

0

J

RES

REG

S

S

T

e:

R

I~---~-·-----·--I-~--~~-··~·--·--~------~I-·----~---~--------·----------I-~-~·---·~----~----·-·-I
I TRACK AJDRESS
I
CURRENT SECTOR
SECTOR ADDRESS

!----~----------I----~--·-·---.--·-------I-----------------·------------I----~---w----------·-"-I
SUCA-776734 -

~

E LEe
(81 TS

0~~,..08>

TED

U N

T

C Y L

N

0

E

R

A 0

R

S

APPENDIX F
REGISTE~S

RS03/4
IN'E~RUPT

VECTOR • 204

RSeS1~77204a

CON

~

T

R 0

~

S

TAT

U

REG

S

I1-----'-----1-----1--.--1-----1-----1-----1-----1-----I-----I·----I-----I---~·I-----I-·---I---·-I
SC t TRE I MCPEI ~ 1 JVA 1 PSELI A11 t A16 J ROY
IE I
rUNCTION
I GO I

t-----t-----l-----1--~--1-·---I-----t-----i-----I---·-I-----I-----I-----I-----I--·--t~----I---·-I
eOYTROLLER I DRIVE
I
CONTROLLER
1
ORIVE
1

1

sc

SPECIAL CONOITIO~
TRANSFER ERROR
MASS BUS CONTROL BJS PARITY
QRIVE AVAIL.ABLE
PORT SELECT
BUS ADOR~SS
17
SUS ADDRESS BIT 16
READY
INTERRUPT ENABl.E

TRE

"'CPt:
OVA.

PSEL.
A17
A16

°

NO OPERATION
DRIVE CLEAR
SEARCH
;'lU'21
WRITE CHECI<
1"1"21
WRITE
112",,-1
REAO
111,,21
ENABLE FUNCTION
'H1Je 21

ERROR

~"H12'

BIT

~DV

IE
RSWC"'71~42

rUNCTI0N

F'UN

0

R

RSBA .. 772~44 "" e

U

5

RSDA .. 772~46 • n

E

S

..

I.aI

D
A
R

GO

C

0

J

N

T

0

D

~

E

S

S

A 0

0

E

0

R

R

[

G

R

E

E

S
G

S

S

T

E

R

S

T

[

~

E

G

R
T

5

E

R

I----~t-----l-----1--~--I-·---l-----1--··-f-----I·----l---·-I--·--I-----I----~I--·--I·---.I-·-·-I
I
SPARE
1
TRACK ADDRESS
I
SECTO~
ADDRESS
X
I----~l·----I----·l--~--l-·---l-----l-----I-----I-----I----·I-----I-----I-----I-----Iu----I---·~l

5

TAT

U S

R

E:

5

G

T

E

R

*2

I----~t·----I-----I--~--I··---I-----I-----i·----l·----I-----I-----I-----I-·-~·I-----I··----l---·-l
I OLT t weE 1 UPE
NEO I ~x~
PGE 1 MXf f MDPEI O~ I
I C~R I PAT i ~A! I
UNIT
I
1-----I-----1-----1--·--1-----1-----1-----t-----I-----t-----I-----I-----l---~-l-----I .. ~---I---·-I
nLT
DAfA BUS PARtTY ERR
lATA LATE
MOPE
WCE
~RtTE CHECK ERROR
OR
OUTPUT READV
~,!PE
JNIBUS PARITY ERRO~
IR
INPUT READY
~ON.EXISTENT DISK
'JED
CONTROL.LER CLEAR
Cl..R
~JXM
~ON .. EXtSTENT MEMORY
PARITY TEST PAT:1/~·EVEN/OOO
PA'
PGr
PROGRAM ERROR
BUS ADDRESS INHIBIT INC,
BAt
"1XF"
"IlSSED TRANSfER
UN IT SELECT
UNIT

I

RSDS-7'72e!52

-

~

R

V E

1

5

T

A

IR

T

U S

R

E

G

S

T

E

R

1----~f-----l-----1--·--1-·---l-----I-----t-----I-----1------------------------------··--------·-1
t ATA t ERR I PIP I MOL 1 ~RL 1 LBT 1 0 i DPR 1 DRV I
I
I----~t-----I-----l---~-l-----I-----I-----t-----I-----1------------------------------··-------- .. 1
ATA
WRITE LOCKE:D
ATTENTION ACTIVE
WRL
ERR
L.AST BLOCK T~ANSFERREO
ERROR SUM~ARY
LBt
PIP
POSITIONING IN PRO~RESS DPR
DRIVE PRESENi
'4!)L
ORIVE READY
~EDIUH ON ~lNE
DR~

RS£R.772~54

~

t

R R 0

R

REG

S

T

E

R

1-----'-----1-----1------1-----1-----1-----1-----1-----------------------I---~-l--~--I·----I-----I
~LE I IAt I
AO i l l PA~ I RM~ I ILR 1 ILr I

lOCK I UNS I OPI I OTE 1

I-w--·t---·-I-----I--~--I-----I--~--I-----f-----I--·--------------------1---·-1-----1··---1-----1

DCK

DATA CHECK
ORIVE UNSAPE
OPERATION INCOMP~ETE
DRIVE TIMING ERROR
~RIT[ LOCK ERROR
INVALID DISK ADD~ESS

U~S

oPt

OTr
WLE
IAE
RSAS-712~56

- A

T

T E

N

T

DISK ADDRESS OVERFLOW
~ASSBUS ~ARITY ERROR
REGISTER MODIfY REFUSED
ILLEGAL REGISTER REF,
lLLEGA~ rUNCTION

AO

PAR
RMR
ILR
ILr

s

~

0

U M

M A R

Y

I----~--------------------·---------------------I-----I-----I·----I-----I-----I--·--I----~I-----I

1

I AT? I AT6 I AT5 I AT4 I AT! I AT2 I ATl I ATe I

I----~-----·--------------·----------------·----l--··--I-----I-----I-----I---~·I--·--I·---.I---·-I

~SLA·7?2~6A

- L

0

0

A H E

K

A 0

rI-----------------------I-----I-----I-----i-----I-----1-----1-----1--·--1-----1-----1----.1-----%
I
CURR£NT ADDRESS
I
SECTOR rRACTION
!
r----~---------·-----~--I-----l.-~--I---·-f-----I--u.-I-----I-----I-----I-·-~-I--··-I-----I---~-l
Bur r E R
~SOB-772~62 • 0
A T A
RSMR.7?2~64

- M A

N T

R

G

RSOT-772~66

- D R

V

T Y

P

(

S

E

T

E

REG

R

5

T E R

OCQKCD
DCQKCO
!5

36

285
339
416
475
661
762
91'117
1118
1219
1257
1299
1426
1534
2671
36 9 2
4201
4545
4955
5368
561fJ4

5842

11 / 40-11 / 45 CPU EXERCISER

TARLE

or

CONTENTS

SETTING
DErIN1TIONS & ASSIGNMENTS
ENABLE PARtTY & POWER rAIL ROUTINES
PROG INDICATORS & SCOPE ROUTINE
REI..OC RouTINE
IODEV ~OUTJNE
SWITCH

DEVH'E TABLES

TYPE SUBROUTINE
ERROR SERVICE ROUTINE
PARITY ERROR SERVICE
MISe SUBROUTINES
KT AAORT. RESERVED & ERROR TRAP SERVICE
PROGRAM INITIALIlATION
START O~ SECTION 0
START OF SECTION 1
START Or SECTION 2
START OF SECTION 3
START OF SECTION 4
START O~ SECTJ~N 5
START Or SECTION 6
START OF SECTION 7
TE~ETYPE & CLOCK TESTS
STMH ROUTINE

DCOKCD
DCOKCD

11/40~11/45 cPU EXERC ISER

,'NLIST
','LIST

MD.MC
ME

','~BS

','TITLE DCOMCQ 11/4"'~~1 .J CPU EXERCISER
','SaTTL SWITCi'! SEn ,Nt;
SW15-- .. HAL T ON ERROR
SW14 ..... l,OOP TEST
510113---1 NH I BIT ERROR TYPEOUT
SW12 .. - .. SEE NOTE BEL,OW
SWU--"INHIBIT TEST pERATIUNS
SW1B---R I Nt; Btl.L Oil ERROR
5W,,9 .. - .. SEE NOTE Btl.O W
SWl'lS .... -LOAD MICRO BRAK RtG PHER WI TIo! SW"17~S~00
SWrII7,.--TYPE END Of' PASS MESSAGE
<;W06---0 I SABLE CLOCKS
SW05--~RELor.;ATE USING ALI. DF;YICES ROUNe ROBIN STYLE
SWQ!4--~USE RANDOM DISK ADDRESS F'OR REI.OCATjON
SWrII3",--RELOC:ATE USING DEVlct SEI.ECTED IN SWI2!2-SW00
SW02 .. SW"0......
0'CP
1-RK
2-RF'
3!1AP
4-RC
I
5-00 NOT USE
6111RS03/RS9"
71!RESERVED rOR fUTURE USE (IS Cp)
.NOTE 8ELOWi SW12 AND SW"9 CONTROl. PROGRAM REI.,OCAT I ON [lESR I BED BELOW,
SW09
RELOCATION
SW12
NONE
1
1
NO REL,OCUION ABOV£ 28K
I'J
NOT USED (00 NOT USE)
1
1
~I.L MEMORY
o

8

9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
3,
38
39
4O
41
42
43
44
45
46
47

'Ie

49
50
51
52
53
54

DCOKCD
DCQKCD
55
56

5,

58
59
60
61
62
63
64
65
66

6'

68
69
7121
71
72
73
74
75
76

77
78
79
80
81
82
83
84
85
86
87
88
89
9121
91
92
93
94
95
96
97
98
99
10121
101
102
103
104

1"5
106

un

108

,
,
,,

"

'"

','S aTTl, DEriNITION' & ASSIGNt1ENT!
,GENERAL REGISTER ASSIGNMENTS
001l0"\?
090001
O001/1O2
090003
"210004
800805
00S006
0,,0007
003000
09"00l
0,,01210"1
"00"03
000"04
SIIl0S05

R"."'"

Rid1
112d2
R3:."3
R4." ..
R5d5
sPd6
pCd7

Rl"-""

RU-U
R12-"2
R13-X3
R14-""
1115;1,,5
'''LO~T!NC POINT REGISTERS

2I9011H,0

Ace .. ""

11/40 .. 11/4 5 CPu ExERCIsER
DErl'HTIONS & ASSIGNMENTS
S0B2I0:!.
01110"02
SS"'H'3
1211/1""04
"013005

AC1"""

AC~-l2

AC3lJ!C3
AC41J""
AC,IJJC'
'STACK PoINTER REGISTERS

01/1 0 11H'l6
09"00 6
1/10"006

IKtRNEL STACK POINTER
,SUPERV I SOR STACK PO INTER
'USER STACK POINTER

KS"-U
sS"d6
USP""6

ISTATUS REClsTER (PSWf BIT ASSiGNMENTS
1/11/131/101
"9B1/I02
0,,9804
09"910
0210020
01/10340
0210300
188"240
"1/18200
8113140
01"100
"9°000
0400£10
1,,0900
11l9"1/1"0
"1"9"0
030181".'
09413£10
"1/I0iHH
00°1/110
02101/11 4
"0"014
11l1ll""14
1211/180 2 0
11121"024
0,0030
",8034
181",,60
11100064
1111110'''0
"0",,,,4
0,,01"'0
"111"104
0121212",4
OO"2"4
0,,0210
0802"0
0002 4 0
"802 4 4
"1/1"1250

e-l

YIJ:!
lU
N1J1"
T-28
PRTY',34"
PRTY6-3""
PRTY'-240
PRTY41J2""
PRTY3"140
PRTY2-U"
KH .. S"0000
SHd40,,1/I0
UH,,""0I'JB"
PKM"iI"""""
PSI'1,,81 111 """
PUMIII030""S
II(C .. "041/1111,,
,yECTOR ADDRESSES
ERRYEC- 4
RESVEC- 1S
TBITYECd4
TRTHC- 1"
BPTVEC- 14
!OTVEC_ 20
pfyEC- 24
["'TYEe- JI/I
TRApYEC~J4

TKYECTPyECPRVECPpVECLKVECPLKVECRfVEcRSyECRCVECRKYECPI RVECz
rPEVEC.
MMYEc.

6"
64
7"
74
1021
11/1 4
21/1 4
204
2121
22f1
240
244
251/1

Ie !lIT
,v en

'i

IHT

IN lilT

"T'

BIT
'PRIORITY
,PRIORITY
,PRIORITY
,PRIORITY

LEVEL
LEVEL.
L.EVEL
LEVEL.

,PRIOR!TY LEVEl.
I KEI'lNEL MOOE
'SUPERYISDRY MODE
'USER MODE
,PRtY I OUS KERNEl. MODE
,PREVIOUS SUPERVISORY MODE
,PREY I OUS USER MODE
'SEI.ECT R1" .. R15
, ~DDRESS or ERROR VECTOR
'AOORESS 0' RESERVED INST, TRAP VECTOR
,.DDRESS 011' IT' BIT TRAP VECTOR
,~OOREss or 'TRACE' TRAp VECTOR
,ADDRESS
'BAEAKPOINT' TRAP VECTOR
'ADDRESS OF lOT TRAP VECTOR

or

::gg~~;~ %~ ~g~E~E~~b~

TRAp VECTOR
I ADDRESS or TRAP HeTOR
, AODRESS or KEYBOARD I NTERRVPT VECTOR
'ADDREss or TTY PRINTER INTERRUPT VECTOR
'HI~H SPEEO READER INTERRUPT VECTOR
IHIIiH SPEED PUNCH INTERRUPT VECTOR
'~DORESS KW11"L I.INE CL.OCK INT, VECTOR
'.DORUS or KloIll"P CLOCK lfojT VECTOR
I Rr OR RSI/I4 VECTOR

IRC VECTOR
IRK DISK VECTOR
'ADDRESS or PI RQ VECTOR
,ADOREss OF' fLOHING POINT INT. VECTOR
IADDRESS or MEM MGMT ERROR TRAP VECTOR

ncOKCD
i)CQKCD
109
110
111
112
113
114
115
116
117
lie
119
120
121
122
12:5
124
125
126
127
128
129
130
131
132
133
·~I

1" ..
136
137
138
139
14t1J
141
142
14:5
144
145
146
147
148
149
150
151
152
15:5
154
155
156
1 57
158
159
16t1J
161
162

OCQKCD
DCOKCD

5f~1~iH~~~ ~P~s~

~RCI5ER
-;~MENTS

177400
177411)2

171'11/'"
177406
177410
11741il
17'46"
17'''62
177464
177466
17'14'"
1774<40
177442
177<146
177450
1714"2
,.7671"
1,6,,,2
1,67""

11/~i1_11145
OErl~lTIONS

CPu E~ERCIS£"
ASSIGNMENTS

a

17740"
171"2
171 ,I.

17'".
17'jlllJ
177ft2

.Rr REGIl';TrIlS
Rroes.
Rf"WC.

177,6,
177,6 a

"re",*.

11~6.

177,66
17'47,

ArOA"1
""OAE·

'RC "UlSTERS

"c....

17714'

1.,,.42

IIICOAI
IIIcee.
RCIIC.
ftCCh

177,'It
11"!'
171,52

"., •• REGlsTtRS
ftP.CSJ,· 116,111"
,,'4We. 17!1812
RP.8A- 17 ••

•• Se p .74

HACyll 21(655)
IIP40Sh
".OA'
ttP.OS1,
.pdUIl
",.ASIIP.I. ...
"P40F"

176",
17 6 U.
1,61 11
116 U

~:::i:

17&'32

I AP",R~SS OF
'ADDRESS or
'ADQRUs of'
'AOQRESS OF'

STATUS Rt:G t STEil
STACK I.IMIT REGISTER
PROGRAM INTERRUPT REoUEST
MICRO BREAK REGISTER

, ADDRESS
'ADORESS
'ADORf;1S
,ADORESS
, AOQRE;5S
'.DgREts
,AOIJRtl$
,.coRU,

OF'
OF
OF
OF
OF
OF'
oF'

'ADORUS
'ADDRUS
IAooRtiS
,APORESS
'ADORUS
.AOpRElS
,ADDRtss
'ADORUS

0'

0'
0'

KWU'"!. STATUS REG.
HIOH SPEED REACER CSR
HIGH SPEED RUCiR DATA BUr
'oUCH spEED PUNCIoi CaR
HIGH SPEED PUNCH 8U'fER
KEYBOARD cSR
KEYBOARD BUF'FER
TEI.[PH INTER cS R
TEI.,[PR INTE;R IUF r[R
MEM MGMT RrG I STER SRe
MEM MGMT REG SRt
MEM MGMT REGISTER SR2
HEM HGMT REGISTER SR3
CO~SO~ SWITCf.! AEGISTrR
CONSOlo OISIII..Y RE~ISTtR
I.,INE PRINTtM SIAT\,!S REG
LINE PRINTER OIoTA OUf"F'ER

'AOOR£lS
IADQRF;SS
,AOORESS
'AOOREII
'AOoREn
,AOOREI6

0'
0'
OF'
0'
0'
OF'

RK .. U
RI( .. 11
RI( .. U
RKdl.
RK"l1
RK.H

IAOORESS
'ADORU_
,AOOR£!5
.AOORC;SS
'AOOR"S

OF'
0,.
oP'
Of'

AF.U DISK MEMCRY AORiREGi

0'

,ADORUS
IActoRESS
.AOORESS
IADDRESS
IAOORESS

0' RC .. U
or RC-1\
0' RCd"
Dr RC.U
OP' RC.U

IRP"

,woNO

17671"
176712
176714
176716
176720
),7 6 722
176724

RrOt STERS
RPOS!!

116f1l

"prRI!I

176h;
176'U
1769,..
176J1.
17 6 ,22
116'241

"'Cflll
"pVC.
""..
It'CAII

"PO"

0'
0'

0'0'
Of'

DISK ORnE STATUS REGISnR
0151( ERROR REGISTEIII
DISK CONT. ANO STATUS REG.
DISK WORC COUNT REG,
DISK BUS AODRESS RtG,
OISI( AOORES~ REG.

RF'.U DISK CONT, ANO STATUS REG.
Rr.11 DISI( WORe COUNT REG I

R''OU DISK AOO~ESS REG,
RF OAE REG t STER

1.00K AHEAD HEG I STER
DiSK .OORES~ II!G.
DISK CONT I AN" STATUS REG I
DI 5K WORC COU,.T REO,
CURRI!NT 0 I SK AOR IIfG,

cst

REGllTtR
COUNT REIIlSTE;R

11itU, ADDRUS RrGI~U:R

UJ'~

PAGE.
,OUIRED SteTO,,/TRACK REGISTER
.OUte; ADORUS ",GISTER
'DRIV,; STAliITUS R[I!ISTER I i
,£RIIIO" RIGlSrE" '1
JATTENT ION SUMMARY
II.OOK AHUD IItG IST[R
,or'stT RUIST£R

,,,1111 HASS BUS CONTROI.I.ER IIIEGISTERS
RHeS2' III
I RPUe

0'

'ADOIlt~S$ 0'

U""

IRK REGISTERS
"KOh
IIKEII"
RKCSRKWC·
RK9A"
"KGh

PAGE 3
,RP YF;CTOR
'RP04 VECTOR

,REGISTER ADDRESSES
PSW·
117776
177~74
Sl.".
171f72
PlRQ·
~:JRfAK. 1711711J
CPUERR- 1111 6 6
[RFlREGr 1",4"1
LKS117546
PRS.
177,5"
"R817'1"2
,PSIII
1"".
I'Pa,
177g56
TKSI!
111 60
rl11l
1723610'1
1776611l
1722"0

SII"DRIIl:1 7 22i10
SIPDR1"172202
SIPDR4"'1 7 2 2 :a 0
5 I POR6 8 1 7 221 4
5 I POR7:1 7 22i 6
S IPARI1l"'1722411l
SI PAR 1"1 7 2242
SIPAR4"1722511l
SIPAR6",,722S4
SIPAR7"1 7 2256
I(OPOR0"17232 0
UOPORIll =177620
SOPOR"81 7 222"
KOPAR""1 7 236 0
UOpAR""177660
SOPAR""1 7 2260

~1~:=~aH::~

u1PAR 48 1776s0
UIPAR6"1 77654
UIPAR7"'177 6 5 6

I INITIAL STACK POINTER SETTING
STKPTR. 500
KPTR"
6,,0

1e011l11l11
e4"0011l
1Il211l1/l011l
01i1J0011l
00 4 9021
e82,,"0
09UJ0 0
ee"4"21

IPROGRAM Sl'ACK pTA
IKEHNEL STACK PTR (USED BY KERNEL WHEN
IPRQG IS RUNNING IN OT~ER THAN KERNEL MODE

1M lSCEl.l.ANEOUS BIT ASSIGNlIENTS (USEQ IN OPT,CPI
I(TOPTI: 100911111l
I BELOW B IT ASS I GNMENTS ARE USED
, I N THE CPCHK ROUTt NE
EISOPT" 040111""
IA BIT rOA EACk OPTION PRESENT
rpoPT- 02",,11l0
lIS SET !N OPT ,CP (000 BYTE)
rI SOPT" 01""°0
KJOPT," 00 4
PI.KOPT" 002'111"
I.KOPT" 001808
TTOPT" "0 1'1 4 III Ii

9""

255

256
257

258
259
260
261
262
263

264

265
266
267

268
269
270

DCQKCD
DCQKCD

271

"011l11l01
"9~ef1!2

IBIT ASSIGNMENTS USED IN OPTIONS
PRor-'T" "011l""1
pPOPT" 09001112

18CI1lClkl
III 4 1\1 III 0 "
0200011l

B!T15"

"0041\1~

elTh
e1T6.

",,3111i1ll
11l112:000

Ul44"1Il
1e 4 11l00

""",,1\14

11/4"-11/45 CPU EXERCISER
nErI'lITIONS & ASSIGNMENTS

UH4 8
elT13·
PIR4-

18011"0
40 III II"
UJI1l0"
49'
18111
1""0"

J INSTRUCTION EQUATES
HI. T.
TRAP
SCOPE'" EI'IT
TypE"
lOT

II.EVEL 4 PROGRAM INT, RQST,

(F"OR PIRO)

'14I.T IS • TRAP INST TO TioIE ERROR ROUTINE
,SCOPE IS AN EMT TRAP

8COKCO
"coKeD
212
273
274
275
276

217

278
279
280
2 81
282
283
284
285
286
281
288
289
290
291
29 2
293
294
295

~~~
298
299
300

3h
31il2
303
31il4
305
306
31il7

11/~",",11/45 CPU E> ReISER
OEr Pll TIONS & ASS! ,NMENTS

01il0J20
1330022
""0~?"
i}01il 7 ;:>6

','-IOTVEC
','HoRD
,TVPE
':HORD
PRTY4
','HORO
PDWN
','WORD
PRTy7

00".2ftl
002564
"00200
"00610
"003'"

20M3"

::m~~:

::~g=g

Il"Hl~3(12) t ~OW£R f A\ ~t;O I <1'>(12)

pARERR'

','ASCli

<15>q2)' P~R I TV [RROR' <"'>(12)

IRtsTART TUT

DCOKCD
DCOKCD
339
34"
341
342
343
344
345
346
34,
348
349
3~'z

351
352
353
354
355
356
357
358

11/ 4 21-11/- CPU EXERCISER
MACY11 27(6551
"RaG INDle Tr'IHS & SCOPE ROUTINE

l'~"i:5111

<0i'7:52
elilfl7:54
e01il136
"latH

4"

t~"Q!142

kle0150
000152
,,0"755
00075.,
0"0' 613
,,"0761

002!1il00
01il0000
0000"'0
",,00n
00011100
020040
"51117
00501!)
134
0Q10
IIlQlIll
1Il00

042440

051122

001il
0"'0

U,53

pAGE 9

','SBTH. PROI$ I NO I cATORS & SC;OPE ROUTt NE
J THE BELOW TABLE CONTI. I NS [RROR I NFORMAT I ON NEEDED Tn REPOI< T
I MEMORY ERRORS DETECTED D,UR I NG PROG~AM RELOCA T! ON, THE ERReR I NfOR'MATION IS P~ACED IN THE UBI,> n" -",- 'SAVVAI,,' SUBROUTINE,AND
It S PROCESSED BY THE I PNTF>l" ~, SUBHOUT,I NE.
ME"TBL' ','WORD
13
I CONT A INS 'GOOD I ADDRESS
':WORD
"
,CONTAINS 'GooD' DAU
;WORO
"
'CONTAINS 'BAD' DATA
','WORD
'CONTAINS 'BAD' DATA
ECHO ,,'WORD
I LOCA U ON FOR ECHoED CHARACTER
DEVERR I ',' A!lC II
ERROR'
CRl"f,
S~'SHI

,ASCIi!
','ASCIi!

~~~~TRV I ~~~~~

PEFLG I

','BYTE

~S~~~

EAB ITS,
OPT, CII' ':woRD

111139762
011'0164

4"SEP.74

<15><12>

'\ '

o

'CONTAINS DEVICE Ie fOR ALI..
,CONTAINS DEvICE RETRY COUNT
IPARITV ERROR fL.AG

13

"

,CONTAINS EA BI'rS fOR DISK XfERS
'CONTAINS OPTION A~O CP INDICATORS
I EVEN ByTE I "=11/ 4 0,6=11/ 4 5
'000 BYTE I 200&I(T, 10"-[1S
14,,811/45 FPP. 20&11/40 f IS
11".STACK LIMIT (K.I)
14zKWll-P ,2 .KWll~L .1-CONSOLE TTY

35 9
360
3 61
362
363
364
365
366
367
368
369
370
371
372
373
37 4
375
376
371
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392

DCOKCD
DCOKCD
39 3
394
395
396
397
398
399
400
401
402
4Q13
41/14
405
406
407
4218
4£19
41O
411
412
413
0114

415

~I'lJ166

OPT IONS ,,'WORD
PROAT I
"ByTE
PRSYNC' '~BYTE

1'l01N'I2

0""000
1il01
000
02107.,0
00"
00"
000000
"0011100
0",0000
000000
kl010E10

HHON.
OV.
DEVID,
LTICKS'
PTICKS'
ICNT!
SF I LI.S I

011'1004

0i1000"

fACTOR' ','WOR 0

elilUl06

01il0000

REI.Rl.

00~01"

0111"000
000000

fRIUD ','WORO
F'RSTMEH, ':WORD

122137
Iilrlll00!)

,SCOPE (EMTI SERVICe ROuTlNE
I TH I S ROUTINE ALI.O~S THE SUBTEST TO BE CaNT I NUOUSI. Y LOOPED.
I (OR NOT ITERATED) BEFORE BEGINNING NEXT SUBTE!lT
scoPh I CI'IPB
'10. "OPT. ep
BN[
us

01i:-37113
.a13;>!711
0"o77",
0U'I711
"",o772
000714
01110716
"0~00111

111,,1012

2h014
""1022

,MEM HGMT ONion: IND 1/0.0~/OFF
,QUICK VERIfY MODE IND
JcorHAINS OEVIOE INOENTIF'IER
'CONTAINS I. CLOCK TICK COU"T
~WORD
,CONTAINS P CLOCK TICK COUIIT
','woRD
'CONTAINS PASS COUNT
':WORO
,COfolTAlr-jS fIl.l.S COUNT (2) IN 000 BYTt
,'WORD
'AND fILLER CHARACTER llill IN EVEN BYTE
,'ILI.[R COUNTS, VT'" .2400 BD- •• VT0' '1200 BO-2. VT05 .600 BO-l
,
I.A31S 'lli1 BO-21I.A~'S U50 BD- 4. I,A 30S '30fil BD-12
ALI. \I ALUES ARE OCTA~
I

00001111

090764

':BvTE
','BYTE
"WORD

005f/l37
°12737
032766

~:I::: :~~;g~
0012154
i1HH~62

;;101 12164
eiiJle 6 6
001"'72
1311li1l1le
.,!iliU6
00i110
\l01116
0Q11120
001126
elU130
11101132
001134
11J~i136

0"i14<4

",,,1146
11101150

0327:'57
OO1416
01 0 116
Ql1Ql137
1637~7

032n7
001403
113737
0QJ00f!'2
rlJ327:l7
"e1006
"85327
0f/l11l0·0
1If/l1353
11 3 767
01161'l1
08",7<46
000111'0

177766
177777
004Ql0t!
0,4S11I8
11l4000t!

1777 ....
0ill1J01l2
17777 6

171'"

10S,

15.
2$'

0111 10 III 6
11l010fil ..
Ql0" .. 0111

11101006
1'17570

177570

177770

004000

177 5 70

5$'
0Su'0

177766
7S1
lTeNT I

'CONTAINS RELOCAT ION fACTOR, SUBTRACT # IN
,,.A(;TOR fROM Pc TO GE:T Pc 01" OR I G COOE
'CONTAINS RELOCATED Rl (THE Ri OF' THE
'ORIGINAl. CODE MOVED)
I COl'l14 I NS fI RST ADRS Of CODE TO BE MOVED
'CaNT AI NS LOI>IER REI.OCA T ION BOQNDARY ADDRES~

4 .. Sf,;P"7 ..

2.1,53

PERI. TEO

PAIIE 10

eLF!
"IOV

eIT

,*C"UERR
'.l,UERRREG
.4I1lfil0.2, SP I

IlEO

15

91T
BEQ
MOV
MOY
SUB

:::I:~ ~::::R

,WAS REGISTER SET BIT SET
'BRANCH I f NOT
,RETAIN REGISTER SET
,CHECK BIT 14 (CaNT INUOUS 1.00P )

Al' IS!'

'LOAD RETURN ADDRESS

ell

4S

R1 "'8E~Rl

~,f.CTOR'''RELR1'Re:I.Rl

CONTAINS UNRE\..OCATED R1
PDPl1/45 MICRO BREAK RE,!?

!ll400.USWR

,~OAD

9EQ
MovB
RTI

.,SWR. ~'USREAK

SNE

!ll40fill1l.·.SWR
75
( PC ••

'1.01.0 MICRO BREAK REG '" 1 TH SR~-7
,RETURN TO SUBTEST
,SUSTEST ITERATION DESIRED?
,BRANCH If NO ITERATION DESIRED?
IO(CREMENT SUIHEST ITEAAT ION COUNT
'CONT ~ INS SUBH:ST ITERn IOh COUNT

ell

3$,
45.

0
0
13
0
"
"
1 III 0fil

','WORO

MACYl,l 27(655)
11/4''''.11/45 CPU EXERCISER
PROC; INDICAH1RS & SCOPE: ROUTINE
~01024
~0H'3i11
JI2l1~36

lCONTAINS NE;XT DATA TO BE READ
ICONHINS SYNC COUIIT

','."0

ell

DEe
48

BNE
MOVB
MOV
I3R
','WORD

:!Is

25
."nCtiT , n
(SPt,Rl
25
4fil

,RESE TITER AT I ON COUNT
,GET ADDRESS OF' NEXT TEST

'1cnKCC
J:;rJKCC
416
417
418
419
420

421
422
423
424

425
426
427
428
47.9
430
431
432

11/40-11/45 CPU'
RELOC ROUTINE

,'S8TTI.
1l01256

113737

0r.!11302
11J01306
911J1310
0(111312
111111314

"0"761

1!124042

451

,,1111316
90132'"
"01322

"52
0153
454

""1332

161111371
:l.6?11J7

081342
IIJh3"4
i'l01350

lfiI5237

447
448
.... 9
451!'

001326
~h33"

474

R2, R4
II,F' ACTOR

11$1

!lIT
RIT
8EO

MOVe
CLR
JSR

177510
300762
000112

Rve

'''''''',I'#Sw R

12S
1110,II,5wR
1S
-UWR ,II,OE\I
~,!:"Bp's

Pc,100tV
2$
(RU., (A2"
Re. R3

ISAVE RETURN PC TO NEXT SECTION OF" CODE
ISET rlRST ADDDRESS
IR4 CONTA I filS I-As1 MEMOR\' ADDREss
JEl
' I I r SW"3=11 OR VIA ALL DEVICES IF SW"5=1,
,THIS ROuTINE WRITES THE DAr' ~;:,
_ RELOCAHD ONTO THE SEL.ECTED
'DEVICE AND AFTER rn'lPLET10I' :IEADS THE DATA BACK INTO MEMORV WHERE
,TIoIE RELOCTED OA"A lS TO GO, ArtER THE READ THE ROUTINE RETURNS TO
I TIoIE CALLER I THE CAI.I,.ER COMPARES THE OAT A READ BACK,
IJEVICES AIIEI
I hKES ERROR EX IT
I
!'I-e P
1-RK
2·R"
,-RP
4-RC
'5 .. 00 NOT USE
6-IIS"4
J
,RESERVED rOR FUTURE USE
7 .. eP
I
, INPUT PARAMETERS,
J BUS AODRE.SS FOR WR 1TE
I
R0
'DON IT CARE
1
Rl
IBUS
AODRE-5S FOR REAO
R2
J
'DON IT CAKE
R3
1
,BYTE eOUNT
'DOII/'T CARE
R5
II,.OADEO
EAB I TS
,DEVICE IDENTIFIER
!)Ev

477

478
479
"8il

4e1
4e2
483

4e4
485
4116

4e7
4e8
489
490
491
492
493
494
495
496
497
498

p"

499
50il

501

'OUTPUT
,
R0

502
51113
5o"
505
51il6
511l'
508

R2
R3
R4
R5
EARlTS
Bl T

'V'

5!IJ9
510
511

512
513
514

515
516

01111 4 20
00i424

0~i426

221434
"h 4 "2
91,,1 4 46

00471<7
01t:'546
052737
1<12731
1137~5

ICDEV,
01'02"1'
001'311'
001'151

e\H45il
~~i"54

016505
00U05

2le2266

52~

lOl1<156
.'U456
ll~i"'62
0iiJi464
1!0i466

004737
il126~5
009262
000207

002556

012737
1Il00261

000006

522
523
524

1777'6
ee"'57

lSI

02'63~5

517
518
519
521

'UpDATfD BY BYTE COUNT' IF NO ERROR)
I UNCHANGED
'UPDATED Ii'!' BYTE COUNT II F NO ERROR 1
'UNCHANGED
, CI,.OBB!RED
J UNOHANGED
, UNCHA~G[O
1 CI,.EARISE T =NO ERROR IERROR

Rl

JSII
MOV

"IS

BICB
MOVB
AS\.
MOV
eN£

JCI,.EAR 'T' BIT & SAVE PSW
ISAVE R5 ON THE STACK
ISET PRIORIH I.EVE~ 4
,I,.IMIT DEVICE SEl.ECT CoDE
,GET SEI.EC'rED DEVICE
IrORM INOEX POINTER
,Gn SEI,.ECTED DEVICE TABLE
,BRAIIICI< IF 1/0 DEVICE SEl.ECTED

PC,CI.RTBIT
R5,.(SP)
IiIpRTY4, ,IiIPISW
-3"e,fIllDEV
(II,DEV, R5
R5
DEv,BL. (R5) ,R5
25

,ERROR EX I T
,R[SORE ORIGINAl. PSW
,R[STORE R5
'SET
BIT TO INDICATE F"AII,.URE
I R!TURN

99S,
JSR
MOV
SEV
101lSI

PC,f Il RESTP5
(SP •• ,R5

'V'

RT!

525
526
527
528

OCCKCD
DCOKCD
529
53111
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
5 47
548
549
55",

551
552
553
554
555
556
551
558
559
56O
561
562
563
56"
565
566
56 7
568
569
51 0
511
512
573
'7"
575
576
577
578
5'9
5e0
581
582

J01 4 70
"01<176

1')000""

11/411"-11/45 cPU EXERCISER

,CHECK IF USER SEI,.E'TED DEVJeE IS AVAll.ABI,.E
2$1
MOV
IlIERRV£C.2,UERRVEC
TIME OIJT TR.P VECTOR
SEe
'S!T 'e' IN PSw

lsn

HAC'fl1 21(6551

""SIIP.,74

U,53

PAGE 14

! O,",EV ROUT! NE
0,,5715

000012

01 2 737

~1!l'52H

~0!l!!l!!H

Q!01512
0h51"
~0i522
1111111524
",U53e
001 5 32
Ilh536
"111154"
2101.546
12I11l1552

103020
1Il327:!17
"014£13
11115237

011100""

17157"

"il1554
12I1H562
0111564
"IlI1566
0115711l
0015 7 2
",,1 5 '14\
00i60"
031606
.,01612
d01614
1Il01622
011l162<1
00163"
£101634

112737
010427
"'''Ill 000
011'!446
"06216
01il541 6
012667
113737
1Il13727
"011l0kl"
123727
"0H1!!
00 6 367
""6367
"06367
006367

01'J1511l0
eH5£H

0111640
I1H'l1644
0"i650
1Il0i65"
0/1Ji656

::l:~:

8U672
0"~676
001102
00171116
01131712
0e1716
011112"
011!i724
001730

e""""l
1137"~
1il06305
"16567
00"004
"Ql0741

"12135
1112735
012535
"12546
"12776
862716
"12736
8"4H7
01 6 7 35
e167~!1

8115~7

1Il0e751
00Q!157
03111602

"e01l1e3

"1lI016Ql

201,

us,
1Il1'Jl2l 322
"o0751
0"'11762

0",:,772

0""757

"00"04

1777 6 2
117756
177752
1777 4 6
000"21
011300"

ilBU76

0"1748

011 '52

812716
ile00C2
1Il155f:4
10"011
10""0"
1Il1653'
1627£15

""1 7 56

1"53~7

~8~
,,00"80

351

MOV
MOV
MOV
ADO
MOV
JSR
MOV
MOV
MOV
MOV

~g~

1113,UiORETRY
R",.PC.h
III
R.,.CSP)
(SPa
(SP.
(SP".9S
",DE;v.tt,DEvlD
.,EABITS. (PC,.

"

",O~V,1II4

12$
115

11$
l1S

11$
1121J tt IR5)·
1111"000,,, R5).
(R5.","(R5).
CR5.·,'"(SP)

:~~;;~~PI
IIpRTY5,flSP)·
PC ,£ISK"DR
CYI.ADR,f(R5).
TRKSEC,,(R!l)·
(R51,f'BUSADR
R8,flR5).
95,f(R') •
2(R51,f(R5).
WAnIO

IR[rERENCE A DEVICE REG
IReSTORE ERRoR TRAP VECTOR
I NOTE I MDV DOES NOT AF'F"E:CT 'C'
,EVER ONWARD Ir IT's THERE
I 00 NO' REPORT ERROR 1r Al,.l,
I STEP TO NEXT CEv I tE
JGET DEViCE 10
1rOAM INDEX VAI,.Ur
,GET H S NAME
ITAKE [RROR EXIT
I SET ERROR RETRY COUNT
I SA VE BYTE COUNT
1FORM TWO'S COMPI.EMENI
,WORD COUNT
lAND SAVE IN 95 BE~OW
ISET DEvICE IDENT
ISAVE [ABITS IN 11$ BELOW
IBRANCIol If DEViCE Is NOT
IA MASS BUS DEVICE
,SHIFT EA BITS TO
IPOS IT ION e.9
'FROH " .. 5

:g~TAp~~:~ J~R~I¥ ~~~ ~~hFV~~~~)
,I,.OAD OEVICES UNIT /I
,GET OE:v ICE's VECTOR ADOREss
IL.OAD VECTOR
I AND PSW ON INTERRLJPT
IGO GET RANDOH DISK .. DDRESS
'SET 'CYLlNDERI ADDRESS
ISET 'TRACK/sECTOR' .. CDRESS
I SAVE ADDRESS OF' BIiS .. DORESS REG
,seT BUS AODRESS
IS £T WOR 0 COUNT
,AND SfT COHMAND
IGO WAIT rOR WAITE TO F"lNISH

3eSI

RR

"5,

MOV

11415 liSp)

,ADJUST RETURN PC TO ~11 BELOW

MOV
",PL
HL.T
MOV
SUB
I)ECB

'-IR5I,R4
5$

IGET AND CHECK ERRCR BIT
,gRANCIol 1F NO [RROR
IREpORT ERROR
IRESET DEVICE'S CONTROL.LER
IRESET TASl.,E POINTEA
'RETRY WRITE COHMA~D

4111

"""0"6
08"012
"'00760

','WORO
CHpB
BI.E
ASL
ASI.
ASL

"108 35

0118002

MOVS
MOV
','WORD
MOV
ASA
",Ee;
HOV

,51.

12S1
001732
00""02
00"2<1O
"00222
000306
00"310
0131364

(1112c R"
.ER"RT, "EARVEC

21il5
BCe
BIT
1140.",,5WR
145
SEQ
",Ofiv
INCB
15
BR
(IIIlIDE;V,R5
MOVB
R5
,SL
DEviCE; (R51, O(VNAM
MOV
TYPt,NODEV
995
SR

~g~B
111'

r1J167~5

IlBi'44
~"r46

14S1

""4156
0323"6

1'116535
1'100614

081732
301 7 36
:.I0{14i1
001742

TST
.. OV

RTI

6(R5) ,(II(R5)+
111 2 ,R5
tiIllIORETR'!'

DCOKCD
uCGiKC[j
583
584
565
586
587
588
589
590
591
592
593
594
595
596
59,
598
599
61210
61211
6 Ii'! 2
6"~

6121-1
6",
61116
6121'
,
60.,
61!IJ
611
612
613
614
615
6i6
611
618
619
620
621
622
623
62-1
625
626
621
628
629
630
631
6.32
6J3
634
635
636

"'.

DCOKCD
DcOKCD
63,
638
6 39
641!l
641

i5~ie·~5Gg N~PII

F:RCISER

301162
01/11764

1111111347
1II1/106:H

01!11766
l1Iei174

112737
162705
012735
016735
O16735
[Hi5!7
0ilil235
016735
816746
"56516
"'12615
11I12I1!l240
01211117:51

IiHH'111I0J
000012
0e211J 4 6
f1I11I0225111
1!lfiI2252
01112254
01112256
01226111
1112262
00226'"

eB""~0

1IlI1lBIJY1k!
1633"1"
1633'S0
11771 4
020000
171 1 '12
17031'"
176400
17641il0
1711"5
17 1i'!.3' '"
170-100
1'0 "Ii'! 0
177777
171777

MAC'Il1 2" .55)

CIiH!il~1Il

25,
MOY
CYI.ADR I ','WORD
MOV
TRKSEC I ':WORO

AU

,~=g=o

-:WORD
','WORD
','WoRD
"WoRD

~'WORD

','WORO
"WORD

~'WORO

'~WORO

0B.,0"'"
11102306
0B2330
"'023'52
lllfil23H
0011100"
0B24"10
"1110 S0111

DEYTBL 1 ,WORD
... WORD
.WORO
,'woRO
"WORD

1i!I1l2306
BI1l231fc'1
"02312
11!22314
"'fc'l2316
.,1112321!l
0fc'I2322
011J2324

IIJIB220
171412

RKTSL. 1

177~r/J6

1"""~

~p346

1l1l'?35e

el/Je0~1

ICONTAINS TWO'S

4.SEII.74

11153

CO~P

WORD COUNT

RrTBL.1

1,U18
l1Uefc'l
116,01i1
177:1'"
11"'37111
1111."'1
l1U08

.,
-1

:::~: tl~n~~
,RrDAE LI"'ITLR

:=~g:\ l~7fi~R
IRII'DA I.IMITER
IRCOA I.IMITER
,RCOA ~IMIT[R
,RP4CA LI"'ITER

:~:ti~s~ Rl~l~ER
I
,RIOA LIMITER
'NOT usED
,NOT USED

DtVlCE H81.ES

e

IRESERVED 'OR RP04

RKD~

RKDA
RICBA
RICWC
RKCS
503
58!J
1

','110"0

RFVI!:C
RfDAE
RF'DAR
RreMA
RF'ioIEj
RF'DCS

: WORD
• WORD
,WORD
,WORD
• WORD

AND , fR 4Ci< /SEClOR, ADDRESS LIMITE:R5
'NOT USED
'NOT USED

17'1"2

RKVI:C

"WI'IRn

,SrT T"ACK & SECTOR •

I.

PC

',woRD
':WoRO
','WORD
"WORD
:WORD
','WORD
':WoRD
','WORD
,'WoRD

"AIi( 16
,SET CYI.INDER ADORESS •

'8, CPC).

"'0. fPC
"

.WoRD
'~WORD

17'<1"4
0B"503
11J11I11J5f11\i
1!0e001

1 714t.2
1774"'''
1i'!01!l1Q'3
1!i/J11J 1,,!I

1 illS

~WoRD

~WORO

17141"

011l021i'!~

4(R5", .. (1I5'
llliIORETRY
6S
405
<5 P I.,R5
US,RIII
10 S• R2
PC.RESTPS

RKTBL
RfTSL
RPTBL
RCTSL
Ii'!
RSTSL
III

"WORD

177~li

17'-1'"
171<166

I GET & CHECK ERROR B IT IN COM"IAND REG
IB"ANCIoI If NO ERROR
I R[POR' ERROR
.RUET DEVICE'S CO~TRCLL.ER
I RETRY READ COJolMAND
,3 TIMES AND I' STILI. FAILS
,TAKE ERROR E XIT
,RESTORE R5
I ADD BYTE COUNT TO WR ITE AND
,R£AD ADDRESSES (fOR CHE:CKINO)
,GO RES'ORE 'T' IN PSw
ICI.EAR [RROR INDICAfO~
.EXIT

I HBlE 0' otv I CE ,Cyl.l NOEfl!
AORTAS I ','WORD
II
"WORD
Il
~WgRO 16335(j1
',-w RD
163358
"WORO
1,1,7-1
"
0
0201011

B.,2266
B02270
002272
002214
0B2276
0"'230"
11182302
0B23Q14

0fc'I233e
01/12332
312334
"Ql'B6
0023<10
002342
1110234.

,AOJUST RETURN PC TO 715 BEL.OW

I'(R5'.,R4
8S

fI"

-:S8fT!"

~1!l:?326

'115,ISP)

,SUBRQUT IN[ TO GEN[RATE RANDOM OSI( SUR' ACE ADO" ESSES
OSKAOA. 81 'f
':lil,.,SwR
IBRANCIoi IF USER OOlS NOT WAN'
2$
.RANDOM DISK ADDRESSE~
SEQ
flB,·(SPI
,SAVE AB ON THE S1ACK
MOV
,GrT I/O DEVICE 10
MOV
' .. CiVID;R!
,51.
'roRM INDEX INTO
"iI
,AORTAB BEl. Ow
ASL
R"
Rl,"(SP)
'PORM UNDOM 1/
ADO
(Sp.
Ace
(SP.,CYI.ADA
1MYYE "0 'CYUNDtR' ADDRESS
MOY
AORTAe CR0), CYI.ADR
IL MIT 'CYI.INOER' 'DDRESS
BIC
Ri,tSP)
ADO
(Sp.
ADC
($p •• , TRKUC
,HOVE TO ITfUCK/SECTOR, ADDRESS
MOY
(RII ••
TiT
ADAiAs (Rill, TRICSEe
BIC
'!"IHIT ITRACK/SEC' 'DRS
HOY
CSP.· ,".
,RUTORE
,RnURN
PC
RTS

6~2

643
644
645
646
647
64 8
649
6"1111
651
652
653
65"
655
656
6"11
658
659
66"
661
662
663
664
665
666
661
668
669
61"
611
612
673
6'4
615
676
611
678
619
68ft
6111
68 2
683
68 ..
685
686
68,
688
6!19
692'

.TAKE !;RROA EXIT
'A,TER THREE R[TRYS

','WORD

EXERCISER

1!2rll!lee

PAIiE 15

MOVS
SUB
MOV
HeV
MOY
MOV
HOV
!IlrT PAR BITS IN R~
16 "I.ACe:S I.EF'T TO R:5.H1
,CLEAR PAR SELECTOR BITS IN AODR!:SS
I FORM PIo!VS I CAL. ADDRESS
,IN Rl 4 R3
ISET OIGIT COU/I;T

'3,R5
R2
R3
R1
R2
R5
'S
",R5

lAND BITS pER DIG!l COUNT
IR2 WILl. CONTAIN DIGIT
,R3<00> TO 'e'
"C' TO Rl(15) & R1 TO ' CI
, 'C' TO R;'!<07>
IDECREMENT SHIPT COUNT

R2
R5
6S

ISIoIIFT DIGIT FROM
I TO <1'12-"111)

*26111,R2
R2'. (R'"
RI'I
C~vD I G
Pc I SRESTR
Pc

ISET SI>I,rT COUt.T

<1117-0'>

,CONyERT DIGIT TO AsCII
IMOVE DIGIT INTO DIGIT BUfFER
'DECREMENT DEGIT COUNT
,CONYERT NEXT DIGll
IRESTORE REGISTERS fRO!' SUCK

~.~

....

40
II

I I SP.t.CE'
TERMINATOR

,'Il'

16 B\T OCTAL. DATA TO AN ASCIi! STRING AND TYPE IT.
Il ') ~i) II? WP>4 "~E r~,'I'A
*DATA,'l2

CO~VERT

DcCKeD
DCCKeD
87"
871
872
873
B74
875
1176

11/"'1l-11/;5 CPU EXERCISER

JSR
"~31J4
~1!I31l1i:l
~"31l4

O,,4767
IiJS0f1Jkl4
111002'"

DCCI'\CD
DCCKCD
907
91118
909
910
911
912
913
914
915
916
917
918
919
9211l
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
93B
939
940
941
942
943
94 ..
945
946
947
94B
949
950
95 1
952
953
954
955
956
957
958
959
960

4"SE,.·74

11,53

pAGE 2:1.

PC, TYpDAT
,CONVERT UATA TO ASClt STRING

PC, C;NVOAT
TVPOAT, JSR
TV"E,DIGITS
PC
RTS

177562
I1IIlJ 111 74

'SUBRoUTINE TO COIliVERT A VIRTUAL ADURESS TO A pHYSICA~ AOORESS AND TYpE IT,
UDDRESS, Rl
ILOAD 1t1 WITH TIoI£ ADCRESS
MOV
'CALLI
PC, TYPAOR
JSR

8n

87B
B79
BS0
B8l
BB2
8S3
Ba",
BS5
S86
BB7
BBa
BI'!9
B90
891
8 92
893
B94
895
896
897
B98
899
900
9131
902
903
9 III 4
91115
9136

MACYl1 21(655)

TvPE SU8 R .I)T I NE

~flJ3116

IiJflJ4767

00 3 122
B"3126

flJIl0207

~00",,4

'CONVERT ADDRESS TO ASCIi! STRING
ITYPE AODRESS

PC.I:NVADR
TYPADRI JSR
TYPE, D I GBUF'
PC
I'ITS

177574
B,,311172

'KEYBOARD INTERRUpT SERV I C[ ROUTINE
001111;1013

CNTRLC a 3
NOP
MOV

i1I0~160

O1110240
013746
//l42716
022716
//lUS05
III III 0 IIlC 4
1110 5 726
1'.1011''''''
1Il000B2

01'.13162
003166
003170
1llIil3174
01!13176

122716
1Il1il101114
""""04
01115726
111001102

"""1'l15

011321110
0e321114
III 3210

112667
e""004
"00S"'2

175534
"0"'4"

111111313O
0:l3132
O03136
003142
003146
0,,315B
003154
11103196

°

TKlsR,

1I,1'I'\B.,,(S"1
1lI1YJ6SII, (SP)
CMp
'CNTRI.C. (SP)
1$
eNE
TYPE. CRI.F'

177562
1776021
//l1l11"!l03

~IC

1Il1I",52

T$T

(SPl·

,GET CIofARACTER
ISTRIP UNUSED efTS
IBRANCH IF r-jOT CONTROl.. C (tC)
,ECHO 
,POP CIofARACTER OF'F' THE STACI'\

HAl. T

lSI

0B0752

2S1

RT!

J RETURN

#1 5 , (SP)
CMPB
8N[
2S
,-y"E,CAL,F'
ISP ••
TST
RTf

, BRANCII I F NOT (CR>

(SPl·.ECHO
MOVB
,-y,E,ECHO

RT!

I ECHO (CR>
J POP CIoIARACTEROf'F STA~K
'RETURN

,ECHO CIofARACTER
IA[TURN

11/4""'11/49 CPU EXiRCISER
ERROR SERV I Cf: ROUT I NE

02 3 212
0S3216
""3220
O,,3222
003231'.1
11103232
003236
01113242
003246
"8 3 254
003262
003266
003272
",,,3274
00331"1"
30331"14
o"331,,,
003312
11103314
01113322
i1I03326
003332
003334
1lI1I3340
",03344
1'.1"3351'.1
"o3356
"IB3360
003364
0"33'"
003374
1IJ1II340111
,,"3404
01134111'
003 4 1"
00 34 16
01113422
003424
01113430
,,"3432
til0H36
0113442
1lI1IIJ446
iHl3450
083454
1'),,3460
083464
!1J"3464
003470
klllJ3476

00 5737
100"",,,
011l"'00"
S3 2 7 3 7
Bell17
1J,,4767
"1 3 71112
8,,4767
IB16767
81 6 7 6 7
BIIJIIl"04
//l1660~

124242
IIlBI'.IS0 4
0""7"7
"1 6 702
11,,1411
",,6302
01 6 267
811'.181"4
11114767
",,04'4
8,,0S0"
1'l1660:'

'RETURN TO pARITY ERROR SEf;VICE

"AS5 'I'

PAssEs Hun BE AT AN [VEN ADDREss I

~'"

9b.
988
989
990
991
992
993
994
995
996
997
998
999
10111111
1ii1el
111102
111103
101114
iIilPl5
1006
1007
1008
1 00 9

i"10

11"'361111
~"J6v16

01136>17

120

J0~614

050UlJ
le'!)
11150122
120
"0011107

,,113621
,,'3626
01113633
003640
11IG13642
003644
1'11:1652
"0:'1661/1
I"lJ666
flJII36H
1111113702
iIl0371G1
11JIIl3716
"8372"
"e3732
1383740
• III 3746
"111375(11

1011
1012
111113
1014

DCQKCQ
OCQI(CO
101'

:,016

10 17
1018
1019
1°20
1021
1022
1023
1024
1025
1 0 26
1027
102B

1029
111130
1,,31
1032
1033
111134
1035
1036
03
11038'
1039
134f1l
1041
1042
1043
10 ....
1S4'5
10"6
lf1J'"
1"48
1049
1Il 5 0
10'1
lIi152
1053
11115 ..
11/J55
1056
111l5?
1 05 8

1'''0

1IIl6Q1
10 6 1
1062
1IIJ63
1064
1065
Ul66
Ul67
1068

005015
L'J52111"e
" .... 52:'.1
",,,1522
05411;
"51520
020122
0411151~

043517
0"'50a
0321116J
020011
0211111 .. 03
03111161il
0n7'6

.,,"

1100075
ePl"
1100015

SUCCESS I
Z42511il
L'J45503
Pl'l7127
Vi04504ii
0"""0
11144124
054532
0211123
030040
Pl33e65
"'4052111

350440
04104111
11143/1 .. 0
i<1 2 )
I THE QUICK BROW,," "OX .,iUHPS OVER THE Lai!Y [lOGS hCI( '"2345~78' ",SS. i

HACYll 27"",

2S,

041'22
'''lf1J4101
052181
01.2
02011114
008101"
11I1l1lJ075

'ERRI'

'RIl,,,,
'PPC-'
<7>

"'1"

cl4l'

00"066

r/H!~075

',AICIi!

~~~~71

' vpo,'

PASSNO' '.Ascn
','EvEN
,ROUTINE TO TYI'E CO"T[NTS OF' O£VICr: REC IST[R ON AN tRROR
, INPUT'
IlNDn VALUE TO APf'ROPRI ATE OEV
I
R2

is,

~4751?

'~AlCU

','ASC II

17?1!.l2

11147522
1'1'00"1)
"'46501
"'''1517
11106516

,'ASCIi
,'ASCli!
,'ASCli
"ASCI!

GOADR I

REQ
MOV
Jill
oEe
!'INE
ATI

PAGE

111"

11['*°'''2),''3
'MEITeL,Al

','ASCU
A,DAUI ':ASC Ii!
BDADR I ','A'CIi

,GrT , OF' RECS TO TVP[
IG!T 'IRS! ADOAESS 0" OAT 4 TASI.E
IBRAIIICH If "'E"'ORY ERROR

25

~~~'~'~~T
Ae

,n'E DATA

11
PC

Tb'E."OADR
H V
(Rn.,Rl
(RUt
TST
PC""ADR
JSII
TYPi,A,OATA
MOV
IR3.·,R2
IlC, ,y,OAT
JSII
n"E,BDADR
HOV
(R:Stt,Rl
(Rl •
TST
JSII
PC. ,'II' AOR
TV"E ••• DAU
MOV
(RU.,R2
JIll
PC, "POA T
PC
"TS
';ASCIl

."

.GlT 'I"AOM' ADDRESS
I ADO 2
'TY,E ADDRlss

,OIT ""0"" DAU
,lY'E tATA
,an "0' ADDRUS
IAOO 2
,TypE AODAESS
'GET ITO' DATA
nYPE DATA

'ERROR ON "ROCRAM R[1.0CATI ON' <15><12>

'GOOO AORS-'
'D4"I~

'9"1 AORS-'

','EVEN
1l!0H56
034160
0i1l4162
U"16<4
004166
0341'"
1I!11I4172
ee"174
fU4176

fIl3006S
1/145522
043122
051/1122
fl'41522
05""22
051,22
1/!5"13f1l
k':04651!J

0~4201/l

11180001

HJ"2~2

21000116

'):2"2214
.J4206

~\l~0"6
~:!,('I/l10

;:1l4~11/1

i<,2)' ",EMORY ACOMUS IS '

filI51101
05Ul1l5
tl4'1516
042524
1!14H41l1

NOTF'NO' ','ASCIi!!

<1 5 >(1 2 )' ,.AR lTY tRROR NOT DETECTED ON ,

042522
21'4£1'213

ASCANI

','ASCli

'AOORts5 $CAN'

040524

05144"

OSCANI

':AICn

'OA,A SCAN ORI" OAT"

ii2t1l116

ii5i1li
05211!11

GOOAT I

',ASelf

I

BOOATI

','ASCa

' ell gAT"·

\104644
'''H65~

i/lfH734

ell4742
0od4744
004752
liHl476kJ
'H~4766

tail4771
"o4776
111 tl50;!! 4
"0 'H1 12
005020
U9026
IHl!"'31
i1l09036

a1l594"
.H!'~"6

Z1J5~54
a~5062

0015070
t1H!5 I: 75
325102
005110
011'1116

filii'

052111
1114752,
111 2 fill 124
052103
920116

101

11151523
01"'116
04059.

::;gii
'"''
0211101

1!1521ilJ1
1'141140
114052"
00'12"

t'l04356
",05274
"'1/10252
00560t1

1!142fJ41
1'12rJ1l75
11-42107
036501
8201114
1121t1'15

651

,,~5144

105150
085152
,"'5154
38 5 156

""~16"
U'162
"'05164
"~'1166

81!5172
1!111I5174
00!5176
8(152111
00"1112
0G1'!12111"
0052"'6
0111!5212
U9220
1111522"
,,2"1226
~1')5234

l,,'!1242

"1115"6
"19446
01i130\6
01112,UI
01f/'146
01'0"6
°16681

MOY
MOY
MOY
JH"
751

177512

•••

842''''
111840
11,,8504
1111111

~ATA

ICHECK ,OR HAI.T ON ERROR
,OIUiiL.E MEM MGMT & PARITY
,R£S£T PARITY ERROR TRAP
'AND ERROR VECTOR
IRUtT HEM HGMT ABORT TRAP
AlIT TfSf

" PARSRy, UPARYEC
-ERPRT, "ERRYEC
'H MVEC·2,IIIIHMV[C
.,SUR T3

"un

TYPE;,NOTF"NO
TYPE. ASCAN
61
eR

I MEMORy MANAGEMENT ABORT ~OU'I'I NE
AD!)
eSI
'2".,UKII'AR2
'20,elll,IU
MOV
MOV
'1, "S"III
RU

'ADJUST PH'I'51 CAL, AOORi:SS
'RUET VIRTUAl,. .OORES~
'RlIEl ERROl( AND Et,ABL.[
IRtTURN

.,

GD O'T"" ,

,

','EYEN

11/43.11/~" CPU EXERCISER
"lSC SUBROUTt ... rs

"05124
U5126
"''''1313
0"132
el5134
""5136
305H9

~~~h

111£10114
0"0£104
I/IrJ1/I25"

lTy"r ":':

TYpE, CRI.F'
•• SWR
TST
,.4
BPI.

MACH1 27(6551

4 .. S~P.74

Ul53

'oUE 28

','S8"\' 111511 SUBROUTINES
.ROUTINE TO SAYE REIiUTE;R5 ON THE STACK
'CALI.ED III' liA YE MACla OR ~IR
JIIC,.5AVR
S5AYR 1 MOY
" .. , .. , p)
HOY
13,.IS")
MOV
"2,.151')
MOY

"5'·'1"

1'10 V
MOv
MOY

1!100014

012666
11112600
°126"1
012602
91268 3
"'12614
°1260;
I/IIi!l2" ,

l1IeI!l 111 14

"1 3 727
010800
0127"6
"Utl0"
J1J1/I6"16
01!163U
"til6310
052067
113767
11/15737
l1li1483
t1l1 3 7:57
"1 3 737
000207

0f101!10

"1'·'11')
XI,.( '1

14($PI,PC

,R!!:TURN

'ROUTINE TO RUTORE RfGUnRS SAYED ON TIoIE STACK
BV RUT ORE ~ACRO OR .IS R PC,SR[STR
MOY
,SAVE "£TURN PC
(SP' •• "4(~"
(SP •• , "1/1
HOY
HOv
,S P
(5 ... ·.:112
MOV
MOV
ISP •• ,""
(SP.·,""

~~~~l~~

t-."l

17776111
1'1/11011
00il1770

177753

1723 4 4
21O'172

1IJS!5172
1'17571')

~g~

(11'.·,"5

ATS

PC

I SUBROUT IN! TO I.0AO DISPLAy REGUTtR
."IIWNT. (PC).
LOOISP' MaY
0
DISPLYI ',WORD
MOV
rpc.·,-CS'J
I!I
SECTI
','WORD
(SPt
ASL
(SPt
ASL.
ASL
IS".
(sp •• OISIII.Y
BII
"loYa
'",Rsh o.l, 0 I !jilL¥. "
TSTB
'''''lMO~

REQ

is.

MOV
MOV

QU

n

fIIIKIPA R2,UDISPLY
.,OU"U, "0 ISPI. AY
PC

'L.OAD "ASSCOUNT
,GET $feT ION "

IL.OAD srCTION II
'l.OAD USE ADORESS
'CHECK IF' MEM HGMT IS ON
,SIUNe,", Ir OF'F'
IL.OAO CONTENTS OF' KIPAR2
,DISPt.,AY iN OISP~AY Ri:GISTER
iRUURN

DC OK CO
DCOKCD
1257
1258
12 5 9
126111
1261
1262
1263
1264
1265
1266
1267

MAC:Yl1 27 (655)
11/ 40 -111 0; CPU EX~RC I SER
I(T ABORT I RESERVED & ERROR TRAP SERVICE

DCQKCO
DCOKCD

,'SaTT!,. K T ABORT. RESERVED & ERROR TRA'" SERVICE:
J MEHORY MANAGEMENT ABORT 5ERV I CE ROUT I NE
U 27 37
913716
11162716
1119111416

00 5 3 5 7
171516
111911111102

00 5 326

KU9R"

1110'5264
Jla5272

012737
ee041Z

e1ll53?4

00532''

IRE5EFlVED INSTRUCTION TRAP SERVIC~ HOUTINE
IIRESMSG,UERTAG 'LOAD RESEAVEO TRAP MESSAGE
RESERR' MOV
ERRPRT
SR

11105274
ril", 53 02
1105306
111153111

0127:57
80 5 7 3 7
eU401
001l91le

0"'34"
e0'322

177776

MOV
MOV
ADD
SR

,

00'5312
allJ5320
005322
ze!5324
;;1121'5326
00'5330
1IJ05334

012737
e052;17
0900""
"000e.
900S""
e05S37
"""137

1i!11I'5349
''''5346
01il5354
"05357
005364
005372
08'5374
09'402
00!!1419
1))05"16

00501:l
e4252e
113211<10
01~

0202161
211il12l124
elil50j ~
e5 3 1n
2151516
O511110"
",,5422

e053<11il

ee5326

010772
2103212

MOV
ERRIlR,\" INC
ERrLAGI ",'WORD
TypE
ERUG,
':WDRO
cL"
JHP

H~:

1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1351'l
1351
1352

"II.Df;VID

I CONTA I NS AOR OF' E:RROR H!!IG
D!VICE 10 • CP

,sn

II. ,til. T

t:RMSG.

,ASCIi!

<1 5><1 2 >

'TRAPPED TO 4'

21311152<1

KTAMSGI ',AsCIi!

<1 5 ><1 2 >

~KT11

1IJ42522
"'421.05
0211J124
e0S

e42523
""4440
115112<1

RESMSCI ','ASCIi!

<15>' RESERVED I NST

~o;1.117

ABORT I
TRAP'

','E\ £;111

11/40.11/45 cPU EXERCISER
pF;OGRAII INITIALIZATION

','S8rr L

1331
1332
1333
133 ..
1335
1336
1337
1338

.SET UP TIME OUT TR4P MSG

S5il11:'l1
e~8

1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
126e
1281
1282
1283
1284
1265
1266
1267
1286
1269
1290
12 9 1
1292
1293
129<1
1295
1296
1297
1298

4.SEp.,74

,,,,ali

"1I543\!!
005434
"0'5440
210'5442
1!l95446
i2105451il

11115037
005737
1110141115
0QJ5737
10ll1e02
110637

800771
0"0e42

9215<154
005462
01Z5471l
"95"72
lJe547<1
0l/J5"76
00 55 0 2
095504
1Il05511J6
00 55 12
1110'5514
e05522
.305530

11112737
012737
1:'l0'5"00
00572"
1lI'1'J7'6
16271!1:'l
EIl01l'7
00130021
1,5737

1111'5<176
e0""02

162737
1'J12737
0,e423

004"00
032372

00'5532
.10 554 0
00'5544
"05550
ell5552
11105560
01il5564
0115579
,,,,,'5572

912737
e""80 4
"84567

0025 6 4
e32277
176474

00e92r1l

01 6 737

117772
1:'l323U
11645<1

01U"12

rIl1il56011
0e'56e
012737
"12737
°12737
012737
12112737
0127~7

0011500
"0'5274
0111526<1
1'I"0e02
0ee61"
0""340
fIl1l5244

00121"94
,UJII0U'
0eelZl12
1lI0el:'l24
000026
eel'l250

5TART21 MOV
MOV
... 0 V
MOV
MOV
MOV
MOV

flSTKPTR, SF'
'(RPRT .,IIIERRYEC
'RESERR,URESV£;C
.RTl , UR(SVEC.2
,PDWN".prv(c
113 4e, fflPF'VEC*2
IIKTABRT, UMMVEC

I

I SI:T STACK PTR
'SET ERROR TRA~
'SET REsERVED INST TRAp I/(CTOR
• Se:T POWER f A I L TRAP VECTOR
lAND PRIORITY LEVEl.. 7
'SET 1(T11 ABORT VECTOH

DcaKCO
DCaKCD

~A6~~A~1{~~ Ti:~ I ~ ~~~~ SER

1353
1 354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1361
1368
1369
137121
1371
1372
1373
1374
1375
1376
1377

0'5714
00'722
005730
.31115736
00'J744

11112737
012737
012737
11112737
812737
011l'1Il37

005756

~(il5037

~"''5762

004737
10 5037
11152737

i~1p

iili!l6046
JI16050

.L3. ,
1380
1381
1382
1383
1384
1385
1386
13 8 7
1388
1389
139i/l
13 9 1

1392

1393
1394
1395
1396
1397
1398
1399
14"0
1401
1"02
14la3
1 4 111.

14"5
1 4 "6

OCCKCD
DCCKCD
14217
1 408
1 4 "9
141111
1411
1412
1"13
1414
1415
1416
i417
418
1419
1 4 20
1421
1422
1423
1424

"e,7':i2

,,0'"66
;'0'"12

t2 6 0011l
~(il6"e!2

32'6004
006006
0111601"
0i1l6t2!22
006026
006030
08603"
"06036
'1!0604"

'0604"
~il6il5"

""6056
''''6''62
0il6il64
006il66
006070
fIlStHl14
"061"76
0061132
0061V'4

011161::16
"06110
01116112
0Iil6116
la16120
fIl(ll6122
00612-1
il06126
006132
,;1110134
0rl16136
11HIl614(1l
Ilfll6144
"'96146
"06152
81/16154
e06160

1121 5727
000000
001120
012737
"12737
012700
"00261
"05"37
0,,5600
08"261
00 5 7117
005600
08026:1.
1,,5737
00'56011
11105037
0,,6300
01e00Z
00"261
15,,5737
103402
11152702
",,511104
0jJ2I26l.
072494
1934"2
2'52',,~

000261.
17050.
1790('1"
10 3 4SZ
052702
810261
07 5 S00
103402
1l527SZ
810261
005837
103492
0'271112
81"26:1.

€.: 2564
0e1il2f110
"'111111114
01.'13212
"'11'1120'11
"05322
1110111772
IUI'51 66
01!H1J761
!H"'hI.'l0

000006
01l"012
0(il1!l004

0f)5737
UHIII2
8527BZ
080261
105737
lQl 34 III;.!
"52702
1l!0'57 3 7
1I134B2
852702
"12737
812737
810237
811l8e04
IIl04761
10"804
105267

ACY

0S0I'J20
111""022
11100 III 3 III
QlSSIII34
o III III 1Il36

000004
0111e0Ul

177766

11 27(655)
MOV
MOV
MOil
MOV
MOV
CLR
CI.R
JSR
cLRB
BIS

177561l

sEC

1ST
sec
SEC
TSTB
sac
cLR
ASI.
MDV
s£c
TST
BCI

17'1777
17'17"0

177572

11'

2S1

02flll10e
3S'

"'P5W.1
Re

ITlMEs OUT IF' UI2E
I Re.l " 11ne
'CI.£AAS R" Jf lit0!)
,SHI'T CP INDICATOR
,MOVt CP TVPE TO Ri:

'''U7.,.,
A"
RIIl,R2

.... SA0

ASH
BCI

R4, R4
25

1S"

R0

,WILL 'fRAP If 11/4£ \oj I TMOUT [IS
,'/lANCW If NO £15 H_ILABLE
,StT tiS AVA Ii.. iNDICAToR
un CAARY
,WILl. CI.J:AR CARR'!' IF 11/45 fLOATING POINT
'IS AVAIL. COP'!' FLCATING Cc'S INTO pSw
'BRANCH IF NO f'I.OAT INIi POINT
IS!T F'I' OPTION AVAIL. INDICATOR
,SET 't:' BI T

ell
sEC

'E 150',. ;R2

cree
BC!
BII
SEC

3S
'F'POP,. A2

rADO

Ril

."SLR
'S
'KJ8",R2

sEe

6S1

""8£P.'4

FAit 32

"'''"KCIR

I BRANCW H" NO ICWU·P

I1IPLKOpT tRZ

,5fT OIlTlON INDICATOR

SEC
TST

ACt

7S'

TST

8S'

Bli
MOV
",OV
MOy

Bel

os

"t.KS
1$
I1ILI'10
~"'5"2
21",5",,,
(il/iI1506
o,,7510
"""'512

16204
1625
1626
1627
1628
629
63e

001 III Iil
IilU001
""U166
"'1/15172

','SBTTI. START OF SECTiON 1
1111111111Ul1 F' I RST ADDRESS TO BE KEI.OCAT£D 111111111
PC,RI!
R[Ll!
'liET PO::
MOY
• (lIQJ)
.Rfo CONHINS 1101£ ACDRESS OF REL1
TST
, SAVE
R0"IIf' RSTAD
MOV
,SET S[CTION /I
fll,"SECT
MOV
II.OAD OlSPL.AV GEG
JSR
MOY
Pc,Re
IGtT CURRENT PC
MOV
,SUBTRACT REL.OCAT!ON FACTOR
tI, ,Re
SUB
RI/I,UPACTOR
'SAVE REI-OCATlON FACTOR
MOV
'SET N£W SCOPE pTR
PC,R1
MOY
ICIolECK BRANCH IHSTRweTIONIi
cCC
ICC' S·"eiHl
CCil
,SAME AS 81.0
BCS
CCII
BY!
CCII
eU
CCIII
AMI
IlLT
CC'"
AL.I:
CC"
CCS
BLOS

RORIIII

ePL
FlGT
~L T

,.~

'ERHORI INCORR!:CT CC'S ArTER TST

R0
Aoee
AOC"
Aoe,

,."

Re
ROAe
RORe
"OH.,
RORe

,RIl··l,CC'S-Ufil1

,ER"ORI INCORR!:CT ce's .H'TER ACC
, R"-lBeiJee, CC ' Sa,.II1"

, .4

'ERRORI INCORRECT CC'S AFTER ROR

scc
eLv

oEe

lie

; R",I"'7777 7 ,;:C'

S.il~ i l

DCQKCO
DCQKCO
16 4 1
1642
1643
1644
;!,645
1646
16 4 7
1648
1649
165111
1651
16'52
1653
1654
1655
16 5 6
1657
1658
1659
1660
1661
1662
1 66 3
1664
1665
1666
1667
1666
1669
167"
1671
1672
1673
1674
1675
1676
1617
1678
1679
1660
1681
1682
1683
1684
1685
1686
1687
1688
1689
16 9 1Z
16 9 1
1 69 2
1693
1694

DCOKCD
DCQKCO
1695
16 9 6
1 6 97
1698
1699
;'7"0
i701
17"2
17"'3
1704
1705
1'106
1707
1708
1709
171O
·711
1712
1713
1'1104
1 715
1716
1717
1718
1719
1720
1721
1122
1723
1724
l'25
726
i'21
728
1729
1730
1731
1732
1733
3
7354
1736
1737
1738
1739
1740
1741
1742
1743
1'''''
""5
1746
17"7
1148

F

11/41<1-111 5 CPU EXERCISER

ST ART Of ,EeTION 1
0",564
01ll'566
",,'570
"0'572
"1ll,574
00'576
00'600
"'0'602
007604
'C1ll7606
","7610
~1ll'612

""'614
:31l7616
0tl1'620
e'e7622
""'624
ell76 2 6
k'I,,'630
00'632
"07634
111"7636
,,"764"
i!,,'642
1I!l1l764 lL.T

(R2.
D'Ca

(R;;n -077777, CC-"Illl

I ERIIDR I

(RH
ADCl
ADCa
AOCl

,."

CU'412
U0414
,j1iil 4 16

",,61111
10300J
102100<:

ROL.
Bce

( R2.
ROLl
ROL.a

;.'1 Z~2;'

~~1ilIk!l

iiN£

1'01..

Rve

j

,.4

I NCOIIR[CT CC' S AS SHOWN ABOVE

, (R2 h lS e eiiJli"C; CI 1010

I [RRDR!

INcORRECT Cc'S .S S'"OWN ABOY!:

I (R2)·""U"",CC=Ul1

DCCKCD
DCOKCD
18 5 7
1858
1859
186111
1861
1862
1863
1864
1865
1866
1867
1 8 68
1869
1870
1 87 1
1872
1873
i874
1875
1876
1877
1 87 8
1879
i88il1
1 88 1
1882
18B3
1884
1885
1886
i887
i8B8
1889
1890
1 89 1
1 89 2
1893
1894
1895
1896
1897
i898
1899
1900
1 9121 1
1902
191113
191114
19<'15
1936
93
91118'
91119
91121

t
i

DCCKCO
DCCKCD
1911
191.2
1 9 13
i 9 14

ni~

1917
1918
1 9 19
1 9 20
1921
1922
1923
1924
1 9 25
1 9 26
1 9 27
1928
1929
193111
1931
1932
1933
1934
1935
1936
1937
1 9 38
1939
194O
1941
1942
i 943
1944
1945
1946
1947
1 9 48
19 4 9
1955
1951
i952
1953
954
955
1956
1957
1958
1959
1961
1961
1962
1963
1964

i

11/40"111
START Of"
~; 10422

'i ("PU EXERCISER
(CTION 1

01Ql424

1.a"0U
104421111

11J10426

"0611~

~1"430

101402
10 24 01
10"0"'1
104400

011/!432
U0434
010436

HACH1 2'("5)

,. 4

(R2.
ReI' ~".
ROI.:&A

ROLl""

ROL
SL.OS
evs
BPL
IofLT

AS.-

(RZ.
ASRI
4SRI
ASRt.
,.4

, (R2)-01111?J0011J, CCdlU

(R2.
RDR"A
RORa A
ROR1A
,.4

I CR21-10B0B0,CC-PH0

01111454
J1B456
.2IU460
I1JU462
ilI1'!I46"
"10466

006012
103403
1Ql201il2
1301401
U,B4I11;1,
104401!l

J1B471l
0111472
010474
2110476
010500
e;l.B'02
011'504

13011261
13135212
:I.B 30111 3
10241112
0014111:1,
10041111
11114400

Ull"06
3Ul51S
IIIU1512
BUl514
ilIUl516
010521'

1112'5612
10341113
1QI24e<1
011J1411Jl
1IlI0411J1
1044P111J

i!10522
010524
018526
01111538
0111532
I1Il11J534
11110536

1II1IJ1il261
1305612
:l1!l3403
102"1IJ2
Ih')1401

UIIJ540
i31l2l542
31.544
ilU546

11I011J2H
12105512
U0401
1044011J

sEe
lOC

31055"
21111552
nll 5 54

1IJ00261
"06312

SEC
lSI.
ace

Bce
evc
BNf

010566
010570
9111572
111105704
O10576

11,,5112
U)301112
102411J1
Ul0411J1
Ul""2'0

11I1I6ee
810602
11111604
011606
81'611/)
£11'612
010614

'00250
"115712
103"£13
""241110/

",18616
0113620
010622
~1"624

0111626
eU630

I CR2)'111JI1JIi!flll,CCII~llIi'l0

0111111261
1.5513
11'0402
1.5214
SIIIsn3
1024U

ePL.
IofLT

8M!

HACYll 2'(655)

AIL1'

'ERRORI

,."

If,;RRORI

I·"

I NeORRECT CC' S AS SHOWN ABOVE

INeORRrCT CC'S AS SHOWN ABOVE

I NcoRRrcT ec' S AS SIoIOWN ABOVE

I\R2)""77777,CClI 00 U

(R2.
SaCt A
IBCIA
S9 C A

a

,tRAORI

I NeORR!cT CC' 5 AS SHOEN ABOVE

(R2,

I (R2)a1011J011J",ce·10~3

(R2.
ASL.t

I CRzhll"0011lf1.CCdl11

,.e

4.SEP, 7 4

eve
eN!
BPI.
IofLT

ASLII

COM
BCC

(Rft
COM I
COMa

ellS
COMll

8MI
IoflT

TST1'

BCS
BVS
BPL
BNt:
HLT

~I~

NEG1'

",,5312
111,30"1
DEC1A,

glllU.

NEG
ecc
evs
BNF:
MLT
DEC
BCC
BEO
HL.T
SCOPE

2.1,53

pAGE 42

ASL:
•• 4
'ERROR I

'ER"ORI
(R 2 t
TST,
TST:a
TSTI
•• 4

I

ce.lllJ"l

IHcORRrcT Cc'S AS SHOWN ABOVE

I,R"-1777",CO-10131

If,;RHORI

( R2.
NEGI

INCORRECT CC' S AS SHQWN ABOVE

,CR~) -117177

,.<4

sEv

0/1140~

INeORRrCT ce's AS SHOWN ABOVE

I (Ril )-"0£111t1l. CCd01110

NEGS

I·"

(R2.
DECa A
,. 4

'ERROR!

INCORR[CT CC'S AS SHoWN ABOVE:

I (Rt!)aIll0001111,Ce,1IJ101

'ERROR I

POICORR[CT CC'S AS SHOWN ABOVE

I CWECK UNARY BYTE INSTRUCT IONS USING ADOFl£;SS HoOE
,Ri:IERVE A WORO
,.4
ItR
IADORESS RF:SERVED ,"OR TESTS
','WORD
0
PC,R3
MOV
IR3 POINTS TO EVi:N BYTE or WORD
I114,R3
SUB
IR4 POINTS TO ODD BYTE 0,. \1;0110
R3,R4
MOV
R4
INC
IPRtSET DATA
IR3.
CLII
11,

21,

i'''''''''

,,0242
115214
1f3402
102001
100 .. 01
104400

HLT

I ERROR I

HI.T

110£1262
11105412
U30£12
3,024£11
0£110"1
1044£113

810664

~18674

(R2.
SBCt
seca
Seca

uee0~

• .,""01
11100 £10 It
'10703
162703
01 13 304
11. 5 20 4
0.,51113

l511'l676
IIl1ti1700
Il1B702
1Il10704
01111706
rl107U
11110712
1'110714

see
ecs
Bva
BEG

etc!

1121101111
Ul"4£10

i!1.644
318646
81165fl
1111136'2
"lf1J656
0106611
018662

Z10666

,I R2)-1 0013 01,CC-S,01111

S9C1 A I

1I/J13IU1
Hl44011J

184400
10 4 11J1211/J

"1067,
a1B672

(R2.
INCS
INCa
INCJ
,. 4

INCll

sEe
INC
Rce
ev!
eEQ
eMI
HLT

0019101

011632
011634
i1I1.636
01"640
011642

IS SET

ROR1AI

sEC
SBe
8CS
Ave

11/40.11/45 CPU r)([RClSER
START OF' SECTION 1
102"1IJ2

'BRANCH If" C OR l

,.'

~r,

11113I1JIII~

310556
31056!1l
310562
010564

INCORRECT CC' S AS SHO"N ABOVE

' .I'I~ ),,000001, CCd"00

RO'Rce
BVC
BEQ
8Mf
HLT

8H,

10"""1

,ERHOR!

ASRl l

S9Cli

104411J0

PAyE 41

ePL
lolL. T

il10"4"
01""46
",111"50
"10452

~1I1J442

11.53

ROL.l 1

01/!6212
103003
12121302
01311/101
lB0e"~
10440111

011/144"

4.5EP .. 74

INCB11

sEC
,DcB
BMI
rNCB
BR
BVS
HLT
eLV
INCB
RCS
RVC
BMI
HLT

(R3,
25
(R 4 1

15

I ADe CARRY TO ntN BYTE
IUNTIL EVEN BYTE BECOMES NEGA!I VE
II NQREMENT ODD BYTE

,. 4

'C R;J) .S7761I11·[£In~H2"0 J, CC-l1!'10

CR'"
INCBl
INCBl

, CR.:th100Z110·[10 00 H200l,CC-lf!'1'"

,."

'ERROR I

INCORRECT ec' S AS SHOWN ABOVE

DCQKCO
DCOKCO
1965
1966
1961
1 9 68
1 9 69
1 9 10
1971
1972
1973
1974
1975
1976
1977
1978
1 91 9
1980
1 9 81
1982
1983
198"
1985
1 98 6
1987
1988
1989

n~~~-H/~~c~~g,/ ;ERC I SE'l
UilJ716
01""20
0113122
010724
<':1:3726

106114
U3SS~

=8~B

1e2SU
0SHill
10<1400

110\.Bll

RVC
BEa
H\.T

e10730

lS5614

SBCB1.

S:;CB
RCC
SVS
8MI
HL,T

~10732

1031'!0~

v;H:l734
k'10736

132401
, 00401
104400

[ ' J?·H,'

1/:10742
2l10?44
.,1111'46
01"'50
e101"2

106313

i1I10154
rli3756

U5413
103404:!
102401

~1<'76"

00141'11

"'1')0'

.13766

1 9 "'1
1992
1993
199"
1995
1996
1997
1998
1999
200"

i'1~77€,

S""217
10531.3
1,,3"0<1
U2401
"01"01
104400

20"2
20"3
20i1i"
2005
201116
20",
2098
2"09
2£1121
211111
2312
2013
2U4
2015
21il16
2011
2il18

"1~772

~10774

1119776
,,11i'H'J0
iil1111111l2
011"04
11l11i.l06
11111010

"liZ12

kl11014

ASL.Bll

ASl.B
RCC
RVC
REO
I-II.T

NEGB1'

NEGB
RCS
BVS
BEQ
H\.T

10311l0~

lS211l01
0S14S1
lS441'!0

01['1762
71C764

2~Cl

HACYU 27 (655)

12l441!10

DECB1.

DEl'S
Bec
BV!
I3Nr;
HL,T

RORB1.

CL,C
RORB
RCC
BVC
epL,
I-IL, T

COHB11

Ci.C
COHB
BCC
ev.
BEQ
HL, T

1r.l6QJ1J
1031!1111~

011024
"11"26
./JUS3"

';01l12 4 1
1,,511"1
103""2
1S241l11
IlII!J14"l
11!J441Hl

011032
01lKl34
:l!1l;036

106213
111121l1C"
Hl5514

is.

1,,3401
0"HU
104400

2$.

hi0i6
011020
~11022

:!::.1Z 40

l1l11042
are44
::l11~H6

",,"7''''

,IRoIl-0002011l-C000i:lH211l0J,CC-e;u

CR".
ROLBl
ROLBl

,.4

I tRROR: INCORRECT eets 4S SHOWN ABOVE

(R".
SBCBl

, (R""1177600&[1,174lt200l, CC-100l

.."

S8C8l
'ERRORI INCORRECT CC'S AS SHOWN ABOVE
J (R"I.t1140",~C.1t11l

(R~.

ASLB1
ASLB1

,."

,ERRORI INOORR£C't' CC'S AS SHOWN ABOVE

(RJt
NEGel
NE G8l.

, CRoIl'S,77'111 54 6
eo1i55E1
:>11552

~'11612

011622
ll1624
:!11626
11163111

010277
106122
101403
102402
0814B1
1l'I1!l901
10 4 490

U163;:
:116,4

II'rI""257
10622:!i

011614
Ui616
~11621/l

H~~~·5V~~cg~~ E~ERC 15ER
2'116 3 6
;Jll04Q'
iIl11642

<111644
,~11646

011650
652
;l 1
65 "
d 1 ..
il11656
11661,1
a11662

i

(111664
.111666
011610
811672
i'!11674
I/l11 67 6
1!l117~0

311702

~iH::

Oli 710
011712

;<111'1"

~11716

1011720
01;1.722
"11724

"'11726
v 1173111
;]11732
011 734
.,11136
011740
011742
011 7 44
011746
011750
~li752

1,,3402
11/l20U
18040.
10441'"
1052"2
"'''277
10622~

10 34 0 2
11112401
10084'11
10440(/1

sCC
CL.C
COMB

ece

BYS

COMB21

eMI
HI.T
AOCB

BEG

AC'CB2.

HI. T
AOCB
RCS
BNI
MI.T

aEa
RORB4,

eM!

HI.T
sCC
ROLB

eel
ROI.B! ,

eVI
eEQ
9PI.
Io4I.T

cce
ASltB

H~CYU

ASF!S2i

2""5)

eCS
BVC
eMI
HI. T

INca
sce
.5"B
BCS
BVS
gPL
ABRB2A' MI.T

080266
1116345

fR5 ••
COMB2
COMB2

• ClUIIIl'HIIllJ77, CC."""1

.(112)
,.4

I (RII)-1!l0001l0,CC-"'Ull

,."

IERRORI I NCORR!CT CC' S AS SHOWN ABOVE
I (R.>-1 •• 0.0,Ce-,.001

RC R84

....

ROEB4
IERIilORl INCORRfCT CC'S AS SHOWN ABO¥[

(R2.*
ROl.B2
ROl.B2
ROL82
•• 4

IIRII'-1It0'Ull,CCdfil00

I~RltORI

( R5,.

... IE'.'"

INcORRrcT CC'S AS SHOWN ABOVE

I (RI"toilUel. eCIIU10

U'~3

PAIiE 48

ASRB2
ASRB2

....

• [RIilOR I I NCORR!CT CC' 5 AS SHOWN ABOVE

-(R2'

l tRil),!,4B11l1!12.CC d0 00

(R:H*
A5 R82A
ASR8U
,.4

I, Rilh 14""ll,CC.a00'

IERMORI I NCORR!CT CC' S AS SHOWN AnOYr
ISf:T l,v
IIRI"" . . '''Jl,CCII1''''1

ASl.B41

*1Ei! I SEV
_(A"
A LB
'-SLB4
BCe
RVS
A81.S4
AiLS ..
9£0
gMt
HI.T
(R2.·
OECa:l
DEca2

OECB2 ,

"Eea
eCc
AVC
ePI.
HL.T

• (R5)

SeCB4
SSCS4

SBCS4,

sBeS
eCI
BV!
aEQ
IoII.T

N£CB4

NEGe4.

NEaB
RCe
BV!
BHI
HL.T

IR5 ••
T5T82
,.4

IIRltIIlUI!l400.CC"'181!l

TSTB2.

T5TB
eCs
BEQ
IoILT

115722
fileJ14il1

TSTB
r:HIj~AI

(R2 ••
T5TB2A
,*"

, (RIIIII\1Il04BB, CC'11l1!lfll

eM!
lolL. T

I c R0)·002212!1.CC":I,000

1I!l31!l~J

11112402
"914lJl

t:~::J

UJ5322
1I!l 3 111 02
Ul2111111l
UUBl
1I44BII
111156'"
1B:5411'2
112401
081'13.
11!1440"
11/15442
103002
1B240:1.

lee,,0;:'
1844e0
10572li
1,,3401
~B1401

10 4 400

.."

8~Q

•.4
,.4

-(R4P

sEC

,111762
J1i 7 64
:11 76 6

SWAB

"( Ra)

!.ICS

SWAB"

2268

,~11i7?

0ti!0342
11113401
1210401
SioiAB 4 1

'11. T

U;""ORI INCORRECT CC' 5 AS SHOWNAaOVE
,IRI) .. 11"'0", CC10180

ItRRORI I NCORR!CT CC' S AS SMOWN ABOVE
,IRI)II1II408,CC-100"

'ERRORI I NCORR!CT CC' S AS SHOWN ABOVr:

Zl1'6~

1~4"'2"

I 1~').817<111'te774H0"1J ,CC s "0"",

,.4

i~~:~~

RMl

'ERRORI I NCoRRr;cT CC' 5 AS SHOWN 4BOVE

N~CB4

0B0261

k,lJ.J,.1 -'Q

IERIilORI I NCORRP:CT RESU~ T AS SMOWN ABOVE
IIR")-1IIII040I1,COa000£1

•• 4

~~1Z~~

2282

I[RRORI INCORRICT ce's AS SHO,jN ABOVE

(1'15 ••
ADCB2

2284
2285
22A6
221'\7

2283

PAC;E .. .,

*17J714,cR4).

090277
90024:1.
10 5 12:>
11/l:J0i1J2
102401
Ul9411J1
Ul4411Hil

22~2

221<13
22(H

11,53

lolL T
CHP
BEQ
HI. T
OHP
BEO
;JI. T
SCOPE

219~

2191
21 9 2
2193
2194
2195
21 9 6
2197
21 9 8
2199
22"111
22<11

4,,SEP.704

,.4

DCCKCD
DCQKCD
2289
229Q1
2291
2292
2293
2294
2295
2296
2291
2298
2299
23,'",
2301
23£12
231il3
2304
231i!l5
231!J6
23£17
23£18
23il9
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2321'1
2321
2322
2323
2324
2325
2326
2321
2328
2329
233e
23 3 1
2332
2333
2334
2335
2336
2331
2338
2339
23<11'1
2341
2342

DeQKCD
DCQKCD
2343
2344
2345
2346
2347
2348
2349
2 35 1!l
2351
2352
2353
23'54
2355
235 6
2351
2358
2359
2360
23 6 1
2362
2363
236.
2365
2366
2367
2368
2369
237Ql
2371
2372
2373
2314
2375
2376
2317
2318
2379
2381!J
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
239!1
2396

H~~~"5r' ~~cgg/~ERC I SER
1i!l11 772
011774
11)11'76
U201i!lf/J
012002
1i1121i!l1i!l4
1i!l12i1l1.'16

QlQl0277
U522:>
1030"3
102402
0"1401
U0Q1U
1Ql440"

012010
:"12k"l14

1il22227
1Il014U
1044"0
02021'J5
"01401
1044"0
1Q1481i!l1ll

~12"'16

012£120
012022
012024
0122126

Z12030
£11211)32
012034
012"36
012040
012"44

10120 4 6
"'12050
£112052
il12~5<4

1'l121'156
012060
11!12062
~1211J6"

0121'166
012070
812012
11112074
1Z12076

Z1210"

1!J"1!J41iJ2
1!J00800
8800"0
I1J 11/1 703
16270;,s
00!191..i
1l'10311'''
0,,5743
01111813
011'l31'l4

1l'1220'"

0QJ5233
1,,382131611311101
1QJ4400

1112202
01221114
"12206
11112210
1'112212

1'1055!14
1034132
11112001
a0""1
1111 44 lIIi

012214
O12216
1!J12220
n2222
01222"
<:12226

0f82'"
"0 6 134
1836102
1612111"1

~1223£1

011152!!3

012232
t12234
012236
H22"0
Z 12242

1II,56'~

sac

113341111
881401
1,,4400
1QJ"1lI011l

saC5.

BCS
BEe
HL-T
SCOPE

0610403
1Il00QJ00
00111000
88"00111
81071212
0051"2
1!J2I 5742
010201'l

.CIoIECK UNARY BYTE OPS Us I~~ ADDRESS MODEs 3 ANO 5
,.Ul
IRESERVE 3 .!ORDS
RR
il
.1 ,OR EVEN BYTE ADDRESS
~WORD
J~ rOR 000 BYTE ADDRESS
,lI0RD
0
;1I0RD
• ANO 1 FOR DATA
PC,R2
MOV
~(R21
I BACK R2 UP TO
TST
-CR2)
IOATA WORD
TST
.RIl! PoiNTS TO THE DATA WORe
R2.RIlI
MOV

012146
~12150

':122"4
~12246

122513
?122'52
1)12254
.12256
,;122 6 111
' 12262

NEG
eCe
BVS

NEe,.

Ht.T

stv

111610262
'QJ513~

~:i::i

8111

NEG5
NEG5
,.4

COM

Boe
Bve

III R6u
COM;J
,.4

,CR1)U17776. CCPIII011J1

II RI) .017777, eC-01'l01

00"31

Ht.T
IICR~)'

IN(:3,

INC
Bce
BPI.
HI.T
ADe

1I~(R41

BYC

ADC5
ADC5
,.4

Bes
RM!

INC;'

,.4

I CR0) -1111"'01'113, CC-1f1Ilil

ADC5,

HI.T
II(R.).
ROL3
ROl.3
, +4

I cRII) alll£l00011J , CC 8i'l 111

ROL31

ROLBee
eYC
eEe
HLT
INC

.... CR3'
II-c R4 1
SeC5
,.4

IIR.'·"000I111, CC·0I!JQl1
I IRIiI)-0110000 , CC-IlI100

cec

°

DCOKCD
DCOKCD

11/40"11/45 CPU r. f:RC I SER
ST,RT OF" SEeT!ON

2397
2398
2399
24011J
2401
2 4 1J2
241J3
24£14
2405
2<406
24"7
2408
24"9
2410
2411
2412
2"13
2414
2415
2416
2417
2418
2419
2421l
2421

01~2b4

:'''''
24, ...

~12336

MA CY l1 27(655)

005010
005742
£10 5 742

4-SE~~74

CRt'!.
.(R2'

I!!lf1l2(l~

1051'52
103001
10"401
U4400

COMB
Bce
AMI
HLT

h1R2)
COMB5

I eR." "1114f1le,CC"~~l'J1

3123<16
iJ123H'
012312
ih2314
012316
012320

11/1'570;2
0014"1
104,,2'0

T5TB
!lEO
HLT

4'oo(R2)

I (RI/JI K 1J74011" CC·0,,0f11

011J"21'>~

sty
ASRB
ece
BYII
BMt
HI,.T

(I~(R51

,(RiIl):a1.77 .. 0111, CCI!10f1l1

3123il~

"12;\22
012324
012326

012330
1!12332
Z123 3"

01e0n
11!,,52~0

01f110 n
21i2i200

10 6 2 5 5
103002
102401
100401
104400
111l'523"
1133001
101')1Il0.
104400
0k')02 4 1
1kl6Ql55
111)3903
102002
"01001
1I1IS0"1
10"""'"

COMB5.

ASRB5,

INCB
Bce

BPL
INCB3i

IoILT
CI.C
RORB
BCC

Bve
RORB',

106332

aNE
8PI,.
t.lI.T
ASLS

Reo(R21.
R0
Re,tR21.
R2,RfIl
R2,R5

..

,."

AS Re5
ASRB5

I·"

'(R2).
INCB3

I (RiI'''11741!J1, CC'00e

'"CR5,
RoRe,
RORB5
RORS5
,.4

'IR0)1I1774811, CC~1CI111

(1(1<2"

I (R0'"1770111, CC'1001

,.'

1,,3e0~

Bee

ASi.B.!

2437
2438
2"39
2<440
2<441
2442
2443
2444
2445
2"46
2404,
2448
2 .. 49
2"50

fill::?37"
312372

102"iI~

BYI
Bf'lt
IoILT

ASL.83
,.4

A008
BCI
BMI

"CR21
ADCB5

24'4
2455
2456
2""
2458
2459
2"6"
2461
2462
2463
2464
2465
2466
2 .. 67
2468
2469
24'111
2471
2472
2<473
24' ..

~12374

ll12376
0124111"
:.1124 C2
~12041'!4

0124 .. 6
812410
1112412
012 4 14
2124H

100""1.
1I'l4400

ASLB3,

1f/I5552
1034""

10""":'
104400

ADCB5,

"013217
10613'
101402
102 .. U
1"S81ll

HACYll 27(6'"

~1242e

ROLB3,

10044"0

012 4 3"
il12 4 32
?12"34
;'12436
?1244e

01"261
1Il5635
1t3 ..
"'14:3;' 01 ;>362
2434
2435 J12364

OCOKCD
DeOKeo

111 53

SBce3 I

0[(:B5,

SEC
'ieee
BC!
AEQ
HLT
NEeB
oEce
Bce
REo
HI. T
SCOPE

'.11'311.

CCIll1l''''

,."

'-(R21
DEce 5

,+.

I CHECK UNARy WORD OPS USl'lG ADDRUS HODE 6 (ItC I
(PC ••
"R~SET DAU If e
cLI!
,RESERVED ,011 ,,. TA
,WORO
0
pe.RII
MOV
-C R,) ."C RIII )
,RIl POINTS TO DATA IoiORD
eM"

UWM61

OcQKCO
DCQKCD
2475
2476
2477
2478
2479
248111
2481
2<182
2<183
2484
24B~

2486
2487
2 4 89
2489
249O
2 49 1
24 9 2
2493
2494
2495
24 9 6
2497
2498
2499
250121
25rH
251Z12
2533
2504
251215
2506
2501
25f1l8
251219
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528

DeCKCO
DCCKCD
2529
2530
2531
2532
2533
2534
2535
2536
253 7
2538
2539
254O
2541
2542
2543
2544
2545
2546
2547
2548
2549
255111
2 55 1
2552
2553
255 ..
2555
2556
2557
2558
2559
256O
2561
2562
2563
256 ..
2565
2566
2567
2568
2569
2570
25 7 1
2572
2513
2574
2575
2576
2571
2578
2579
25(\21
2581
2582

11/ 4 0",11/ 4 '5 CPU EXERCU[R
START OF S,-CTloN 1

Z1251'!2
"1251214

0O:<1277
O06167
Ul3403
1I1J2402
IHl140:L
1I1l00"1
10440O

~12506

005167

r067
1II31!103
1e2402
0f14i1l1
10111401
1QI440il

d12576
01<'602
01261!14
iIl12606
\)1261e

"1115667
111134r:'2
1"20151
18"801

i12612
U2614
912620
012622
12112624
012626

"81il242
"215267
1034213
1"2002
1il£l1401
1110<101

~1263121

11144""

012632
,j12636
':126415
..,12644
12112646

11106267
008261
006367
115 3 002
11il242'1

177764

ROl.61
177746

012654
211266111
flI12662
012664
12112666

005367
1£12"""
1I!I0"1II3.
1IlI4421111

012670
"12674
012676
11112790
1il1271212

01115567
1213402
1111281il1
1III"41il1
11!144f1JIIl

NE061

SCC
NU
Bec
BV!
BEQ
BPI.
HL'

ROR61

scc
ROR
ecc:
BV!!
!;lEQ
eM!
HI.T

SBC61

sBC
Bes
eve
aPL
HI.T

111714

117674

117656

c\'V
INC

1176 4 0

eel

BVC
BtQ

Ill'll
INC61
177622

HACYll 21('5')

ASL61
11'160£1

D[C61
171564

" RIil) "i"'0001, CC-0000

UWM6
COM6
CO"'6

,(Ril)=177776, CC-1001

UWH6
A5R6
ASR6
,.4

J(Rffhl77777, CC,,1011'1

UWM6
NEli6
N[G6
N[G6

, CRi!!) 11000001, CCI!il001

UWH6
RDR6
ROR6
ROR6
•• 4

,cRIII"10121''''Ill, CCII!~1il01

UWM6
SBC6
SBC6
.t"

,(R'l'!'fIl17177. eC"I1il010

UWH6
INCt
INC6
INCt
,.4

IIR'JI'1I'88110. CCl11il11

UWH6

IIRIII)-141il1l"" , CC~U11il

UW"'6
ASLt
ASL.6

I CRIi)-100000, CC"1001

,

..

,.4

,."

.... SIP .. 74

111 53

UWH6
DECt
DEC,
,t4

,CRI)-07n71, eC'1II011

AOC
Be!

UII"'

,(Ril-l,,"0ee, CC W1010

1il00200

HLT
CM"

SHI
BEQ

ADCt
ADC,

,t"

UWM6
,. 4
tJ20" IRe)
,t 4

HLT
SCOPE

1040""

J CHECI< UNARy ByTE ops (EVEN/ODDI

01273111
rlJ12734
il1274B
012'144

270
°1
"
0637"1l
0,51 67
121"0277

~12146

"8111244



~~~

8H!

177776

PAGE 57

'SET NEXT ADDR[SS
,SE' R0 POINTING TO DATA

ASl.71
0U002

11.53

.. ,R01
.. CR0 1
RIl,R2
R2,,,(RI'l1
(RIU·
(R13.·
R2,IR0'
R2.R0

sce
CL.C
ASL.
BCC
BVS

III 0 ""''''2

4.sEP .. 74

TST
TST
CLR
MOV
MOV
TST
TST
MOV
HOV
sec
BEC
HL.T

n~~~"5r/~ic~~gN £~P:RC 15ER
:;13546
01355111
1J13552
848
2649
2851
2851
2852

DeCKCD
OeQKCD
28 5 3
2854
2855
2856
2851'
2858
2859
286Q1

~ag
2863
:;>864
2865
2866
2867
2869
2869
2870
2 87 1
2872
2873
2874
2675
2816

H~~~"~V:~c~~~/ ;>RC I SER
1'113714
013716
01372e

0,,1401
11111401
1il441Hl

U3722
013724
11l13731/'
213732
313734
2113736
;;113740

filillll277
105572

~13742

;;113746
;;113750
ril13i52
01370;4

288i
2888
2869
Z890
2691
2892
2893
2894
2895
2696
2897
2898
2899
2"''''0
29<11
2902
2903
29 IIJ "
29"5
29Z6

10517:i!
1111301!l2
10241!l1

001!l1/ll?J2

1/11"0"'''
014"06
0140UI
0140104
014('116
01"~2"
01412122

115372
1Q13"''''2
:!.iJ204"'1
1"'''04'''"
10 .... 00

177776

01"024
>]14030

UJ6;S72
1130"'2

~~00~0!

O",O241
lil6272
1I1J3102
1l!l24U
101!1'Hl1
",,.4"'0

"'140<;6
114062
1lJ1406'"
11114066

105472
103"",0!
112""'1
"''''14el

014~7111

11 44 00

~1.~72

i!0C262
UJ 6 1 7 2
103S02
1q12401
leIil4"':!,
1044"'0

J14('74
014130
H41f'!2
0141"4
"1411'16
2'14110
(l14114
0101120

01<4124
01 4 13'"
~14132

?14134

105272
185272
Ul5572
10 5 172
1il01401
1IiI441il1i!
111l4"0il

ADCB'
ADCS7
ADCS7

J(R!/I)8177776, CC a 10l!ll

COMS7,

COMB
Bce
BV!
BMI
HI.T

"2<')
RORS'
RaRB'
,. 4

, c RfjI)8.77176,

RORB7,

CI.C
RO'UI
BCC
BYe
BPI.
HI.T

"ZIU

'CR0).,00376, CC-1011

00e002

INC8
eec

Bve

INCB7.

9MI
HI.T
OECB
Bee

ev!
DECB71

BMI
HI.T
"SloB
BCC

Ive
"SloB7,

BEO
HI.T
CI.C
"SRB
Bce

171716

BVI
ASR87j
"00002

11/40-11/01'> CPU EXERCISER
5T ,RT nr SECT I ON 2

8Ml
HLT

177776
171776
177716
177776

011'l277
e111l700
11 3 1111!2
U2401

31·152
014154

01 0 102
1/110262
160SIJ2
103402
1S2401

1'l141'56
014160
U<4162
014\164

~:~==i

Dtce7

"2CI)

lice
BV!
BM'
HLT

MOV
ecc

evs

·

.~

eN!
HI.T

•••

4.S!"~14

••2,2,
ROl.e'
•• 4
... 24 2 1
.,.2:2 J
e.2 :I
e.2t21

,."

BY!

eEa

~~~
eEC

J14222
~1"224
al~226

;:1423e'
l14232
.~ 14 2 ~ 4

",SING ADDRESS 1'100£ I'l
,SlT CONDITION coors
,A •• PC, cC"K0n

pe,R0
MOV.
HOVIII
,_4

.RII"III111I11I,

00141il1
1e<4<401il

11!l1lSU
1214400

lolL"

BC!

..

,sn

v

CC·UI.'0

,

R2,R3
MOVSA

...

,R2" R3 8 UIIlIl0. CC-0"n

,

MoveA I

HI. T

CMPil ,

ecc
.. S!V I SEN
CMP
RZ,R3
CMPe
Be!
Rve
CMP0
CHPI
~Nr:
BPI.
• .4

0UI~1

I CR"')""IJ'~h CC"~0i11
eCI10i1l
CCI10e0
I (Ril.lIl1.,n, cc"iJUle

:!=:~::::~;~:

'R~·RIII

010244
"1 0 2""

"14214
2114216
21422"

,(R_I.lll?4, Ce81001

"OL87

RI,RZ
SUBS
SU B1

014171i'l
01<4172
014174
"14176
1l14211J0

::14212

liAfiE 61

RiI,Ri

lIH 4 IJIil

0011J2'57
1il00272
02"'203
10 3 40"
1024e2

U'U

sua

U4166

014202
r.l1421il4
014206
1il142111l

J (RI) 8B.03'6. CC 8 fil1l0

N£GI7

MOV

BCII

lIiIH01.

,CI.£AR CARR'!'
J CRI)8,,11376, CCll101!l1

•• 2(21
ASRS7
AS"91'
,.4

sty

SUBIil'

'CRIII)81111375. ccw0U1

ASI.1I7

ASL81

HLT

sec

0f!114~1

CC!!UI1

DECI7
,.4

Hi087

iNca
NCB
AoeB
COMB
eEc
HI.T
SCOPE

MOV0'

Ie RIiI) -UIIIJ",

.... 242'

.2(2)

1101.8

ROLB1,

,.4

9ce
BV'
eEc

sty
171776

CC!IfIl"U

INca7
iNCEI7

NEIIB

MACYa 27<"'1
N[GB71

'CI.f.AR CARRY

, eHECK BINARy OPS
014136
014140
1314142
014144
014146
U4150

1St. , COND I T ION CODES
I C'HI)·1'174~1t CCU0""

h2(2)

• .4

:i:;~~ ~:i;:i
214040
014042
0142'''6
1314:'50
014"'52
",",,1:'1'54

PAGE 59

".2(21
COMB7
COMB'
,.4

177716

105272
1131"2
:;'S21il1il1
1I1J104"1
U,..,,00

u'5~

BPL
HLT

ADCB7,

1tJ1J774
11114000

Hl .... 1il0

• .4

HI.T

IlEQ

i~~:~~

"1<1036

SBCS7

BMI

ovs

10241!l2
""140:1,
lB000.
UJ44 III Ii!

4.SEP~74

BEQ

sce
ADCB
RCS

177776

10:54005

i31!l0241
U61!l72
103002
1l!l 2 1'!J1
1001111<'.
1 1!'4 ,,11'0

28n
2878
2879
288",
28e 1
28e2
2883
28a"
2885
2886

S9CB7,

013756
J13'60
i!13164
1i!l,3766
i1!1377f1l
013772

~141il02

MACYU 27(655)

I SET vaN
IR2 8 R;'811100SU, eC80111JI

~LT

ii11i!lS
"102

MOV
MOv

06"2

,00

il063
0202

ASL
CHP

RIl,R2
R2.R3
R2,1i13
Ri
1<2,R3

~71'"

QE~

1 ..

4

Hili!l-R2
,R"-R:2 a R3
,R3 8 2 6 R0
J fl2·2aR0
iR2·R3=2 I Re

OCQKCD
OCQKCD
2901
2908
29"'9
2910
2911
2912
2913
291"
291'
2916
291'
2918
2919
292Q1
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
~931

.:932
2933
2934
2935
29 3 6
2937
2938
2939
294"
2941
2942
2943
29"4
2945
2946
29"7
2948
2949
295"
2 95 1
2952
2953
2954
2955
2956
2957
2958
2959
296i21

OCQKCD
OCQKCD
2961
2962
2 9 63
2964
2965
2966
2967
2966
2 96 9
297~

2971
2972
2973
2 97 4
2975
2976
29'7
2978
2979
298"
29 8 1
29 8 2
2 9 83
2984
2985
2986
2987'
2988
2989
2990
2991
2992
29 9 3
2994
2995
2996
2 99 1
2998
2999
3000
3"h
311102
30"3
3"" ..
3"05
3""6
30"',
3008
30"'9
301O
3011
3fZ112
3"'13
3"14

H~~~"~V~;
e14236

CPU EX£RCISER
eTlaN 2

"'"43'~HZI

0'114302
"'1 .. 30 ..
(;14306
0:14310
1i!14312
01431 4
"'1-4316

0,,59£12
0"0277
"'500"2
1"3,,o2
182401
01/1100:1.
104400

I?!14320
014322
"1 .. 324
1111 .. 326
014330
014332
014334
<11 .. 336
014340

0100005
000277
000244
040"03

U4342
014344
"1 .. 350
014352
01 .. 354
"14356

01""04
005104
04"1II1iJ4
00 5 11114
0200£1 4
0111141!11
10440111

"143611l
314362
"14364
2)14366
0143'0
01 .. 372

010004
00 5 1 04
010 .. 03
"5"003
103"01
1Il0 .. 1'l1

~14256

01426'"
1114262
014264
314266
i!'1
180 .. 01
18440"

<'11<11240
014242
2114244
1'114246
~ 14251il
014252
..l14254

M4 CY U

HLT
SCOPE

ICIolECK BINARY OPS USING ADDRUS MODE l
,RESERVE TWO WORDS
,.6
SR
,RUERYED I"OR SOURCE DATA
0
~WORO
I?!
,RESERVED FOR OEST I~AT ION DnA
.WORD
PC.R ..
HOY
TST
-C"It)
_CR,)
IR4 POINTS TO DESTINATION DATA
CI.R
R4,RJ
HOY
IR3 POINTS TO SOUCE DA TA
-C R31
eLI!
COM

tNC

(R3}
(R4,

sty

ADO

AOOll

flCC
flV!
P.EO
loll. T
SCC
eLN
CMP
!'lCS

CRH,IR.\)
AOOl
ADDl
,+4

(RH.IR .. 1
CH P l

I (R,)) =5,17777
, CR~) -"110001
ISET V
I (R3h177777. C""'."0000:2l, CC-UIi!l3.

Ie RoS I s:I, 77777, (~" )a0""000, CC-~0""

DeOKCD
DeOKCD
3015
3016
3017
3i2l18
3019
3020
3021
3022
31323
32124
31325
3026
302,
3028
31329
3030
3031
31332
3033
303 ..
3035
3036
3037

11/40 .. 11145 CPU , 'EReISER
START OF SECT I C~
.a14536
IZ1454111
;:14542
i!l14544

19241112
001401
10041111
1114400

;>14546

000277
0f1J0244
1131314
10 3 1302
12124"1
011114ru,
1044130

~1455~

.31 45 52
,,145'5"
1l1 4;<;6
,114'560
.114562
014564
<;14566

000277

i1457e

O0511'1
161314
1il340ii!
102401
1101401
11114411)"

",1 457 2
014574
il145 7 6
wl14600
0<11 4 6>'12
Itl'611).

30~e

~1~6136

3039

l146Hl
r 14612
04614

...... .-101

30""
30"2
3"'''3
304"
3045
3046
30"7
3048
3049
3050
3"51
3052
311153
3054

3055
30'56
3057
3058
31.'159
30611'
3061
3062
3063
3064
3065
3066
306,
30 6 8

DCOKCD
DCQKCO
3069
30'1il
3,,71
30'2
3073
3137.
3075
31il76
311J77
311178
3QJ79
30eIJ
3 08 1
3082
3QJ83
3084
3085
3086

~sn
3089
3090
30 9 1
30 9 2
3093
3091\
31lJ95
3096
3097
3098
3099
31"0
31 0 1

014616
"'14620
~14622

""131"
11!13e0ii!
11112401
U0401
104400

~114650

;)14662
l14664

.!!Ql0262
32131'1
1832103
1i!24"2
2'''14031Il,,1'U1
11114400

1n4666
i14670
"'14672
",14674

:l05013
1Il01il261
0,6013
e1131 4

11/ 4 J-11/ .. 5 CPU
1!i14676
1114700
~'14 7.:02
il147"4
1:147~6

"'14 7 10

.J147l2
11'14714
1014716
;j147211J

Cl..f

B!T

Bce
8V$

CHPI
CMPa

I·'"

I."

BEQ
HI. T

SUB1'

sCC
"Cl.CICl.i!
COM
I R"t
(Rlt,c",,'
SUB
!lull
BCS
FlVS
SUBlo
BEQ
lolL. T

J103
3114

CI"RB
SIiAB

(RJ~

, (R,)I.,7?4e111

(R3t

, CR'}""'0311

SEN

3107
3U8
3109
3110
3111
3112
3113
3114
3115

od14'3~

11181401

';:14 7 3,
iZ14734

1094(/)1
1044U

QI14736
.114740
114142
d14744
iIll4746
1I'14751il

061314
1(13003
10211.2

<114752
814754
0147<;6
0147 6 0
"'14762
Jl4764

",,5113
01131"
06131'1
l1He2
1020U
1004111
1044011

1Il15~fl6

015C10
015 1i12
1tl1501"
,,15;316

3118

i'15ii~1O
il15~22
~15"24

3119
3120
3121
~1 22

;511&

3117

,(R3)''''1377, (R"I',,'74lltl
,SET C .. V
J IRJI'.'fil377.CA41-,,77777, CC-U"'l

,.4

1l1";11

Rle
Bce

an

liM!
BIC11

,(A.}).ee93". (R41,"77400, CC-1001

(AU,IR")
aleS
BIC",
i ~"

HL.'

sty

eM'

Bee

BVa
aU

BP\.

CMP1" I

HL, T

CI.A

!lEe

ROR
MOil

E~ERelsER

MACY11 27(655 )
C014

sua
ece

16131~

1111314

i-CR .. ).1III0377

MOV
(113"'''4)
•• 4
BPL.
Hl.T
IR4.
!lWAa
.S[CISEV
(u •• e R")
81Sa
ace
91S1
BYS
a141
HL.'I'

eu

1,31110 2
1.2'UJl
lIIe411Jl
184"00

:1114726

014770
014774
014716
i!150f11111
iii 1 '5~ ,)2

I IR41"111177
I (J!3)_111171. (""""01313013. CC.,,100

,."

IsET Y
,(R3)"119311. (UI ' 1 " .. ee. eC""1l0"

(R3."R",
CMPI"
CMP*A
CHPI·

..'

(All.

,CR,),.000111

(RH
(RH,IR",)

J CII.}I'l'lIIIlr1J

"' .. SEp .. ,,,

IIR~'.IR4).188111111

U15~

pAGE . .

SUB1A I

eve
BH'
HI.'

sce
sue

81.05
AYS

(.113., t lll 4'

(R3+, e"4)
sualB
SUUB
,.4

'( R~)'111J1t1ll1" (IU 1'1177777. CC'''1l1lil
'BRANCH tf" C 011 it IS SET

~r~

(R 3 f,e"4)
MOVa
,.4

J (RU'l''''''''' CR 4)"11101l11lJ. CC"11lJ1l1iI

MOVlI

MOV
BEQ
eM,
HI.T

ADD

(R3.,(R4)
AODSA
AOOIA
AOO,A

'(1'13'-111111011111, (,.·"·I8IB00, CC·~lU

IR3.
(R31'IR41
(R3 I "4'
ADD*B
ADDIB

, C"~)U77n'
I CR"I,'777n

Bce

eNI:

001001

U~0U

06271.4
0115714
1il014~1

A001A,

BPL,
HI.T
COM
MOV
ADD

eelS
ADDlB I

1tJ44S0
10411(/)0
001l41il2
1100'00
0Skl000
01070~

005745
00'50 45

0e2!0t'12

J (R~1I177177
, cR~ I "1111""11" ("4111117777, CC-lIl11

SUB1B I

Bye

11lJ441lJ1I

11'1"'.

SUnA
SuBaA
,.4

Bye
AM.
HL.T

.."

ADD
TST

8EO
HL.T
SCOPE

J(R~'''''7777. (1-..)-,,77776.

CC·UUI

,.4

3102

3105
3186

J (A~I'1""77, (A4)'flJeefIJU, CC'li 1l 1

(Rlt,IR4)
BPI
Bla

BI"1I

00511~

,'l4724

"'147~6

pAr;E U

11153

OF SECTION 2

"'1111217
161314
11111402
1",24U
111111
10441110

~1472i

BEQ
BMt
HI. T

04.SEP" 7 4

sce

;15131"

"'1"636
1l1"640
131"642
J14644
031'1646

ST~>lT

CMP11

10'511J13
1l003t3
0",027"
01131'1
1013fJU
lIJ44"'0
",,,O314
e00263
1S3U2
U2411J1
100401
104400

;.1:!.46~!!,

eVS

001il24~

914624
1iI14626
01'1630
2114632
014634

0114652
Jl14654
"14656

MACy11 2'(6551

..

"2, fR .. )
IR4.

,

,CHECK 'I~AI. RUUI.T

, CHECK B I NARy By TE OPS USI NG ADDRESS MODE 1
,.6
BR
0
.IIORD
':WoRD
11
PC.R5
MOV
_(R, )
TST
.(R51
,I R5 lal1lll1l000
CL,R

iiiliii:iii~

1010 V

:;115226

005042
"05202
le 5 112

Cl..R
INC
COMB

~~1~::-a:0

021t'!277

'"1 r:;i~· "2

~CC

11; 215

"ovB

R"He
"c 112)
R2

(1'1".

i Rii!)CUIJI1l01il
IR2 POINTS TO ODD BYTE
I (Rii!).177"00

(R2; i ,R5'

I (1<2)·1774f'(:l, CR5)e!1lIH'!3?7,CC l lItl01

I

DeCKeD
DeCKCD

11/4O-11 ·45 r,PU EXERCISER
START OF JEC T ION 2

3123 015334
i?15036
312~
3125 1115040
3126 ~15i1J42
3127 Jill'!044
3128 131 5 0 4 6
3129 01505''
3130
3131 01S:!52
3132 1tl15054
3133
J15~56
3134 "15Z6'"
3135 . II 1<;1/l 62
3136 015064
3137 "15~66
3138 0115070
3139 015e72
.l15074
314~
3141
3142 >llSil'76
314:! 0151"0
3144 "'1511212
3145 oJl '5104
3146 ;1151':16
3147 1cJ15110
3148 "15112
3149 1i115114
3150 ~15116
3151 ~15120
3152
315:! QI15122
315 .. IU5124
3155 ~15126
3156 015130
3157
3158 1!I15132
3159 "15134
3160 "15136
31 6 1 0151411l
3162 015142
3163
3164 1:115144
3165 815146
3166 1IJ15150
3161 a15152
3168
3169 ~15154
31711' .,15156
31 1 1 1IJ15160
3172 ilI15162
3173 015164
3174
3175 U5166
3176 <115170

DeCK CD
DCCKCD
3177
3178
:!119
3180
31 8 1
3182
3183
31 8 4
3185
3186
3181
3188
31 8 9
3190
31 9 1
3192
31 9 3
3194
3195
3196
3197
3198
:!199
32"0
32"'1
32"'2
3203
320"
3205
3206
32 07
3208
3209
32l.0
3211
3212
3213
3214
3215
3216
3211
3218
321 9
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230

.13"f)5
~241il4

1:114"3
1II!§lL102
1<)5215
0014,,1
10<1400

HOVB1.

1I!J6312
U2376
10 6 ,,12
1111531'
10601'
0,,1iI257
121512
182001

J15326
>i15330

Bec
BVS
sEC
SPI.
INCB
sEQ
HLT

MO\lBl
MOVSl
MOVil
MOVSl
(R''''
•• 4

451.8
SVC
RORB
oECB
RORB
ecc
CMI'S
8ve

CR2t
.,,2
(R2.
(R"
(R5.

'SHIFT (R21 UNTI~
I CR2) ."00""0
, (R2) d00"00
, IR5I&08:!7?
, i R' l"0iHl117

(R5./(R2)
CHPSl
,·4

,(R" c011J0117, (R2) a:Llll011J00, CCcllilHI

J CHECK RESUI. T

(R2t. CR5)
BISBl
,.4

I (R2l c U"IIJII", (~51-t"0317, CC·10i11

BIS81.

RlsB
Bce
£1M!
HI.T

14121~

BICB
~ce

(R2., (R5)
8lCBl
slCBl
• +4

I CR"=UBIIl1l0, (A"·~00171, CC-000l

1038"'2
0014"1
10 011li;1 l,
;1.04400

1512t.5
103001
11110401
1044021

.."

Bto

BICS1.

, R3!1:!,0111000
IIR!lh100177
'Sf,;T C,V, & N
I IR2)"108000, (R5)!!S,80177, ce·iJ101

8PI.
lolL'

1,,5112
12121.5
0014"1
1944"'0

COMB
(:",,.B
8EC
HI.T

CR2.
(R2hC RS)

I (Ri)=0714Ql0, (R5111:\.00171

141512
O01"o2
11115712
001401
10"421"

BICB
eN!
TSTB
8£0
BICBUI HLT

(R5t, CR21
BleBU
(R2.

IcR,)aUJBl71, (1'121=000000, CC·0100

0004"2
"0 "HH:l 0

BR
':WORD

....

,*"
IRL$ERVE TWO WORDs FOR DATA
'SOURCE DATA

,*6

•

4-Se~.74

0
PC,R5

DC R,)
aCR,)
RS,R4
-(R')
R.. ,R3
"IRa)
R;S,R2
-U!21

u

l 53

PAGE 66
IDEST DATA
IR5 POINTS TO OEST 000 BYTE
IR4 PO INTS TO OEST EVEN SYTE
JR3 POINTS TO SOURCE ODD BYTE:
JR2 POINTS TO SOUHCE EvEN BVTE

,COHM[NTS ARE I.EAS.T slGNlnCANT 4 BITS OF' BYTES POINTED TO By R~'R3
IR4, AND R, RESPEcTIVE!.Y AI4D THE REMAINING BITS ARE ~"S,
IstT CARRY
SEC
, I R2) , I R:! ) , (R'" , 'R5 )
(R2t
ROLB
fIllll00 ,0""",0000
,0')113,,01100,
O000
CRUd H41
HOVB
IR2.
,en0,"0"0,0",,,S,,0008
ROI.B
,ee,,0
,111018,
0e01,
0000
CRllt, (R3)
eR2J
10t1l'0, e0H', "e0" 0e"e
(nt,
IRS)
10100, ,,01121,ll80 1,0010
HOVB
U000, "'010,,001,121"10
(RII.
AOI.B
(RH
11000, "100, '001,0"1.0
ROLB
(Rt., fRS)
110'0,0100,0001, l,010
elSB
'iefll0,01"0,eB01,10~e
SITB
(R't,IR2)
BEQ
SINJ
R
CRH,t .. )
11000, Blil11l, "101, liJU
BUB
(R 4 t,I R3)
11080, ,,1110, BlEIl , lU0
slTB
BINS
flEc
(RJ.
11 8 ,121,01111. 1II11l1, 1010
INCB
(R 3 t,CR4)
110"'0, 0101,0101, lID10
CMPB
BIHI
!Nt
ROLB
, 1"''',1810, 01h ,1"10
eRSt
IR3t dR5)
,lf1lllllil,1010, 0 101,lID 10
CHI'S
BINI
SNE
,03,00,101",0101,S,0UI
ASHB
(Ra.
IR2.,t R4)
'03..,0, 101e ,0101, 11il10
BITB
BINI
SEQ
RORB
(R5.
'''1'''', U110, 01"1,01111
(R4.,C R5)
'810",l1U0,0181,IH01
CHPB
BIN)
SNI!:
'0100,1010, "111115, 0101
(R 4 t
DECS
(R2.,IR" 1
10l,0, 1151" ,01500,0 1 ,,1
sICS
BJ~1
£IN!!:
,011i10, 1910 ,1010,11101
MOVS
c~3 •• (114)
(R3.
,"11110, "101,1010,0101
A5RB
~ICB
CR3., (RS)
,0U0, 91"'1,1"'1"', 011111
,.4
BEQ
Ell N11
HL T
'3COPE

,''''ill,

"'' 'fIl1,

:%r:

lS121~

131512
BU426
15131 4

131413
01'J1423
10 5 213
12131 4
0.1020
19611.5
121315
0U"1~

1.6212
131214
001412
116015
12141~

fIleUI07
10 5 31'1
141214
001004
11131'1
1~6213
14131~

001411:1
10440'"
lID 40MJ
010<1(1~

1012715

HAC Yl1 21(655)
','WORD
MOV
TST
CLRB
MOV
CI.RB
MOV
CLRB
MOV
CI.RB

0U000
012'705
005145
11!5"45
01050 4
105,,4'1
°10403
10504.5
0lf1l311l 2
105042

",,0 26 1

U'33HI
..J15312
.: 15314
<115316
J15320
,j15322
'1'3324

PAGE '5

BIT81, i

1QI6112
111214
1,,6112
111213
106112
111315
106112
U1 6 113

~15306

11153

R3
CLR
SEC
ROR
R3
R3, CR,)
sIS
+SEC!,tvISEjj
CR2t,c R5)
BlTB
SITSl
!'ICC
8ITSl
BVS
sE:C
HI.T

00S003
"'00261
006003
0S0315
008273
13121 5
113002
3.02401
001401
104400

01522"
01'3222
.,15224
019226
1.'115238
",15232
"15234
1il15236
01'240
015242
1l1524 ..
015246
",1525"
iIl15252
01 5 256
215260
':15262
>315264
Dl5266
;1:115270
1<115272
['15274
"15276
,'1530"
01';3"'2
oJl '53i1'4

4 w SEP.14

CMPS1.

10040;1.;

104400

015216

1Il1525~

27(655)

ElMI
HI. T

11/40"U/45 cPU EXERCISER
START OF SECTION 2

.,15112
Jl'S174
0315176
r!152"fI
;; 15202
015204
015206
015211il
015212
015214

M'~YU

011001!11

I eHECK BINARY "ORO OPS US ING ADORES:) MoDE 2 & 4
,SET DEST I NAT 1ON REGISTER
R4,R5
MOV
#1,(R5J
MOV

DeOKeD
DeOKCD
~231

3232
3233
3234
3235
3236
3237
3238
32 3 9
324"
32 4 1
32"2
3243
324"
3245

~~:9
3248
3249
~250

3251
3252
3253
3254
3255
~"'C;f

32;.. ,
3258
3259
3260
32 6 1
32 6 2
3263
326"
3265
3266
3261
3268
3269
327ii
3271
3272
3273
3274
3275
~276

3277
3278
3279
32B0
32 8 1
3282
3283
328 ..

DCOKCD
DCQKCD
3285
32 8 6
3287
3288
321\9
3291/l
~291

32 9 2
32 9 3
32 9 ..
32 9 5
3296
3291
3298
3299
3300
33ill
3302
331'13
3304
33"5
3306
331117
~31l8

33139
3310
3311
3312
3313
331<1
3315
3316
3317
3318
3319
3320

11/40~11/45 CPU E
ST4RT Of SEen ON

.01533"
015340
~15342

015344
11115346
U5350
i315352
01 5 354
~15356

,,15360
1315364
015366
015310
015372

012712
/1100257
01ii1"262
1ii16222:;
1. 301ii1 2
111124'"
001401
10440"
10100262
024527
10301ii12
1112401

1/J54225
Ul301111

i:~::;

015"0"
215406
il154H'
.115412

090217
"002,,4
1622'"
U3402
U24U
"014£11
1134408

01'''16

~1542e

015422
015"2'
015"26
015430
015432
at543"
015436
iIl15"40
~15442

015444

MOV
ecc

!lEv

ADD21

eM'

Bee
evl
CHP21

BtS21

Bel

8YS

8EO
SUB21

COM
sce
CI.N
alC

ace

1el'" "1
1111 .... 0"

012245
", 5 125
000262
03424:;
1,,3802
1£12401
"014101
104400

2il'H72
015.'<1
.115476
015500
<115502

01lJl!'262
05222'

BIC21

125252

.115522
01552"

Jj15526

C!15532
;)1553'1
"'15536
"15540
\!15542
~155""

215546
0 1555 11l
U5552
0115554
1015556
1Il15562
k'J1550"
2115566
<115571'1
1115512
1111557~

015576

1!1 5600
~ 15602

3321.

~156",4

3322
3323
3324
332,
3326
3327
3328
3329
3330
3331
3332
3333
33:34
3335
3336
3337
3338

"15606
\)15610
01"612

01115"1i!
00 5 122
162742
1034.,2
1Ii!I24U
181/1401
104400
10 4 10"
01"7e2
01 il1 205
124245
11101411!1
11l1"40"
e20237
"81312
1,,400111
00134"2
"00 "Iil "
e"l!!e0"
1Il1""'J
11105743
: 1 0 300
i:10S02
iOilI53ki2
01060"
';;106"~

""574!:!

IHS

8HI

~E'

CI.R
COM
SUB

0eU01

Bel
SUB2A I

151
0et011l

BVS
8MI
HLT
seop!:
MOY
MOV
cMPS
flEQ
IoILT
eHP
aNt
sCOPE:

12202~

CMPB

eM"

~1563"

<'!211J406
;"01014
ia20003

~15636

~0Hl12

,

1>;6~4

,IR21'S,17777, (R5ji!l01J""IIiI, CCIlli!'lilill

.(R2)
( R'5.

• C1'121-"''''"
111'1', -117177

(RU·.'R"·

Ie R;r1-'''1lI!l01.( 115l !177176 ,

CC-101111

....

1("'''-052525

Cca"101

...

,

.... S"'.74

UI'~

PAGE 68

'1.2"',Z,"IR5)
fR5.·

.(RII,,,(R"

, (R) -052525
, (R,h1252'2

,+4

(R2t
11'12.·
.1II1,.CR2 I
$UB2A
SUBZA
,.4

, CRiU·1Y7771
,(R2h17H?6, eC.Ue0

PC,RZ
R21A'
.(Aa),_(R"

,GET CURRENT pC
I HOVE TO R,
'COMPAAE ALI. PIIEVIOUS MEMORV ADORESSES

Ri,·,pRSHa

,(:AIIORI
'OHECK fOR I.DW I.IMIT

.."

1$

, rIRS' CIoIECK AUTO INCREMEi'lT IDECREMEf'lT
R3,R"
MOV
Rl!.R2
MOV
Ri!
OLe
SP,R4
MOY
SP,R5
HOY
",R,)
TST
HOyB
CMP
aNI:
CHI'

154641il

(R2'-'''1R!ij
SU92
SuSa
,.4

I CHECK BTNARy ByTE ops USING ADD"ES$ MODES 2 & ",
,.6
,RElERY£ TWO WORDS
RR
Iil
.SOURCE DATA
.~WORD
e
JDEUINATION DATA
.WORD
PC,RJ
MOY
"CR,)
TST

114046
"'2il1506
IiIQl1f/l21
02820"
0QlUl1

II: 20 506
~H0::7

, (R2' 8177777, (RS '-117777. CC-l"l/Jl

HI.T

810
COH
eH'

12!15614
;'15616
1<11562"
""5622
01562"
2:15626
a563r/l
015632
215640
:1';0 4 2

-(Ra)! IR51.
81sa
,.4

.."

1(1'12)-125252, ''''1''177777. CC.1011l1

stv

BIS2AI

001<401
1111440111

.IR',UIiiI0Iii1U. eCllll1J81

(1'12.·,11'151·
BUiA
BIS2A
,.4

BEQ

HI.T

HAC Y11 2'("'>

,,"5516

'$tT V

e(R5) "1
CH'a
eH"2

elT

11,413-11'45 CPU EXERCISER
~TART Of SECTION 2

""5520

,.4

, CR'f) -1252'2, I "'1l1li52525 I

BY'

:~~U~

17 I (~5) -1II1ii1111., CC-"1"1

"(R2) ."(R'J
elTa
8lTa

Bee

125252

IIA:o' - .. i'

-ln2U.~'R2;
(Ri:.· ... CR )
(1'15 ••

BY'

10441111'

fI" ••• IR').
A008
AOD2

MOV
MOV
COM

8":
HI.'

10~0"2

0"274,

.,.

' .. it CR2)

S[v

BU21

,.AG

BICi
BIC2
Blei

102"0"
;1.00401

:.'I15~0"

H,'3

BY'
8£0

Bce

015506
01 5 512
;,:;1 55 14

4"S£P~7"

HI.'

NEIl

1i14222~

"12742

flce
BH%
lolL'
sce
CLI!

SUI

11/)31lJ03
102"12
001481

615446

8Mt
IoILT

ills

005""2
"05115
000277
"0025111

015452
,,"5454
015456
015460
015462
015'164
ilI15466
01547"

Aor
Bce
BYS
BEQ
MI.T

,tv

0B1!l001

U!440"

0l1540~
~154~2

MAeya 21U5,)

'777

Ul0".1.

015374
315376

~15414

qc I SEI!

BNt

eN!:
CMI'
AN!:
8UB
CMP
13NE

',(R,,) ,'"(SP)
R5,SP
B IN8
R2,RI!!
BINB
(R"'.",ISPI*
R4,SP
BI'18
RrlltR3

BI NB
,,(SIl) .-PHl)
R5,SP
''I'" B

DCCKCD
DeCK CD
3339
3340
3341
3342
3343
3344
3345
3346
3 34 7
3348
3349
33Sr
33 5 1
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
33 6 2
33 6 3
3364
3365
3366
3367
3368
3369
337e
3371
3372
33 7 3
3374
3375
3376
3377
3378
3379
3380
3381
33 8 2
3383
3384
3385
3386
3387
3386
3389
339f1l
33 9 1
33 9 2

DcaKCD
DC OK CD

11/4<1-11/'; <; CPU EXERC I9ER
STAHT OF
",15646
01565f/1
J15652
.,1'5654
d15656
t1566f/1
~15662

Jl '3664
.015666

HACYll 27(655)

4 .. SEP" 7 4

11,53

'-'2Q!200

CMP

R2,RIil

il 01f/1 05

BN~

SINS

1426?0
1il2040 b
130101.12
020003
0SHU
1134400
10 4 £11110

BleB
cHI'
BNE
CMtt
BEQ
~I. T
SCOPE

16154
~16156

~se00f1l
~0ciJ000

J IR4h077777
II R3) -,,'0£100, (R4 1-077777

,.4
It(RIlt,,"IR5)
ADDa
, +4
1t',(R2I,"~5)·

BICII

,.4

I
"",3401
011401
10"''''''''

e16'06
016512
11116516

112700
iIl12765

11I0I1J377
01632<4
171771

,,11\5'4

~;:6530

1"'''~!H''

~1~!2~

00140"

Ou"i",~i,~i

U6532
a653'"
1t16542
e16546
11:16552

10440"
"16324

SOATA(2),DDAT4(5)

01632'"

SDA1AI21
SDAT AC21
SDATA(2)

"66265
iollll 6 362
111215162
~3626~

ADO

eCc
BVC

11116324
0163<'4

ACC61

~r~

SUB61

RC!
BEQ
HLT

AS\.

SUB

2116326

11J16326

MOVB
MOY
MOV

ISOURCE OATA-125j!52

SDA'A(2) ,DOAT4(5)

01646«1

01 0 11162

1II1t326

,GtT AEI.oCAT10N FACTOR AND UsE AS 4N
'INOex Y4LU' TO POINT TO DATA
,PRUE'!' OESTINATION DATA
'l,SOHAIZ)
,THIS RoUTSINE pUT A 1 BIT INTO EVERY
So.'.(2).0041A(')
IOTHER BIT POSITIOIl llii THE DESTSOATAta)
'INATION ADDRESS (52525)
SDA,Afi/)

0662n
1I:S'12
102802.

211651110
"16502

2116324

11J1'326

.. ,F,CTOR,ltr
RZtR'

OOATA")

, .4

ISDATA.52524
50A,A(2) t DOATA(',

SOA,AI2)

SUfi'

,."

'377. R0

RII, SOAT AI 21
'-aDDATA(5)

,

.~

.DDATA(~l

DeOKeD
DCOKCD
3545
3546
3547
3548
3549
35513
3551
3552
3553
3554
3555
3556
35 57
355S
3559
356.,
3561
3562
3563
3564
3565
3566
3567
3568
3569
357rz
3571
35 7 2
3573
3574
3575
3576
3577
3578
3579
35811J
35 8 1
3582
3583
3584
3585
3586
3587
3588
3589
3590
35 9 1
3592
3593
3594
3595
3596
3597
3598

DCOKCD
DCQKCD
35 99
3611J0
3601

11/40",11/4'; CPU EXERC I SER
.; 1656"
216562
~16564

1i!16570

l16576
016600
~166132
~16606

13166U

4.SEp.,74

Po4llE 73

11153

0014e1
104<400
005162
"2626!j
081 4 01
104400
1C1262""
001352
1048""

BEO
1il16324
"'16324

~~~
CMP
BEQ
I-ILT
CI'tP
BNE
sCOPE

"16326

016324

,+4

S04T4(2)
Soo4TA(2),ODATA
,.4

f

5:

SQAT A(2),R0

is

I CHECK a INARY BYTE QPS US ING AD-DR'tSS MODE 6
INOTEI SOATAB(2). AIIID DOATAB(4) IItFf;RENCE E"EN BYTE or SOURCE; & OEST DATA
"NO SoATAB(3), AND ODATAB(51 -'E'ERENer 000 BYTE Of SOLIRCE & DEST DATA
;'16612
"-16616

.t16620
,"16622
11:16624
16626

.016630
216636
116644
·16652
1116660
i:' 16666
' 16670
;'116672
<:16700
,:167"2
;UN4
216712
>:16714
1?16716
<:16724
Itl67J2
~16'34

0137132
01 021'l4
uc 4 e 3
0,,5203

"IUI"4

01e30~

000261
012762
112763
81 6 264
"52764
136263
001401
104400
146264
103401
1e449"
126364
0e1401

1262~o;

IIl11r ACTOR. R2
R2. 1it4
R4,R3
RJ
R3,R5

,I;IET INDEX "AI..UE
'Rlf fOR SOURCE EVEN BYTE I t-OEX, R4 fOR
IDtsT 000 BY TE, R3 rOR SOURCE EYEN
'AND R' rOR DEST ODD BYTE

BICB
BCS
I-ILT
CMPB
SEQ
HLT

sOATABe 2) I DOATABC 41
,.4
't:RROR MOY,IiIS.BP.BIC 00 t-OT AfF'ECT
SDATAB( 3) dIOATAB( 4)

ISET CARRY
#12'252 .SQAT AB' 2)
#171125,SOAT4B 131
SDAlABe 2) ,DDATAB C4)
#12'125 ;DOATAB (41
SOA l' AB (2) ,50A TAB C31
,.4

125252
177125
11J16754
125125
11J16754

016754
016754
e16756
"16756
",16754

"'16754

016756

e167 5 4

U6756

1.'16754
016754

11116756
016756

BICB
CMPB
BEQ
HLT

SOAT AB( 3) ,tlOATA8( 5)
SOArAB (2) ,0DA14B (5)
.*4

"'16756

016756

BlTB
PEO
HI.. T
SCOPE

DOA,AB (5) I DOATAS (41
•• 4

BITB 6 1

le44eil
146365

MaY
MaY
MaY
INC
MOV
SEC
MOV
!40VB
"lOV
BIS
BITB
BEQ
HLT

",,14U
10440111

ISOURCE DATA " 052652
IDEST CATA

~

177777

,."

;'167511'

136564
01!11401
104400
1e4000

kl16752
"'16154
2)16756

000406
00000fIJ
00 " ",UI

SDAlABI
DOUAB'

016760
('16762
icl16164

001210"111
"0080"
iIl0"09'"

ICHECK BINARY WORD OPS US ING ADDRESS MoOE 7
I Ra.AODRESS OF' SOURGE DATA, AND 1131 ADDRESS Of OEST DA T A
'CONTAINS ADDRESS Of' SOURCE DATA
0
SBIN7.
:~WORD
.CONTAINS ADDRUS or DEn DATA
OBIN"
0
ICONTAINS SOURCE DATA

1<116736
"'16744
,~U746

sR
;WORO
:WORD

,RESERVE TwO WORDS
,RtlERYED 'OR SOURCE OA 'fA
,RE8ERVEO F'OR CEST OA fA

UB7

"
'"

.:.:g:g "

11/''''''11/45 CPu EXERCISER

MAC'I'l1 27(6")

4-SIP,,74

11153

PAI!E 14

<;T 4RT OF' SECT lON 2

<,16766

0000"''''

,woRD

i/l1677111

010700
02 4 040
01"9.,2
02"242
010912
919203
024843
01001 3

MOy
CHP
HOV
CMII
MOV
HOY
eMil
MOV

~~:§ ~Ug~
J604
3605
3606
3607
36,,8
36"9
361'"
3611
3612
3613
3614
36i!5
36 1 6
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
36 4 1
3642
3643
3644
3645
3646
3647
3648
3649
3650
36 5 1
3652

MACYl1 27(655)

5T 4RT Of SECT I ON 2

2'16776
Jl?1Hl0
·!11i1102
",1 700 4
;)1'eI1J6
.Jl1eu
:.l171312
01712120
1211712126
317il3i!
11117032

uB',

01704"
",11042
itl1 71il 44

91110261
012777
"17777
10301111
11111401
1,,0440"
086377
102001
0'14i!1
11114400

:.l1 1 046
"'11054
131 1 056
12117060
31 7 062

"27777
11113402
182401
U,0401
U4400

1717"6

:Il11064
1311072

16"777
1213803
102""2
091401
19"'4"1
1114400

17167111

01'1""
<117119
1211 7 116
.;1'120
017122
"17124
017126

'116277
067777
1111381113
102i!Il2

1176!50
177644

177644

1111713'"
cJ11136

047777
011401
1Q)4400

177624

177624

1il57777
10"401

171612

177612

1776"'111

1776"111

017~34

"1

"n"

"1111176
~17108

"'17102

ill'l""
~1'142

"1715,,
"17152
:Ill'154
,)17162
:317164

~~~:~ "t( R3)
R", CR;S1

!EC
12190"1
177734

17774111
177734

#1"09ii10.IISIiIIN7
IISB1 NT, 'Dii t N7
MOil'

,$QURCE DATA • li!~009
JOU" DATA - 111l"""

IID9.N7
•• 4
,.4

'OUT DATA - 01101C100

CM!"
BC!
BYS
eH!
IoILT

IISBp:',.,DBIN7
CH P1
CMP1

"R2)-1""'9"0. CR31·"'1110110

sue
BCC

IISSlN7.,DBIN7
sue,
SU8J
sua,

,(R21=190000, (R3)-10"'11109

HOV
MOY

Bec

MOV71
1777 2 2

BM!
HLT
ASL
BVC

9£0

.."

HLT
177111'6

CHP7J
171670

Bve

194400

.....

SUB7.

IIS s lN'
IISBIN7.,DBIN7
ADOJ
AOD7
ADD.,
, .4

A0071

ASR
AOD
Bec
eVc
SEQ
BPL
IoILT

elc

IISelN'.IIDB1N7

,IRO!)-141il01il1il. (R3).91C100IJe

F11S
RMI
HLT

IIselN1"OBIN7
,.4

I' RiI) =141!1009, (R3) -,,40"130

CMP
REO
HLT

(lS8I N7'IIOBIN7
, +4

BEQ
HLT

10<14""

,.. "

aED
FlHI
HLT

~:i:~~

fl27777
Iilll14 ('1
10440fl

'CONTAINS DEST DATA
PC,RIll
• CRI). - (R' I
R8,R2
"C"') ,"(R2)
RJ"R21

..

,

I (R2)-140000
,(R2)~140000.

CR3P'04001J0

'C'

DCCKCD
DCClKCQ
~6':53

H~~~-6V~~c~~5N E~ERC I SER
017166

le 4 0ce

1,1153

PAGE '5

'SOME MISC~I.LANEOUS opERATION

~657

01111~

3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
367"
3671
3672
3673
361"

017112
311116
il112""
01 '202

3616
3677

4 .. SEP.7 ..

SCOPE

3654
3655
3656

3675

MAC Yl1 2""5)

1i!112~"

e1 7 206

;'l721'l
<)11212
,,1"214
0317216
011222
ill '226
!~11232

ll1 723"
"1724111

"172""
017246
, 172o;l1!

"e 5 8fJll
00511167

INVOI.VING TH' PC
,NOTE I NONI OF THESE OPER4TIONS SWI';";J /." ,Eel "ltE PC
Re
CL"
1$
CL"
PC,RC
MOV
PC,IIIC
cMPS
alT
RIII,IIC
ADD
PC
TSTB
PC
ADC
(R't, PC
eM'
(RU ,"c
RITB
ADD
U'ACTOR,PC
eM'
.,'ACTOR,PC
RITB
NOP
'THE NEXT TWO I NSTRWC,. I ON CAUSE TH~ PROGRAM TO JUMp TO THE UNRELOCATEO
'CODE ANn TO RETURN ON THE FOLLOWINIi IHIiT (IF' THE OODE IS REI.OCATEO)
'JUMPS TO UNREI.OCA TEO COOE
SUB
'tIIF'ACTOR,'C
.,,. ACTO", PC
ADO
'RETURNS
NO'
.. (sP) IPC
eM'
(S" •• ,Pc
etTB
1I"c
CM"
1I,IC
SUI
!3IC
1I,'C
,B,.ANe", OYER 11
9R

000ii!i2

81071117

pc,Re

1207'"

eJ~707

060007
Ul5707
0,,5507
021007
131,e 7
r11627fJ7
0237"7
133707
01.241

1637e7
063707
0002"0
"24607
132621 7
1267"7
1661"7
e46707
000 .. "1

'",pc

0000"e

!!lU'"''
!!l01I!l0"

01111111111"
111"100"

::'7'

~'17252

36,."
3680
3681
3682
3683
3684
368,
3686
3681
3688
3689
369"
36 9 1

1Il17256
2)17262
01'1'266
017211!1
1317272

"'U"0el1l
' I!I''fIJ

lSI

III 1 1214
;1111216
J17302
,,17306

01111102
062702
e1271117
B8IHJ""

Pc,R2
MOV
AOO
'12,R2
MOY
'REIiOC,PC
l161113
il61604
116261115

:l17572
2'116"'£1
017606

112773
13277;c
01/11401

TST
toIOV
MOV
INC

• CR0 1
RI1I,oolseR01
R0 ,.6 I R0 I
.,6 CR01

JR0_ADDRESS OF' SOURCE DATA
I~OAD ADDRESS OF" SOURCE EVEN BYTE DATA

CLR
MOV
MOV
MOV

R2
#2,R3
# .. "',R4

ISET INDEX REGISTERS
I,S81NB7!21,.S81NB7(3) RHERENCE EVEN &
1000 BYTE SOURCE DATAl '08INB7(411'08INB7(',
IREF'ERENCE OEST EVEN& 000 BYTE DATA

CLR

cL"

#-1t'sBINS'1(:51
#377"S8IN87(2)
,. '"

11117472

BlsB
INC8
BEO
HLT

"SB&N81(31.'OBINB7('"
'DBINB7(4)
'CHECK THAT 815 SET ALI. BPS
,."
IIDBINB7 (5)
J OE5T DATA • 177400
,OBINII7,,,)
,DEST DnA. 177401
'SBIN87 e3), 'OBI NII7 C5,
,.4
'SB,N8 7 ( 3 )"OBINB71"
,.4

Z1763111
01763<4
1111'7640
UH46
"'1765111

105375
IIJ052'"
127375

11117472
11117472
017462

1,,44£111

DECB
INC
CHP8
BEQ
flL"

U7652
1Il17660
11117662

14737'
0014"t
1044010

BleB
BEC
flLT

1117,664

10511173

011462

:17670
1(117676
ll771112
:t1711114
e17712
017714

157473
11116174
103312

011472
11117472

911462

82271~

17740"

III 1 '462

U7716
"1 71 22

11100372
112775

11117462
00111208

917472

11117472

IIJ11!14~1

11117472
11117472

01H62

11/4k'J-11145 CPU EXERCISER
START of S[C~ION 3

111,,0277
16021<'
1£144"0
06"222
1044"0
""6342
1e 44 k'J0
106512
10441'10
170412
10 4 400
00422"2
111440111

1112111~22

020024
<,2111"26
0201213121
;J2k'J1i'J32
1'1211J0304
02"036
02,,040
11120042
02011144
020046
111200581
~2"12152
e2111J54
0211J11l56

3883
3884
3885
388~

;Q'--

38(,0
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
39110
39 9 1
39 0 2
3903
39ril4
3905
3906
3907
3908
39~9

3910
3911
3912
3913
391<4
3915

DCOKCD
oCQKCO
3916
3911
3918
3919
:192"
3921
:'922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
39H
3938
3939
3940
3941
39 4 2
3943
:594<1
3945
3946
3947
3948
3949
3950
3951
3952
3953
395"
3955
3956
3957
3958
3959
:1960
39 6 1

~!~~

11/~" .. t1/45 CPU E ,ERCISE"
START OF' SECT I ON

Z20140
02814<1
021'!152
02016£1

1i!1270~

012737
"12737
111400111

4~Sip"'4

2$1

, RE,ET STACK PTR
'STKPTR. SP
'E"""T, UERRVEC I RUET TIME OUT VECTOR
'RESES" .1IIR£;SVEC

01111l!104
000010

MOV
MOV
MOV
SCOPE

111 53

pAGE 19

ICWECt< .IMP I/,/SrRUCTt0HS
0211162
020164
02(111£1
<122'172
l2itll74
2120176
020200

01l!17l!10
06270"
"\!I0277
'lQl011il
0l!1041!12

020202
ilJ20204
1321121/16
02~2111!

"2;)212
11!2021<1
1il2iD216
020220
"20222

fo10V
ADO

PC,R0
'12,RII
(RB.

00071!)

JMII
8R
CL.N
8R

103003
1021Ul2
0019l!ll
101!11!101
1114400

eee
BVC
BNI
BilL.
lolL T

JHP&
JHfIIS
JHPI
, .4

CLI!
MOV

R2
PC,Rl
,.4
0
IR3t·
R3. (R;'II
1'13,1'10
'22. CR3)
R3,RIII

~2a22"

0052102
010703
000<101
01!101!100
0t5723

vJ2g226
02"230
0120232
.12\3236
o?2f1l240
.120242
J2iil244

£1111300
06271.3
11110300
0110133
""041!12
005102

,020246
"20250
il2"'252
.,2025<1
020256
02"'26"

"05002
010704
111040111
0110402
0051112
00040.3
022<12"
00 5 72"
110il144
8052e2
001"o3
1122020
120004

:l2030~

'811

+;~RD
HOV
MOV
000022

400
HOV

1820316
1120320

0,,1<101
1£1"",,0

020322

010703
811"<101
"0""00
110'5123
010313
062723
010 3 01
0"U02
",5102
"80401
",,01'505
8052"2

"2~324

",2..,326
112"33(11
2120332
"211334
0 2 0 304 0
"203042
0293044
1620346
02"350
2120352
0216354
02030;6
,,2,, 36 0
120364
120366
e20371i1
02,372
020374
02"400
18211"02
112 I.H

",,041il2
",,,51212
00'''0 2
1i'10"167
005202
""1401.
10<1 4 iii 0

1120 4 06
1121:'J" 14
1i121i1422
1121842<4
eU426
Il2tl1430
C20<1H
;::20 4 36
i!2.440

O12767
"63767
O00402
0185102
e"403
"01i1177
",,0t0"
",,521?2,.,51\1
:2,,512
, 2~514
02"'516
e2i'J 5 22
!320524
;;2111526
<12053"

1 13011
1 1 20410
e"'U~7
10k'H'k: 6
12I",5121Z2
1111271'.104
1216160 4

,:2,,532
1;'2<1536
e20 54 0

01;>;7C4
91115"00
91 2 71?5
0604C~

"105C2
012715
060415
""0"01

120566
:t20570
~20572

,"20 5 74
l211l5 7 6
1r!2061212
1020604
alil61l6
.'20610
.:21:l612
e'21il614
;120616

JSR11
0"HHl4

020576

"1i!I01i!1~0

lS,

00"435
0052"21
001913
O00413
005H'"
00020 04
1112703
0616"3
0204(,J
00Ule3

211
3S 1

'lSi
920564

091766
1214400

32,,642

1&20644
0206 4 6
11206SI!
.!I20652
02065.
020656
~2,,662

JSRJI

013704
01.241i'''
1:11'.'17'-"3
00"401
0(211Z1405
022323
000217
0(1'4443
104"00
0,,1lI41"
1,,3012
1021!111
00181"
U011l07

011"".

0127~2

92"6 4 2

I'l"

"0"204
104400

!2104e!
'2iC 42
,,21(,44

10""lJ
0fl180.s
0202~ 4
02!H126
flll"k"413

1,21020
~21 1:'22

",21024

BCC
ElV!
BNt:
ePL
CL.R
MOV
ADD
CHI"
eEO
HL.T
MOV
CL.R
MOV
ADD
MOV
MOV
loCO
BR
','WORD
JS~

INC
BNE

ell

COM
ATS
MOV
ADD
eM'"
eN[
TST
CMP
REC
HLT
MaY
MOV
MOV
BR
eR
CM"
sCC
JSR
HI.T
BR
acc

eve
eN!

ePL.
MOY
ADO
CM"

aNI;
1ST

MACnt 27(655)

JSft41
JSR04~.

lS,
211
1777'"
3S,

1

012705
0107<16
062716
01262:>
0e5e00
9527<1111

:~20746

11153

pACiE

e1

,CHECK THAT JSR DID NOT
,ArFECT CC'S

:~l~A~N~~~b~:i~~ ~ETUR~
11000 RELOCATION

~CTOR

ADDRESS
(OL.D ~')

~~~~~ ~H;~A ~L.~E~5 R~A~o~,:r~~ ~~T0~~

:
I
'ERROR I ABOVE

~.F" ACTOR. R.

RI1)

-15, R,

PC

,GET REL.oCAT ION FACTOR
,SET INDICATOR
,SET UP JSR DEF'ERRED AORS

R.,R5
R5,R2
.5$,(R5)
R., (R5)
25

IIR5).OEST ADRS
'REsERVE WORD "OR ADDREss
,CONTAINS DEST AORS rOR JSR
I.JS~ TO 55 VIA 15 ABOVE
'CHECK INDICATOR

"

R4,II(R5 )+
R0
JSRJ
JSR3A
R9
4
*3S,R;5
(SPt,R3
R.,R3
JSR3
(R2'·
R2,R5

ICOI'IPi..EMENT INOICATOR
J RETURN rROM SUBROUT I NE
J Gf;T UNREL.OCAT!O HETUR~ AODRns
,ADD REL.OCATION rACTOR (OL.C R~)

ICH[CK AUTO .. INC R5
IGO To RTS
,ERROR ABOVE

45
"'''ACTOR,R.RII, R5
PC,Rl
21
'IS
(R3t., (R3,.
R04 ... (R3)

IGO TO 2S

JSRtIA
JSRIt
JSRI1
JSRIt
,JSR4
'3i.R2
(SP.,R2
R2,R4
JSR.
(R" ••

4.St p ,,74

'GET UNRE~OCATfO RETUR~ ADDRESS
IAOO R[1.0CATION fACTOR (OL.O R~)
.CHECK THAT CA!.CUI.ATED RrTURN
IPC
NEW R4

=

1,1.53

PAGE 82

SEC I ON 3

020672
1320674

~2'1136

JSRJAI

iSi

11/40-11/45 CPU EXERCISER

1320732

5S1

0616,,2
11I2132C4
"31002
",,5,?4

'20664
iJ21iJ666
i20610

"20740
1!12(l744

JSR1A I

0205 6 9

flJ0572~

,~2"640

~~~~~~

JSR:l
JSR1
JSRl
JSR1
R2
#3, $, R4
!SPt,R4
R4IR!!
25

0202C5

e21il620
fl213624
f21d626
~ 2"630
0213632
(,21Z1634
e2,,636

020722
1!20724

3S,

020466

""1765
10 44 00

~2"544

~2012e

4",Sp;P.,704

02941?~

i'J20546
t:213550
·?20 554
",20556
:1!20560
il20562
i/2i'!564

START

MACYll 27' 655)

,J::cTION 3

032113;'

AT!
HL. T

IlR
8R
MOV
,JSIt
8MI
HL. T
CI1P

eM"

SEQ

,JS"6A.

000020
.,09004111

0e0201rl

9"0357
"'80144

0802",11'
",02564
177762

14"8"'15

HLT
SEN
RTS
SCOPE

R.

2S

3S
Pc,RIII
PC,lS
JSR6A
(R9 •• , (Reh
RIiI,eSP)
,.4

'CHECK THA T RETURN ADDRESS
'STACK

1S

ON THE

'SET N
Pc

10"'ECI( loT TRAP lAND ROL.B/ASI.S)
ITHIS TEST CHECKS THAT THE PSW IS CORRE:CT APER THE lOT AND THA T THE
1 'NEWIPSW (FROM IOTVEC.2) I S CORRECT I
lsn R'!l.AODRESS oF' IOIVECTOR
IOTTST I MOV
IiIlo'VEC.R5
PC,.ISP)
MOV
' l Sw ., (SPI
ADO
(5P •• , IRS).
'L.OAD fOT TRAP VECTOR
MOV
R0
C~R
,pRTY4, .. (I~I"
ISfT PRIORITY LEVE~ 4 IN PSW
1315
IPSW~X xxx X0" 001 1Xl "'1110
(RIIl.IIR5)
MOV
'SET IOTVE.C*2=PSW ASOVE
, SAVE IN R4
(R5.,R4
"40V
,pRlYY.17, (R0)
BIC
'pRT'I'3·i!1 (Re)
IPSW"X xxx X"III 11101 1X1
ql!
IR3 : "SW ABOVE
(R0 •• ,R3
"40V
R3, .. (R0)
"lOY

tI!I"

10$1

lOT
lolL. T

lS,

"40V

(R".·,R2

MOV
MOV
MOV
ACD
CHP
RNE
CH,.
BN[
RIT
BMI
SNE:
CMP
"'NE
RR

_PATH, (R"
II,TYPf;,.("I5)
Pc, .. ( SP)
'1"'5",. (SPI
(SP.
(Sp).
99$
(SP.",R3
99$
IIUM,RJ
3S
25
R2,R4

'ERRORI

*,

99~

4$

lOT rAILED TO TRAP

I GET PSW AfTER lOT TRAp
I NOTE 1 R0"0
IRESTOAE IOTVEC.2
'AND InTVEC
IFORM IIC Of' 1"$ ABOVE
,

CHEC~

RETURN PC Ot-. STACK

ICHECK SA Y£D pSW
,BRANCH TO J5

IF"

I~

UliEH MODE

JBRANCIoI TO 2S IF" III SUPEA MODE
ICHECK pSW ArTER lOT

nCQKCD
DCQKCD
42'18
4019
4090
4061
4£162
4083
411184
411J85
4086
4111'37
4088
4089
4090
4091
4092
4093
409"
4095
4096
411197
4098
4"99
41e!"
Hi!!
41 0 2
4H'l3
4.\.1£, ,

41i/1S

4106
4107
4106
411119
411111
4111
4112
"113
4114
4115
4116
4117
4118
4119
412e
4121
4122
4123
412"
4125
4126
412'
4128
4129
"13O
"131

DCCKCD
oeCKCD
4132
4133
413"
"135
"136
4137
4138
41 39
414111
4141
4142
04143
41""
4145
41"6
"1 4 7
4148
41"9
415111
41 5 1
"152
H53
4154
4155
4156
"157
4158
4159
416"
4161
4162
"163
H6"
4165
"166
4167
4168
"1 6 9
<4170
4171
4172
4173
41741
Hi'S
4176

11/4111-11/45 CPU E> "RCISER

HACYl1 21(655)

.:i21 Z4 6
021052
.,21056

2$,

START OF SECT I O~

i!21~6Pl

,;21"62
;:21;'64
~21,;70

,)211)72
~4?1~74

.l21~76

1tl211iH:i
0211~2

82111214

1142104
052704
022'204
001017
01""404

111:,

1352704
Gl202M
01l1l1'J12

330020

02111 4
0h116
Z21120
?,21122
\10/1126
021132
;121136

"1111437
012706
104001l

;12114O
::21142
\02114<1
"2115111
1321154
11:21156
02116"
«21166
;;21170

00511110
010746
062716
012637
"011126:2
013737
:J002"!;
104000
0111H3J

"211111J
~2i1l2

;~~g~
021176
0212130
02i202
02121114
021206
~212Hl

021212
r.l2121"
1:l21216
02122"
1:12;i222
021224
021226

0"27~4

3$,

451

~2i232
~21236

021242'
0121242
021244
tl212 4 6
021250
1d2i252

~~U;:
021260
~21262

"'2i26"
021266
221 270
021272
,,2i 2 7 4
£2;'302
"213"6

,,2{318
1l2i316
021320
02 32
02 33""
02i332

011113,,3111
01110Q130
177776

0001il32

1

02~340

0213<12
1I!2i34"
~2p46

01".,.6
"62716
"'12637
1111'21"
flJl3737
0.il26.
I1IUI7""
01118264
10'411111J

EHT11

4178

"1 '9

~j/1.4""

"""IiIIU:~

4181
4182
418;,

01271'2
111271:2
012742

41.84

.21406
",11412
j(;2i416
1'21422

411'\'5

"'214~4

e12742

R8
995
991
99$
Rl
It4

"U.T

Bve
eOHB
AOeB
AORB

Bve

I!IPI.
eee

NUB

,ROT ATE Re
'UNTIL V SETS (R0·2e01

, .. 2

'S~lrT

SHOUL.D SET CARRY

,[RRORI RO\.IASL. rAIL.ED TO SET
ICC!S PROPERl.Y 1IF" R2~") OR IN ..
ICORREe~ PSIof ArTER lOT (II" R2 NOT
,pRTY1,R4
,RnToRE PSW
'RESTORE STACK PTR

R",,,pSW

'STKPTR.SP
SEQVf:NC[
RI
pc,.(SP)
-EMU ...
t$p.· ,',EMfVEC

el',

,sn v

.RCTAIN CURRENT PSk ON TRAP

"PIW, " [ "TVEO.!!

DECf

A'
[MTa'

MACYll 2'(655)

Btl!
~RX.
Bve

Flce

i!Pl
eLY
AS"B

BV,
BR
EMTlBi
EHT1C i

E'HT1D,
"81,,1'1
elliHl32

"80.3.

01il0111341

001l1l30

l1IeIilll42
0800341
177776

0111OO:56

H~T
It

r

AoeB
Bce
eN[
TST
BEO
foIlT
HOV
Cllt
SC"PE

4.S.II.74

I Re"' •• 201/1. CC, ,.UU
ICI.£AR 'V'
lANg SET 'e'
'R"UIII"n .CC'Sdll1

uln

pAIIE 84

[",Taa
Ril
[HT'B
[HTIB
EHTIB

...

,_2

,."
R'

[HTID
EHTIO

:~.~::,;~~,ec'

,.,111

JCLlAR 'V I
I SHIP'T All UNT II.

IV' CI.URS

IERIIORI
,UIT IIITH Real'J00 J 17
IR"·""'111

'"

I·"
I RISToRE EMT TO SCOPt;

'SeO'I:A.UI:HTVEC
-.!tfl'V EC·2

I CHECK TIIA" INSTRUC'ION TRAP SEQUENCE
HLT_£MT
:~~~E~~~£ (~H) TRAP VEcTOR
•• TRAPVEC, UEMT'I£C
HOV
PC,.CSP I
HOV
IITR"IfI, .. , IISP)
ADO
(SP ••• "TRIpVEC
MOV
.S[T N
SEN
!oIOy
""II/ ,-nq Apv EC·2
IRETAIN CUAREN,. PSto. ON TRAp
• SET CARRY
SEe
Pc,RI
MOY
,sET Z BIT
SEll
,TRAP TO TRAPi
TRAP

IICS

1 1114 "21 IIJ

~~~

001"".
1041/1""

TR4Pl ,
"8"'00"

EHU 8
Re
R.
R,
[H Ta 8
EHTa B
RI
E"Ta B
["TIB

BYe

/TRAP TO EMTS.
,(pO TO EHT"C
I ERROR i i "CORRECT CO' S !oilRE SE. i ON R['fUR;';
"V' SHOU,O'VE S~T ON EMT TRAP
,R8l11118117 ,-ee'S."~01
'RlilIfl.... ".CC'S.fUIU
,RU""'"". ec 's .11U

[HTaC

"ve

ePl
elf
SEC

1,3401

080412
10""01
10 4 00'"
11162711J1IJ
02"'''16
"1II14U
1,,48"0
124646
032626

ASLB
BCC
Bve
N[
TST
SEQ
HlT

[HT
eEo

10"O211
U"1II1110

Ril

.stl!8tc

1(U"11
01"2":2
1052,,1/1
183'06
1,2'85
1lue"
111"242
10 6 200
11112716
"0041U.
104,,"fIJ
,,"e.82
1155"111
103.13
111"10"2
00578"
081'1""
11/14""'''

1!l1 3 ,37

R2

Cl"
SiC

ROl8
eVe

,CHECK EMf TRAP
CL!I
MOV
ADO
!oIOV
SEV
MOV

!0~ 4~HD

~i~~~~

I!ln PREY USER Moot
I CHECK pSw AI"TER lOT

SCOPE

START OF" SECTiON 3
e2i23e

ICLEAR PHEV MOOE 81TS
ISfT PREY SUPER MODE
I CHECK pSW AF"TER lOT

IIPUlI. R"
R2,R4
99$

BU

RIC
HOV
MOY

""0340
177776
0005'''''

PA;E 83

IIPSH,R4
R2,R4
99$
"$

e
9",

UI53

IIIPUHIR~

flIC
BIS
CMP
SNE
BR

BNE

11/40-11/45 CPU EXE'RC I SER

.,21234

4"SEP .. 7.

C~1P

102027
1,511110
1055O''
1I1I61110fIJ
10202.5
lIHHcl22
O,,0257
lQI54{!l0
111'2"17
10011 6
0"'2":2
"",,0261
1053''''
112"12

1/12 352'
2121352
11121354
1I!21356
021:36QJ
O21362
02i364
921366
O21372
132137<4
1il21376
2'210400
021""'2

4177

~iHliJ

"1.11008

'1105002
0)1'10261
1Ql6U'"
18 2316
111,63"'"
103'Hl4
102o,,3
0010"2
0O'5700
0S1"01
10414100

~21106

~

foIlT
9R
eM!
HL.T
ADO
eHII

BEg

.....
.t4

TRAIU.C

I·"

IN liT GOT SET ON TRAP

Io4,R0
RIII,fSl'l
•• 4

, CHECK
,STACK

~ow

BYTE 0. RETURN PC ON

HL.T

eMf'a

FlIT
"T!

-(S,.I,-,SPI
(SP.·,(SP).
,RETURN TO

I~ST

fOL.L.OWING TRAP 'lS)

41621

111111011136
000340
,HI) 3212

0"~Z42

'H!lZ14

TRAP1CI HOV
f'OV
to10V
CLR
"OV

·TR"pVEC·2,R2
IIIpRTY1,(R2)
III ,HI. T," (Ri!)
·(R2>
*SCOPEA. - (R2 j

'RESTORE vECTORS

0)

DCGlKCD
DCGlKCD
4186
4167
4168
4169
4190
41 9 1
4192
41 9 3
4194
4195
41 °6
4197
4198
41 9 9

11/40-11 / , 'i CPU EXERCISER
START 01'" 'rCTION 3
,,:2i43~

HAC Yl1 27(655)

1['4111~f/J

"10702
06270.2
012707

01i!1011112
0011 5 2

02146~

.'21466

00Gl1~7

kl21 4 72


o

HLT
BR
1122226
3et0"4

MOV

ADD

""eM;

"15

R3,R4
15
R;:

5$1

BR

21

~01777

,"S,
7177

1l751""
076777
1il 6 "01il
106477

1.t41'
1'6 .. .,7

107777

"

IGROUP 2

"

IGROUP

,".41
,.,,'7
1"""

1067'0

,AO""VST RETURN PC
'TO RETURN TO "lS
,RnVRN TO "U
'HAS '_OUP 0' RESERVED INSTRUC;:TIONS
I illtN UrouTEO
; INCREMENT THIS RtltRVEO i~,ST~UC;TZCN
'TO HEn ONE AND ElIEQUTt
INSTRUCTIONS CI TER"'INATEI THE TABLE>
IOROUP "

,
,
,

,

11
21'
22"

"01'1077
90021''1
0,,0227
0071')0il

,GeT LAST RtSERVEO INS'fAUClION IN GROUP
,E.[CUTE RES[RVEO INSTflUCTlON

I ERROR I INSTRUCT ION IN R3
IC as> .eovr: r AI LED TO CAUSE A
,RnERYEO INSTRUCTION TRAP

'41Sd S P)
... rACTOII, CUt

H4C

BEQ

'GET fIRST R[SERVED INSTRUCTION
TER"'tNA1'IS THE TABLE

"

'CONTAINS .[SERVEO INSTRUCTION

HlT
HlT

,TABLE Or 11/41,11/.'

<1338

43<13

751

MOV

433!5

4336
433,

4342

MOV
HOV
MOV
MIJV

01H76il

4333

4341

65 I

RT!

4310

4313

111'3

HlT

"311
"312

4-5C P.. 7..

BEQ

001401
1P14400

1'22266

43,,:5 .

43"8
"309

27 (655)

,ExiT "OuTINE

4302

43"6

~ACY11

I !;ttoup ..
I
It

,
,

IGROUP ,

"

.

,GROUP 6

1""77

11'40"11 / 4!5 CPU ElIERe I SER
ST.RT OF' SECTION"
1701l1J8
171717

!5eSI

1:'22272

genee

0222701

111

r22302

912737
10"1iIf1il

~223e4

18 5 7 3 7

022310

"011.,2

1'22266

"22271

~22312

>l22320
022.:32"

<122338
02233"1
8223 4 9
"22342
J223 .. "

91 3 .,,,

095037
"134737
1!i13HO

fl'12'1114

:=~~~:

II!

0111077.

,CHECK THAT 41.1. Bl Tii I ~ THI l'ROCUSER ST AlU5 wORO I PSW I

C:A~

~ib~~=~ofS1'8

nus

aNI

171776
171770
efl2532
0U"16
1 77776

HOY

eL.R

J9.
HOy

HOV
ClN
TST

816811fIJ

""07 64
e3224fl

HLT
110ve
110V

822360

0215737

08076"

TST

170ee"

:~~

1000212

05271"
0127"1:

022400

081"23
"0!5817

022 4 02
0122"06
1122"12
022 4 14
022·22
02242<1
"22426
"224311

IU00il1

030211'
"3111227

"014"3

012737

ilI/l5'1"
05e21 04

un:

",DV

lSI

81T

0211.1016

eEQ
eL. ..

eIT

~"11I11120

IIEQ
UIlU2

MOV
2,11

eL"

sIS

0114f13
"2"'2U

HOV

1111""0"

lolL, T

eMP
BEQ

,,22432
022434

ge1"e1

822436
022440
022442

011"'2""

Cll!

04021"

022 4 44

01141/13
0f!14fl1

MOY

022<146

U""U

,,22452'
022452
022<154

01/16302
183351

ea'~o

IHcc"7
012746

022462
022404
;!22 4 66

•• HHOH

'IF HEM HG",T IS ON 51<1"

'"
......lI

,SAYE tUTUS

..,PIN,JI

BE SET AIoiD
TEST

I c~t;AR MOor B I '5 IN PSW
PC,"'CLRTIIJT
",iO ClrA" 'T' lilT IF SET
'.ylhvEc.a."(SPI
'P"'.A~
I~OAD AoORrSS Of' PSW INTO R"

SEO

11 3 7"il

1f1"40il

"22366
022372
022376

'AUTORE RESERVED TRAp

-;COP[

"U"1l:I.

1122364

II;AQUP .,

I

HOV

02235111
02235"

flJ22346

n,OATlhC PCIN!
INSTRUCT lOll S
II TERMINATES THE TABLE

17.".
171111

e'e",,"rD

311

111107 .. 6
1'162716
.o!;;Hl002

;;2247~

l.Z 4 002

4Si

.CHeCK 1. TEST WILL. SET 'T' BIT

'RT""TBITVEC"'2,l1n RTI INTO R[TURN
(AH
IC~t:AR PSW
R2d R
,sty AI INTO PSW
(R4 •• AJ
IGET BIT
R2,R3
'CHECK '1'1441 BIT WAS SET IN PSw

.."

.>

AOO

'6o(SP)

HI.T
ASI.
!'ICC
clR
HOV

k!2201ll
.,;22474

R2,Rfl
21
·tiTIiITVEC*,
~:,'21D

MOV

eEQ

i!l1/I51/1~4

10$
"1710f10. Rill

'1,R2

IERRORI BIT IN R2 "AllEO Tc SET IN PSW
,CL.t.R i! BrT
ICL.,AR BIT IN PSW
(R".,RJ
ICET PSW Rr:SUL,T
21
,BRANCH H' IIC "SDVE; CL.E-.FlED !:lIT IN PSW
IERIlORI BI1 IN R2 "AII.[O rc CI.EAR Ir.j ps ..
A2
'SHIFT TEST BIT
1$
'BRANCH Ir ALL. BITS NOT TESTED
ICLEAR STATUS
cSp ..... 'raITVEc.2
JRESTORE T BIT RtTl.RN
(pC •• ,·(SP)
'PUlii ORIGINAL STATUS ON STACK
o
'CONTAINS oRIGIr.jAL. PSi<4
Pc,.dSP)
,S[T RETURN PC

Ble

251

.. ,ORT ,oP

MOV
',WORD
RT I

!;COf'E

R2.4R.'

(R".

jRETURN

DCQKCD
DCQKCD
4402
4403
441'J4
4<105
4406
4407
4408
4409
441121
4411
4412
4413
4414
4<115
4416
441 7
4418
4<119
4<12"
4421
4422
4423
4424
4425
4426
4427
4428
4429
443lJ
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
11441
4442
4443
444"
4445
4446
4447
4448
4""9
445£1
4 45 1
4452
4453
4454
4455

OCQKCO
OCQKCO

H~~~"~f' ~~C~~gN E:ERCUER

MAeYu 271'55)

4 .. SEP .. 74

11 15 3

PAGE 89

22250111
0·22504
022512

il1J704
112737
00 4 737

"22516
1"2252111
222522
022526
.,2253121
,d22532
i!22534
022536
02254"
022542

"1k'i6CJ
01110257
112706
006S"6
U3716
0,,520 6
01k'i6"2
01"306
lfil 44 00

,CHECK THAT AL.I. BITe 1'" THt CURRENT STACK PTR C::AN BE SET/CL.EARED
SP ,RJ
J SAVE STACK PTR
CHKSPI
MOV
CCC
,sET STACK pTR II .. s,
*3 7 J,$P
MOvB
Sp
,ROtA TE 0 BIT THROUGH ALL. BIT
~OR
:!.SI
IBtT POSITIONS
15
BCS
sp
'SHOULD INcREMENT SP HI
INC
25
REQ
J SAVE ERROR STACK PTR
SP,R2
MOV
,Sn STACK PTR rOR TRAP
R3,SP
HOY
IERRORI
IoILT

022544

fillI'J31Z16

251

.,22546
0225 50

0106filiIJ
1'II1"1ll£l3

,CHECK BYTE OPERATIONS USING THE STACK
ISAVE STACK PTR
SF,R0
SPCHKI
MOY
RI,R3
MOY

022552
1il22554
02256"

~22572

0,,511143
112746
02271j
01111,,,'2
0203lJ6
IilU4211
11ll441ll0

022574
022576
'-'226210
022602
:l226e4
e2261116

IIf/l57N
11010,,2
02"'111"'6
00H2Il
111144""

02261'"
022612
022614
022620
022622
1il2262"
022626

0111 5 1 4 05
144613
022713
110101112
020603
001401
1"'4400

022630
;;22634
1il22636
022640
fil22642

132627
"'U1ll1ll2
020600
"01401
1844"'fIl

010377

1'22644
02.26521

112746
0627"'6

""1110111
000111112

~22564

<122566
iIl22570

177776
rl81'J301!1
1'182532

1'17716

11l8"377

0il14~J

MOV
MOVB

"PSW,R4
*30", ,#pS~

JSR

Pc ,'*CL.RTEI!T

111

CI.A
MOvB
CHP
8Nf:
cHp
!'lEa
HL.T

2S1

INCB
TST
BNE
CHP
BEa
HLT

177777
QJ11II317

1852~6

R3,SP

MOY

RJ,SP
,. 4

,CHECK AUTo .. OEC:

(R3.·

ICHECK RESULT

2$
RIII,SP

ICHECK AUTo-INC

,.4

-(RI'
-eSP). (R3j

, (R.$)DS,77717

CHI'

'1 7 ,4,e.11I3)

'CHECK RESULT

tHE

3S
SP,R3
,.4

CHP

BEa
HLT

eIT8

'lSI

I (SI') D 377
ICHl;CK THoU ONLY EYEN BYTE WAS AFFECTED

(51'.·

RICB

3S.

JRE5TORE ORIGINAL STACK "TR

.. (R31

,",l,'"C SP)
U1Jd R3'
15

COM
177408

/SAVE "SW IN R4
,SET PRIORITY L,EVEL, 6
:~" ~LEAR 'T' liP If SET

(5P.·,'371
4$
S"R0
,. 4

liNt
eH'
BEC
HLT
MOV
AOD

'l,D(SP)
1112,SP

HOV

'17f 4el,R2
R2,·DISP)
5$

11/4i"'11/45 CPU EXf:RC I SEA
5T ART OF SECTI ON 4
022654
212266111
022662
11122664
022666
0112267111
322672
2122674

~~~~~~

022104
322706
022712
11122714

01 2 102
121i!246
ilJ01U4
122602
1181011:2
020",,6
IIIlI140i
1(14400
11'0 37
11l!1446
"1"'46
06271 6
11101"1112
184000

~~:e

5S,

1322734
022736
02274111
022146
;)2215"

022752
022154
.,22756
022160
022762
2'22764

t22166
02277e
022772
Ii! 2277 "
iJ22776
.,23"'0111
J231l'''2
;'2301'J4
023006
rlJ23011


.Rt5TORE ORIGINAL, PSW TO STA!;K

fI.,.SP I

4DO

ItTl
SCOPE
ICIoIECK THAT

022716
022722
022724
022726
022732

<$".·,"2

C""8

!!IN!:
CHI'

CBITI

111776

1S1

... ",.,~~ 'I'eh

,L.OAD CONSTANT

HOV

PC.~

I ~£:T CURRENT pC
I POINT AI TO 11 ABOVE
IAOD
BIT TO 15 ABOVE

w(FI,1
2$
"7'776,11

I$H,n 1$

Aoe

ASL

rn7716

Bve

117754

91T _tTS/OLEARS PROPERLY
II

SUB

251

'e'

','\lORO

HOY

CHII'
8EQ

,. , Rill
IR •• •

,.4

N\.T

'e'

:g~U~ ~~~U~iT

sETS

I ~RROR I tNCORR!:CT RESUL T

U~

s,s

lBoVE

,R"1IADORESS OF DA TA

.CHECK THAT CONDITION CoOES ARE SET PROPERL. Y WHEN A NUMBER CI;URRENT pCI
uNO 'Holt NUMBER *1 ARE COMPARED, AND VICE VERSA,
MOY
PC/R0
IGET CURRENT Pc
"OV
R',R2
••AlfE IN R2
INC
R2
,MAKE R2 • Rhl

CMPNI

sec
.CLCrCI.N
eM"
FIe,R2
Bec
1$

111

BV!

15

BEC

15

eMI
H\.T

,.4

SCC
CHPB
BC!
BVS

eEQ
2S1

BPL
IoIL.T

R2,RI!I
2$
25
25

,.'"

'CLEAR C " N BITS
ICOf'lPARE • WITH
'CARRY BIT SHOULD SET
IV aIT SHOUI.0 CLEAR
'i an SHOUL.O CLEAR
'N Bn SHOULD SET
'ERRORI COMPARE' WiTH '*1 'AILED TO
.SET CONDITION CODES It; PSIo CORRECTL.Y

'.1

,SET CONDITION CODES I~ PSI<
ICOMPA~t '.1 wITH,
'C 81 T SHOULO CLEAR
IV BIT SHOUL.D CL.EAR
Ii! al T SHOUL.D CI.EAR
IN B tT SHOL,D CI.EAR
,ERHOR I COMPARE 111+1 OJ 1TH • r AiL,ED TO SE T
ICONDITION CODES IN PSlO CORRECTL.V

124 NOP (240) INSTRUCTIONS FOLLO"', THESE NOPS MAY
18E CHANGE" TO TEST CODE IF THE "IEEO ARISES, THE TEST CODE SHOUL.D

OCOKCD
DCOKCD
4510
4511
4512
4513
4514
4515
4516
4517
4518
"519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4'535

11/40"11 / 45 CPU, XERCISER

MAeYl1 21(1\551

4 .. 511" ... 74

ST ART OF SEcT! ON 4
IBE
"23016
,,2302"
;'23022
~23"24

. 23026
,,230313
.;23~32

~231l34

"'232'36
;2304"
e23iJ42
;J231!144
323046
~J23iil50

023052
023!il54
11123"56
.,23060
023062
2I231i164
023066
;323"'£
023072

po,s I T I ON IftOEPEJKlE:NT

00"2~0

01l102""
1i1002""
0002""
"0"240
"002"0
f1If1HJ2"1iI
"0('1240
00"2411)
""il2"0
",,1112 .. 11
1110i1241/l
01"240
011HIl240
000240
08111240
11100240
1'11111124"
fcl00240

>i23Kl76

18"111~0

~231Q1"

"'23102
0231"'6
023112

!!I1\!17eo,
1Il627 III 2
1Il12711l7
IIllllflllll00

,,23114
023116

"1070"
"1Il574"

.~

.NO $MOItII.O AUIII WMEN REI.DCA TEO BY T~E PROGRAM.

N-OP
NOP
NOP
N./)It
1111)It

Ne,

NOlt

..Oft
Hilt
N~

NOl'
NQ1II
N~

HOI"
N~

HOft

0"1112~0

000240
000240
015111240

'.CiE

NOP
NOl'
NOIt
NoP

"''''24''

'~23ijl'14

U· 5J

~It

1+0,.
Nel"
NOli
SCOPE

4!>v~

4537
4538
4539
4540
4541
4542
"543
454"
4545
45"6
4547
4548
4549
"55~

45 5 1
"552
4553
4554
4555
4556
4557
4558
4559
"560
,,561
4562
4563

DCCKCD
OCCKCD
4564
4565
4566
4567
4568
4569
457e
45 7 1
457,
4573
457 "
457'5
4576
4577
4578
4579
45812'
45fl1
4582
4583
4584
45AS
4586
45B7
4588
45'19
4590
4591
4592
45 9 3
4594
45°5
4596
4591
45 9 8
"599
4600
46.:11
4602
4603
4604
4605
46 06
4607
4608
4609
461e,
4611
~612

4613
4614
4615
~616
~ 611

"'''011112
11101152

PlOV
"'C.R2
ADD
,(;0 REI.OCATt PIIOGRAM CODE
HOV
REL,,41
':WORO
0
14444444444444 I..$T .ODIIESS OF COOl TO SE RE,-DCATED 44""44444~4

01!1r!1!

','SBTTI.
ST.ART Of
155555'S",'" F'US' .DOR IS TO
11[1.5,
HOY
PC ,'fU'
.. CRa)
TST
.~;,",u.o
HOV
HOY
." . .'tcT
J$R
PC.-;)IlOI$'
_,OU Lv , ltfL5'
HOY
Pc,AI
MOV

:U'~~'PC

fEcnoH ,

~2J12!"

"':.£12137

023124
11123132

11112737
111847:57
01 3 767
1!!1"7"0
1627""
01111037
1!I107U

~23136

<1231401
12123146
:Il23152
~23156

Z2316f1l
023162
2'23164
,,23166
J2317f1l

''''''
III " ,
""'166
1'J"51 7 2

qe

111"'176
111462

11123146
0"UI"4

~U~~:

,,232~2

,3232"'4
923206
02321111
"23214
023216
,,23220
023222
ii!23224

0858""
01111271
01161f1l0

~23226

J23230
1423232
,,23234
"23236
323242'

;a23242
023244
"23246
,,2~250

11123252
"'2325"
023256
1l2326"
023262
,.,2326"
;;23266
11123270
"23274
iil'23276
o!23300

1IlIJ8"~

8n

I$AV~

I SET &fellOH ,
'L.OAO DISPLAY eEG
litT CURRENT Pc
,SU,T"ACT II[1.0C:.TION FACTOr.
"UE "[I.OCATION HCTOR
l I n HEll SCOPE PTR

8(0

"lIT

It,
""

4.S".,.

U,,3

pAf;l 92

IXT,
IXT,

...

"-,

HI.T

ItC,R0
R. , 112
1'10 V
_·UR3
HOV
R2
COM
.CI.YICI.C

,cHeCK RESUL, T

MOV
177777

)(01'
!'!et

111

10~e£ll

011151£12
8210112
0Kl1"U
1I!I4"0"

5X11,
101110r.!11l

qJt.

eMf

"a.113

I CHiCK R£SUI. T

,.4

• ERROR I

toILT

"'OY

cMft

I"C.II'
IRII".(AIilI.

ft1I

1S

UT
CV
TST
e~
COM
cl'IP

(1'1'.
1'12
q

Tr~RD

BEQ
lolL T

8M!
TST

eNt:
~IEtl

II

RII

A; 4,."

(R0. ,Rl

'l".IU. (RIl)

leORa
XORI
lCQ1ItJ
leoRa
(A"t
lIaRI
R2

I·"

"'110/0<:

"lOY

JOC,u

"22222
00'401

I'!FI

5xT,

012722
ijlll6H2
074122

• WOl'lD
MeV
SXT
)'0111

I!J
'125!52, cr~21.

eM"

125252

S)(T41

R0

leOR PAIL,ED

18n ADORESS R!CISTr;R
,,'UERVE WORO 'OR TEST DA T A

:~i't~J N~ ~~S6p O:6~RESS

I
INTO
UBoAtss ClUI)"l If' MSB R0 c 1
lO'l'I'I£RW!SE, (RflII0
.CHtCI( SIGN OF AODRESS
.OOl'l'L,!MENT CHI:CK REG IF' NEG
I CWECK RESULT o-r SleT
.ERRORI

5XT 'A 11.[0 To [Xl END SIGN PROPERL. Y

'PREsET DAT·

CFl0.,R2

Radlilll)

'*LT

eVI

or.HHl III 0

:~!e::~O~b~TcgN::lN Ng~H:~~~gto or

aU

HOY
MOV
SOC:
leO II
!'ICC
eVil
8NI:

leOR11

'CL'U C AND v BITS

I ANW TN. T V WAS Cl.fAREC

st,
Xell"

R.,fo1.3

XoM
XD'"

RV'

"II""""

23326
23330
23332
23334
:2334('
23342

t23310
;,23312
,;:2331<1
1223316
02332111

INe

S)(T',

111111571110
8111 6 7:1.11
0,,58152
02157i10

".'-332"

(12331'4
023306

21(,,51
8£0
ItI'L

"1070"
82202"
00,,401

~23322

~233"'2

HAcVll

"014~3

19"802
0052""
001'1111
184411

"12710
011£1212
021"277
07"2111
1031217
10 24,,6
2121101115
1004"4
"0571"
1111111'21 2
0155402
11112401
llIH"0

MO,+,

.."

10 2 "°4

"11117"'''
iil1il182
0127"~
",,5HI2
"""24.1
1117"110 3
103404
182403
0"1 .. 02
"2120.1
1'101401
1f!I44150

'"RIII
R•••·'·CTOIt
I"C,lIl

RELOCATI':D 555555555

H.£T '0

Jllie CONU IfIj$ nlE ADDRESS OF R[L,'

1I0R, 508. HARK. RTI/RTTI
• CMECI( twTrMOED t"n"I'ICTlt .. SET
I
II.
EXT(NST'CLII
.,RCS£T
ec I 1
sce
InlEND SlGI'l (11 INTO lUI
SXT
SXT,
ICe,
• CMtCK "nul. T CC' S

11/40"U/45 cPU EXERCISER
<;TART !"F' SEcT! ON 5
023172
.323174

9W8

at

,PRESET CC'S
UOR 1II00U1 \oj I TM 11'''000 REs UL.! ,. &I
'CMECK ec's ArTER lCDR

.CHtCK RESUL, T (0)
• CMECK THAT REG WAS

Nor

(R2t·,IA21·

'",Ron

Pc, I R2:.

,"RESERVE WORD rOR DATA
'RESERVED FOR rlATA
IPRESET DATA
i EXTEND S I G,';

AFFECTED

DCClKCD
DCClKCD
4618
4619
462111
4621
4622
.. 623
4624
4625
4626
4627
4628
4629
463 0
4631
4632
4633
4634
"635
4636
46~7

4638
4639
"6 4 0
46 4 1
4642
4643
4644
4645
46"6
"647
4648
"649
4650
46'51
4652
4653
4654
4655
4656
"657
4658
4659
"66(>
4661
4662
"663
4664
"665
4666
4667
4668
4669
"67121
4671

DCClKCD
DCClKCD

11/4\:1-11/4" CPU EXERCISER
!'TART OF SECTiON 5
223344
~23346

C23351:1
,123352
~23354

'-'23356
"2~36e

012'10"
005740
"0511110
"7 4 iJ42
021142'1
1,,440"

,,-,23 4 1il
.,23412
023416
\123 4 22
J2343!2l
"2343"
,'23"42
?21444

01271:14
211116761
"'4467
10"42J
0063£4
1,,237 3
10"820
"'4467
11110015
074767
01 13 767
1627 6 7
e05167
1il267f>7
001401
11')4"1210

,~23446

0211il"02

,;23 4 '5111
.23452

0""Iil"e
"'012111112111

0.12345"
12123461l

01271210
0(116767
"211004
1""403
103402
11.'241211
000411'l

;;23364
l!'2337G'
23374
.l23376
.;234(10
123402
}234~4

<12~464

"'23 4 66
z23470

;123472
223474
.'23476
~23511'0

J23504
:235H'
,;23512
,'23516
J23521l
1323524
~2~526

23'531:>
~23532

.'23534
:::23536
023540

"2~542

111111011101
"111006111
(lI 1110 111 54

XOR24,

MOV
TST
eOM
XOR
BEQ
ML. .,.

2$ ,

MOV
SXT
XOil!

"",!
ASL.
BVe

~~h

011101114111
01110032
1110003111
I2II:Hll2I{l4
0Q""016
21"1212112

Il I"! 121 22
1l12l1l01l6
XOR61

BPL
XOR
MDV
SUI
COM
eM'
SEQ
lolL. T
BR

XOR6A,
XOR6B'

',WORO
·,'WORD

SXHI

MOV
SXT
SNt
8MI
BC!!
BVS
!lR
HL."

2177777
17776"

1"'''4~0

012711'2
1il13703
06011102
01l67f>3
21014213
0115267
"014211
1121 4 41210

MACYa 27(655)

°

MOV

111230458

ADO
SXT
BEQ

121 811l " 1
121 111 UHl 4

"10v

INC

177724

01137"3
"1""4132
"19£199
Ql2!9""ro
Ql1II5723
11110304

11/4?-11/45 epu EXERCISER
C;TART OF SECT I ON 5

SX T 6A,

BU
HL.T

SXRAI
SXRBI

MOV
8R
·,'WORD
','WORD
TST
!olOV

HA CY l1 27(655)

4 .. SEP.1"
PC,R\:1

'I".

·1.R2
urACTOR,R3
RIIR2
XOR6AjJ)
SXT6A
XOR6A
,.4

'ERRORI

4.SEP,,74

~'~:'i

BEQ
HI.T

•• 4

5XT2,

<'2355<4
kl23560
J23562

SXT3,

MOy
ecc
SXT
FlEQ
HL.T

R4.SXRA

J23566

01"467
009257
9,67 33
01111401
U441210

J23570
171 23572
.,235704
[023576

81110279
006753
1""41113,
1111" 4 111 III

SXT5,

SEN
SXT
8MI
ML.T

02360£1
02361:1"

81270 4
07"433
lIIa5S02
874253
£1111140:1

,0
""7021

4703
4704
4705
,,706
4707
4708
4709
<171"
4711
4712
4713
4714
"715
4716
4717
4718
4719
472~

4721
4722
4723
4724
4725

112363111
~23632

l23634
1I2364"
;<23642
r 236<1'"
02365111
~23654

223656
Z23660

0957043
1111102!!111
1867705
210141111
lf14,,00
074,,'73
"2"47,5
11101"2'1
10440"
U49il0

XOR35,

SXT71

TST
elN
SXT
SEQ
I-ILT

111101111112

xO R

111811111192
0111881112
XOR71
,"OTE,
I

,,23662
~23664

·123666
.:23670
~23612

)2367<1
. 23616
"2370"

'237l2

011151l"!)
""0407
11l,,511184
01115735
0111141111
10440"

SOB10,

012152'25
i1Je'6004
080461

50991

CM,.
BECI
HL.T
SCOPE

SXT ABOVE rAIL.ED TO EXTEND

, PRESERVE 2 WORDS rOR DATA
IRESERVED WORD rOH DA TA
,RESERVED WORD .01'1 DATA

.*6

III
0
(R3+·
R3.R4

~~~;~~

177712

,CHECK RESUL. T or SXT
I ERROR!
,SIGN

"674
"615
4676
4617
4618
46 79
4680
4681
"682
4683
4684
4685
4686
4687
4688
"689
469121
"6 9 1
"6 9 2
46 93
4694
4695
4696
4697
4698
4699
4""!'

921l"67
00142'1
10440"

SXT fAILlD

PC,R3

!f!H'"

aU

A80VE

,SET DEST OPERAND F'OR ADD
,1.0AO INDEX REGISTER
'RE~UL. T OF AOO!l100011l111
'EXTEND SICN or ADD ABOVE

CI.N

BPL
COM
eM,.
BEa
ML.'"

XOR TESTS ABOVE rA II.ED

ISET SOURCE OPERAND rOR ADC
1CI.E;AR XORU
'CHECK CC'S AfTER EXTnDING tERO'S

S"·

;S~~S:

,XOH6A SHOUL.D e COMPI,.EMEt';T or PC

1111177777 ,RiI
XOR6A
SXT6
SXT6
SXT6
SxT6
,. 4

91110250

~236QJ6

'XOH pC wITH XOR6A 11777771
'fOHM PC AS USED IN XOR .BOVE

,CO~TAINS DATA USED BY HS,!

e"672~

0236121
023612
023614
223616
132362121
023624
023626

,SHIfT R4
1UNT I L. V SETS I R'h100"~0)
IBRANCH IF 'N' IS CL.EAR
IXOR6A=177771

1*6

~23544

HOy
X011
cL.F!
XOR

XOR ABOVE INCORRECT

,SET R4
1PRESET DA1'A=0

.ERRORI

,:;23546

025252

S)(T

,ERROR I
#l,R4
XOR6A
R4, XOR6A
>COR6
R4
25
xOR6
R4,XOR6A
XDR6
PC.XOR6A
PC, XOR6B
XOR6B
XOR(lB
XOR6B, XOR6A
,.4

"672

~23564

PAGE 93
IGLT PC
'SUBTRACT 2 F'ROM pC
,RiJ-RESUL T OF' XOR PC"l ABOVE
; c: :c,CK RESUL. T OF SXT A~D XOR ABOVE

"IR'"
R0
Ril' -(R2)
,,,,4

.. 673

177754

'-1153

'1'13

11,53

=

ADDRESS Of SXR A

PAGE 9"
,CL.EAR N BIT

IEXTENO lEROS INTO SXR!
IERROR!

"IRa).
•• 4

SXT FAIL-EO

,SXRA • ADDRESS Of SXRB
1CI.EAR COND IT ION CODES
'EXTE~O lERDS INTO SXRB
,ERRORI

,sn
" .. IR3)
•• 4

N BIT
,txTEND ONES INTO SXRB
IERKORI

#1252~2.R4

;R4 • 025252

R4."IR3).
R2
R2,."(R3)
XORi5
XOR35
1'1<1
R",SXRB

,SXRB • 152525

C COMPL.EI'!ENT

.."

'R4 • 152525
,CHECK XOR

-IRB)

'R3 • 40DRESS oF' SX~A-2
,CLEAR N BIT
,SXRB c III

"2(RJI

,.4

1'14 •• 211'13)
R4'''2I R3)
,.<1

'ERROR!

,ERROR:

XOR

r A11.£0

SliT FA I\,.EO

,SXRB • 1'14
,CHECK XOR
,ERHOR:

XOR .A,\,ED

DO NOT I NSERT ANy CODE ! N roL.L.Ow I NG SOB TESTS
SINCE IT TESTS T~E '1A XIf04UM BRANCH "10TH Or THE
ClR
sR

R5
S080

1 C1. EAR ERROR INDICATOR
'BRANCH TO SOB TEST

CL.R
TST
BEn
HL. T

1'14
R5

.R4 = I!!
ICHECK ERROR INDICATOR
I SO~ BRANCHED eORRECTL. Y
'ERHORI

CLR
ROR
FIR

R5
R"
SOB8

, +4

OF' R41

'SXRB REMA I NS UNCHANGED
'CHECK COND IT ION CODES

,CL.EAR INOICATOR (R5)
,ROTATE RIGHT R4

'NSTRUCTION,

DCOKCD
DCOKCD
4726
4727
4728
4729
473"
4731
4732
4733
4734
4735
4736
4737
47 3 8
4739
" 7411l
4741
4742
47 4 3
4744
4745
"7"6
4747
4748
47 4 9
4750
475j

1,. "
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
476"
4765
04766
4767
4768
4769
.'170
4771
4772
4773
47704
4775

11/4<1-11/45 CPU [
START OF' SECTION
023704
0237111l
~23712

023714
:;::23716
.023720
023722
2'23724
1:!23726
.'23731/J
~23732
~2373.

1123736
1<:23740
:'23742
~23746

r,!237 5 2
02375"
:1123756
02376"
023762
223764
023766
1.'237711)

III 127:Hl
0gj0277
f/jgjlB12

Ill .. "11310

101len

MACYll 2716551
S08B,

MOV

SOBll

BNt:
BPI.
Bye

102U"
103Be7
B77B0'
BID1013'
1."!!,, " 4
1e28e~

01271!J2
012711)0
"/Il1"1 4
180413
102412
1,,3411
09'30"

SOB21

024006
024e12
11124<"14
1<'24:116

0127"0
000401
10""00
87'''''2

0241020
!Il24022
1!24024

fIll!l57e0
""1401
18"4150

0242126
02.032
024034
32'036
i1J2.04"

"12704
0052".
1""4,,3
10044I1)il

"24042
024044

,,4
1I!J44"0

"24046
il242152

812703
077301
",,5783

ill"41~

0001!!~1

SOB
8N[
API.
RVC
Bce
TST
BEO
HLT

DCCKCD
DeQKCD
478"
47 8 1
47 8 2

478~

11120405"

#lB.RB

sEQ

SOB'
50Bft
SOB4
R0
R!/I,R2
S0914

SOB41

8HI
BYS
Bes
OEC
CHP
eN!:
ccc
SOB
eEQ
8HI
TST
REQ
HI. T

soB!5:

MOV

'l,RB
,.4

SR

508

TST
BEQ

;a~t'Ril

R2,SOB3
SOBd

50 9 8
R2
,.4

SOB5A!

MOY

9A
3S1

INC

9HI

R,.;_2

R,

111

SOl
HLT

BeBlQ'0

211
SOll61

MOV
SOB

479i
47 9 2
4793
4794
4795
'" 796
4797
4798
4799
488"
4801
48132
"803
480<1
4805
48il6
4821'
48"9

"8~9

48111l
4811
41 8 12
4813

4814
4815

,ERHORI
,S08 SNOULD NOT BRANCH

I'

"",,0 AF')'[R soB

'1
U

8,.,,1.114

'R·lIl..lil"B

R4
21

J R.,,81111B
,N lIT SHOULD 8E SET
.ERROR I
SOB DID NOT
/INCREMENT "'ROPERL.'!'

R.,IS

1108 SWOUiD BRANCH
,EARORI
4S oro NOT BA'NC~

'1"I,R3

'R~II".I
J UIC S08 TD BRA NCH TO I TlELF'
,CHECK IF' "3""

tST

R3,90B6
R3

9EQ

SOB;uJ

~24~6~

e017,,3
1"4"00

SOB71

HL.T

,ERRORI

l24\'!62

"057~~

SOB81

TST

,CHECK INDICATOR IR"
IIF' soa BRANCHES INCORRECT!. Y
,WHEN CHeCI(ING MAX, BRANCH,
,R' wILl. NOT BE CI.EARED AT
,THIS POINT INDICATING AN [RROR,

1Il24064
224066

"1!I141ll

i1J24~7a

"2412'0

08520'
il77477
",,570 04
ill1l1401
10440"

024102

18 4 111011

2124"72
,,2407"
1324076

BEQ
MLT

104040"

,.4

INC
SO!
TST

,BRANCN IF' SOB BRANCHES CORRECTLY
,ERRORI
,SET INOlt'ToR IR',
,n,T MAli, BRANCH Of SOB
,CHtCK IF' Ith"

9£0
'ERRORI

ML'
SCoPt

,CNEcK THAT MARl( INSTRUCUOI'4 PO"S ,OVER THE CORRECT' oF' ARGUM[NTS,RESTOII[S R!5 fR
,TNE STACI( IIOINT[R
0241"4
020411216
1112"110
024112
0241H
024116
.52412"
"24122
024124
024126
",24132
02413.
02041421

224142
024144
e241"6
024150
J24152
132041'"
(\2'1156
1124160
1iJ24162
"24164
?24166

4B~3

,RIIl-"

START OF' SEcTION 5
,,2421 56

4~16

4832

":il."

11/40-11/45 CPU EXERCISER

4817
4818
4819
48212'
4821
4822
01\823
41824
482'5
4826
4B"
4828
4829
48311'

4831

,~f;T CONDITION coDts IE'ORE SOB
, RANCIol TO 50B3 UNTIL.
'CH~CK CONDITION CODES APTER
I S08 F' A~~S THROUGH
,CHf;CK
R2-0

,C:HECK

4786

479~

IR2·l,I/)"
,SET CHECK REGISTER, Ril"f"l
'CfoIECK CONDITION CODES A TER
ISO!j BRANCH,
,SOIJ SHOULO NOT H'F'EeT
'C0I'40 IT I ON CODES,
,DECREMENT CHECK RfGlSTER
'CH(CK THAT soe DtCREHENTS

,[!iliO!!!

47 R 4
4711'5

4787
4788
4789

,CHt;CK CONO 1T I ON CODES ArHR
,SOli F' .I.I.S THROUGH,
ISOB S~OUI.D NOT t"Ecr
,CONDITION coors,
'CHECK I' RB-"

,.4

HL T

0".

, RB-1B
,SE T CONO I TI ON CODES
'CHl;CK CO NO tTl ON CODES AfTER ~01:1
,snfl :;010 ... 0 NOT [frECT T~E
,CONO IT ION COD!:S,

,ERRORI

Hi.'

100"""

PAGE 9'

,ERRORI

S0831

1011.'

:1.1"3

SOB a
SoBa
SOB2
SOBa
RI/), SOBl
SOB;,
SOBa
5082
SOBa
RB
, .4

'1 8 "R2

4776
4777
4778
4779

4.SEP.74

MOV
MOY

'H!lIllrTART OF SEcnON !I
324226
024232

0116:57
£1527:57

''''0016
£1111£1340

177776

9U

DecK CD
DeCKeD
4859
486"
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
"871
"8 7 2
"873
4874
4875
4876
4877
"878
4879

48M
4881
4882
4883
411!!4
48b:>
4886
4887
4888
"889
"890
4891
48 9 2
4893
489"
48 9 5
4896
4897
4898
"899
490"
"'9"1
49"2
491113
4904

11/40 .. 11/45 CPU ExERCISER
START OF SECT 1 Oti ,
"'242411
0324242
~24246
12425~

.}24254
kj2<2 5 6
J2426~

024266
2124274
1324276
0243~2
~243e4

924306
92431111
024312
024314
",24316
024320
024326
;)24330
;;24332

0051!10kl
052716
",10746
062716
"0"11106
rile 'J 2e21
042737
022767
0011H'J'
"22700
0,,14"6
1.440111
0"415
80 5 700

024356
£124362

901413
104""0
0l'JfIl411
fIl12767
0,,07JIII
08 5 1"0
01 6 7 66
0el!l0P2
"12767
012737
"l'J'J037
10"IHlll

J2436"
U24366

000401
001')000

02437~

122737
0"181?2
"""167
"16700
10501')0
012702
074802
00143'
"12702
S7IE RTT

RTTa!IC

-(I')

PC,Wesp)
"S." CSP)
'U I1 .,"M.AEG·PATY7 t
RTTlCle

"paw

Ii'

I A HEMPS TO I NSERT A 'SW Of' .,
, SloIoULO CHECK AGA I ~ S T R£:G
,ERRORI RlI CLURED BITS

RTTNl(

'SMtP\jH.REC·PRTU t UPSM
RTTaEX

1.,.,776

6S,

1112460"
,024612

01 6 7:'17
1."."0

171556

11'1716

RTT2EX, MOY
SCOPE

024614
024616
"24622
1124626

010702
062702
012787
8 •• "'.,

02463\1
?24632
11'24634
.,;: ,.044 X
'PRY Y7,,,ISP)
pc,·eSp)
'6Se" (SP')
IA TTEMPTS TO CI.UR lh'"
AND AI. TER P"TV

07<1200

"0,.,0

PS~

!TEST THAT BITS
JSI
Bl1
MOV
MOY
ADO
!ITT

'01""1
104"U

1'17776

11"3

,TEST TO INSURE THAt RT lODES NOT CL.EAR 81TS 11"~' IN USER MODE
,PU"."RTY 7, .,PSW
,PSW'126136
"261421
,.26142

.126144
..:26146
226150
.;26152
2'26156
<126160 •

012702

~~~~S!
1iI1 3 7 3 7

1:'l1 2 7 3 7
012737
063737
110337
050214
11/H'4Jl
0 62 7 3 7
0,,6302
1150214
0002"'"
1044"'0

;,26170

.;26172
,126174
<'126176

901042
1il0 3 104
00 7 146

?262~0

..!2621l2
;,26204
;:'26206
_'26210
;:26212
.~26220

('26224
26230
:J26236
·26244

17777 6
PJ00340
1Il261 7 0
00034"
026142
0011'°"
177776

11100242
00"242
1il001il 14
000016
1Il01il24111
000240

o

3$1

NO"
HL.T

~56 ~~~gc~~n~ ~~~f~~UPT

alC
026102
001"04

'ERRORI EITHER AN INTERRUPT OCCUREO
JWfoIEN RQST L.EVEL. .cP L.EVEL. (PIRVECl:2'
lOR INTERRUPT f AtI,.E 0 ! P IRVEC) .3S
'CHECK CONTENTS OF' PltlQ REGISTER

CMP
eEQ

~b~

000040

MDV
ADO

~~~O~h~NggR~~nR~ +~Q L~~~~EN'fS

jl40,R~

;

R2d R4)

'LOWER LEVEL BY 1
,ADJUST RETURN AODRESS
'TO RETURN TO 11

IilS.(SP)
lI,f ~CTOR, (SP)

RfT
,UBLE Of CORRECT PIRg REGISTER CONTENTS ON INTERFWPT
IPIR1+PIA1
451
11il42
IPIH2.PIR1.PIA2
3104
'P IH3+p lR2.p lR 1.P 1A3
7146
IP I RHP lR3.P IR2*P IRl +P 1.4
17210
IP I R5.p 1R4+P I Rl+P I R2+P I Rl+F I A ~
37252
,p IR6." IR5.p I R4.P IRJ.P I R2.p IR1+P I 1.6
77314
,p I R7."1 R6.P I R5+P 1R4+P I RJ'P I R2+P I R1 +P I 1.7
177356

"'1 7 21"

071314
177356

11,H000

:::~~;6~~~;~

~~~

o37 2~2
305014
012737
1il,,5e37
U5e37
"12737
012737

~8~B

2$1

~22i!14

0,,1401
1,,4400
0627CJ
040214
012716
063716
"Iil 0fZ 6

~26164

ty

177772

005"14

112737
012737

,CHECK PRocRAM INTE:ltRUPT ~[QUEST L.OI; I C
I TH IS TEST CHECKS THAT WHEN A REQUEST IS M.-OE .. T A I.E VEL • TO THE
'CURRENT PROCESSER PRI0RliV ~EVEL. iHAi NO INrEARUPi i4KES rl.ACE, AND
'THAT WHEN A REQUEst IS MADE AT A I.EVEL 1 CREATER TIoiAN THE CUHRE"lT PRO"
I·CESS~A LEVEL. THAT iN INTERRUPT OCCURS
PIRQIII
HOV
#4S,R"
IR0 POINTS TO A TABl.E OF ceRRECT PIRQ
'CONTENTS ArTER AN ! NTERRUPT
Ii 4"0 ,R2
,RI CONTA I NS I NTEHRUPT REQUEST l.EVEl.
MOV
R3
11'13 CONh! NS PROCESSER PR ICR I
I.EVEL
cl. R
'pIIllQ,R4
11'14 CONTAINS ADDRESS OF" plRQ I'IEGISTER
MDV
CR".
JlNiTlALi!E REQUEST L.EVEI,. TO 0
CLR
'iIIP5 W '.PIRI/EC.2
JRETAIN MODE & REG SEI ON TRAP
HOV
'PRTVf,U"IRYEC+2
JASSUME L.EvEL '1 ON INTERRUPT
1i30S"'TBlTVEC
ISET NfW TBIT TRAP VECTTOR
'PRTY"UT9ITVEC.a
'PRIORITV l.EVEL 7 ON TRAP
MOV
151
MOV
I RVEC
:
VECTOR
ADO
R;S, "pSW
J SET CP PR lOR! TY LEVEL.
MOYB
RidR41
'MAKE REQUEST AT LEVEL. • TO CP I,.EVEL
aU
5S
'BRANCIoi WHEN DONE
eMI
':SS .. 2S,UPIRVEC
IS!T !tIRQ INTEIIlRUPT YECTOR TO 31
ADD
R2
I MAKE RECUEST AT L.E VEL. 1 HIGHER
R2. (R",

5$1
'-"1il0242
"'110242
177776
0"001il6
0"0"16

000240

~b~
CLR

000016
1100014

~50B
HOV

(R4.
liP I RY[C.2,,,,P I RVEC
",PIRVEc+2
II#PSO/
U,lItT9PVEC+2
nSI TVEC+Z, IIIIITSI TVEC

SCOPE
J CHECK MfP I/t-4TP I

I NSTRucTi ONS

,RESTORE
IVIA RTT

IT. BIT TftAP TO RETURN
IN TBITVEC.o~

ocaKCo
OcaKCo
52 9 1
5292
5293
5294
5295
5296
5297
5298
5299
53"0
5301
531112
5303
531114
5305
5386
5307
5308
5309
5310
5311
5312
5313
5314
5315

'5316
53J.,
5318
5319
5320
5321
5322
5323
532.
5325
5326
5327
5328
5329
533til
5331
5332
5333
5334
5335
5336
5337
5338
5339
534"
5341
5342
5343
53"4

DCOKeD
DcaKCD
5345
5346
5341
5348
5349
5350
53 5 1
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
53 6 2
5363
536 ..
5365
5366
5367
5368
5369
5379
5371
5372
5373
5374
5375
5;376
531 7
5378
5379
5380
5381
53 8 2
5363
5384
5385
5386
5387
5388
5389
5390
5391
10."10 ...

5393

539 ..
5395
5396
539,
t;~9~

11/48-11/45 CPU E
ST ART Of SECT ION

~CISEA

HAC'!'U 21(6'5)

4.SEp,,74

026246
11)26254
e26256
026260
026264
1ii26270
~262 72
026274
826276
226302
226304
026312
C26320

ne

HPI,

'Uf'4.",PSlol
ENOCP
pC,.'IP)
'55.,. 'SP)
(SP •• ",MMVEC
w(5pl
R3
R31"CSp)

Z26326
026330
026336
e263 ....
026350
026352
026354
,,26360
:1126364
"26366
026372
<126374
k)26376
026400
!il26402
"26404

832737
"11':57
01070116
062710
"12637
"05tu6

171176

"18346
185737
8'''423
013737
"12737
122737
il'"4i16
81 3137
012737
062706

0~0144

"00250

0110778
177640
006111'16
rHI0iH14

177654
117614
018164

172248

1711254
112214

111060~6

aEO

1010'1

MOV
eMII8

tto

1010'1

liS I

14""'1'18

010701~

026422
826424
026 4 26
11126432
82644'"
926446
026452

00811102
104480
105037
812737
012137
812796
104 IJf/J 0

026454
,,26456
926462
826466
,,26472
026<174
026476
1'126580
,,26 5 82
"26506

°1 0 7.6
062716
8116~7

"12637
"'81180
1,,4"00
011841114
el"71~
862716
0110002

HOV
ADD

NOP

"QIII'2'"

826412
02641'1
926416
02642!:l

BIT
BEQ
MOV
ADD
HOV
ev
MOY
HOV
TSTS

010611~

062116
012637
111141111110
085266
08:1.417
104400
0111841:i
0130240
01'16506
006536
90 6 516
889240
881:567
00 5 116
0.,6636

0264~6

1-

'PUT ADDREsS 0' eHECK [,jQRD ON THE SUCK
I CHtCI( I ' MEH MGMT I S ~NAB1.EO
IBRANCH IF" Off
1S
UP U~tR pAGE AOOR ~ REG,
•• U'Po\R" "U lpAR6
USER- PAGE DESC Rt R/[,j UP 6 PAGES
*6016, .,U IIIIDR6
'BRANCIoi I; 11/40
'4,.·OPT,cl"
,,101/10 ..

Ian

,In

U$

.,SIPARI, USIPAR6
,SET SUPER PAGE DESC. REG,
'6 0 86,',SlI'O R6
,$ET cURRENT MODE!S STACK POINTER
':1."10",51"

HL.T
BR

3S1

NOP

HOV

,tRitORI Mr"I,HTPI 'AlI.URE .. FOR BETTER
,I'OLATION SUGGEST RUNNING MPPI DUG, DCKTD/E
,PS".KERNE~ HODE,PR£V IJSER OR SUPER MOOE
51"
,GET PR£V, MODES $TACK POI~TER
, ; , ' DATA CAN AooReSSI ON PREV HaDE'S STACK
.GET OA fA 1.0) ,ROH PREV MODE:' ADDRESS
.SPACE; AND PUSH ONTO KERNEL STACK
1~~1II0R
ItRANCH TAKENI IiHCU~O HAVE A, lERO ON THE Sf ACK
41
CSPt
J(:o",PLffllENT OPtRAND
'PDP o,ERAND 0F'F' K£IIINEL lUCK AND MOvE
"I"h
liT TO PAEV MODE'S SPACE
,RETURN TO INS' F'OLLOWING EMT ASOVE
.ERRORI HEIIIGRY HANG. ABORT
..,1111101
,tET PRIORITY I.EVEL BACK TO 1/1
'KU8RT ,"""VEC • AEtTORt VECTOR

HOV

'SCepe4,UEMTV!C

eEO

Hflll
"If'"
Mf'''l
NO"

aNf

oOM
MTP'
551

AU
lolL'

c~.8

611

8til0580

HOV
sCOPE

2(Sl')
6S

0"0822
BU8".

,.,.

81118806

11/ 4 0-11/45 cPu ExERCISER

65

"'Ph
,c8"1

,F'

'STKP,R.SP

0111527-4
885264

026526
"26 53 ,,
1126534
11126536
"'26548
iIl26544
11126546
02655"
02655<1

11l'''''277
01 3 7"0
000217
0.,9,f/J5
823780
8n"';\'
104400
01 0037
10401Ul

926556
326560
1126564
,,2 65 7"

010702
062102
812707
88~11l00

,26572
"26574
"26576
026602
926610
026614
026622
026624
z26630
026634

010708
ra,,5748
9111837
112137
81114737
3
767
01070"
162700
"101131
818701

026636
026644
1126646
"26652
02665<1
026660
026662

032737
0rU512
812102
08511122
032712
"11111114
852712

004800

::26666

111 127fJ0
8:1.8842

080408

.AUTORE STACK POINTER

.;ss..,

.8"804

"'·1'

177776

PAGE Ul8

4·'1'.74

351

'[RIII"T.,,lIERRvtC 'RESTORE ERROR TRA" vECTOR
'Re:s~R"'''ESVEC

HOV
HOV
SCOPE

I TEST THAT R[Sn IS A 'NO'"
RESE T1' SCC
HOV
"pIW , R0
sCC
RElET
_,"SW,R,
eH"

177776

u,'"

MAeva 21(6")

START OF" SECTION 6
812737
012737
184000

'$£1 EMT TAAP VECTOR
,TRAP TO 3' 8E~OW
, INCREMENT CMF;CK WORD

,CHECK TH" MAI.T INS'"UCTION TRA', TO " <11/451.10 Cll/"'I I N USER/SUPER MODE
PCt.ei p )
'iEf CURRENT PC
HOY
HAL.Tl1
AOD
'21." 'Sp)
Isn tRROR TRAP VECTOR TO 25 B£l"oW
(S"., "ERRVEC
MOV
I\,Do\O AEIEAVED tNST TRAP VECTOR (11/41!1)
'SP •• , .,RUYEC
MOV
,$HqUlD TRAP TO " I N USERISUP~R MODE
HALT
,UROR' NAt. T A80 Vf; PAlLED I '" ~SER/!lUIII[R MoOE
111
ilL'
31
sR
Pc,tS')
HOY
'R~f,.AC' RETURN PC WJTW
2St
esP)
'ADORUS 0' 35 BELOW
ADO
,RnURN (TO 351

1'100810

<:265H1
026516
026524

I Sf;,. MEI1 MGMT ASORT VECTOR
'CI.EAJ! CN[CI( Io!ORO

4S,

""111808

1l0i125IJ
I'II"n~

J I4
5525
5526
5527
5528
5529
553'"
5531

HACYl1 27(655)

i!l2~2711J

"27316
kl2732r
021322
021324
~27326

l;:?331i'
,'2 7 332

SIC
MOV
CMP
RNE
NED
SPL

Ul"""1IJ
99""16

11'05'

~~~~~~~

17230"
1716210
1722QJIIl
112320
117620
17222'"
Ii:l 11)0021 0

eLR
SOB
sR

4~SEP-74

11,53

1'15.R~

,CI.t..AR NON .. SETl'ABI.E BITS
I WR ITE eOHPI.EMENT OAt A
/ANi) CIoI[CK
'TAl(:::: <:RhuR EXIT
,ShP DATA
,l,OOP UNTI FINISHE.D

R4,(R~)

(RPlt, R"
995
R"
45
(R0t·
R3,ISS
1$

,ERROl'll INCORRECT DATA REAC BACK
'fROM PAR, ADDRESS OF 'AR IS IN
IRe, DATA 15 IN R4
100 NExT R!GIST£R

MLT
SR
SCOPE
aR
FOR POR
':WORD
"woRD

~WORD

"WORD

~WORD

','woRD
,WORD

PAGE 111

5S

KTl
& PAR TESTS ABOVE
IQPC)RIII
UIPDRIII
, CHANGED TO '0' IF 1114il
SIPDR0
KDPD R0
uDPDR0
SOPOR0
Ii:l
,T(;HMINATOII

o;O:;3~

5,v~

5534
5535
5536
5537
5538
5539
554('
5541
5542
5543
554<4
55'15
5546
55"7
5548
5549
5551/!
5551
5552
5553
5554
5555
5556
5551

5558
5559
55621

DCCKCO
DCCKCD
5561
55 6 2
5563
5564
5565
5566
5561
5568
5569
5570
5571
5572
55'3
5574
5575
5576
5517
5578
5579
55821
5581
5582
5583
5584
5585
5586
558,
5588
5589
5590
55 9 1
5592
55 9 3
5594
559!!
5596
559,
5598
5599
56QJ2I
5601
561112
5603
5604
5605
56i!16
5607
5608
5609
561il'
5611
5612
5613
5614

e21334
02'1336
02'1340
e21~42

027344
1iJ2'346
0213%'

17234il
1716"'"
1722"0
172360
177660
172260
0,,0111210

027352
11121356
0::27 36 0
02736"
"2'370
,,273,4

1115737
0131522
00 5 037
01115137
0QJ5037

;!2'4['~

122737
1Il0140'1
01115"37
1il1ll5037
1il;l.3746
013746
0197<46
062716
012637
11113737
005000
0107QJ2
U2793
014223

0274216
ilI2741~>

021414
02742f1!
027424
('27430

Ql21432
"2'436
02'442
il2'45Z
1IJ27452
027 4 54
1/12'''60

~1Il511137

08077111
17235111
172310
17165111
1176111J
002111104

01/157fl11il
0e1,fl!11.'1

927472
,,2'''76
0215:."0
1121502
02,5(16
"2'512
021516
0275211
1112,524
0215311J
021532
021540
QJ21542
02'546
027552
'1121554
02'56'"
2127564
021566
027512
i'l1!l1!l340
1,,,,76
152564

1il1!l1il1ll54

177176

0001''''

177'64

000006

17-566

Ilril~U4

4$1

5$1
MSGI
0121012115

'~41

'6042
!J643
5644
5645

S'6 4 6
5647
5648
5649
5650
'1651
5652
5653
'654
'655
'656
5657
,658
5659
'660

'1661
1662
5663
5664
566'5
5666
5667
5668

OCQf(CO
OcOKCD
5669
5670
56 71
56 7 2
5673
5674
5675
5676
5677
5678
5679
568121
5681
5 68 2
5683
5684
5685
5 686
'5687
5668
5669
569(1
'5691
5692
5693
5694
5695
5696
5697
5698
5699
'57111:11
5701
5702
57"3
'571114
57"5
57f:16
5707
57"8
5709
571<1
5711
5712
5713
5714
5715
5716
5717
5718
5719
57211
5721
'722

iIl30144

t 30152
e'3016111
J30162

132737
01211143
032737

031!1351!1
111311141210
01211113011
01210312111l
0f112111011l

1110111 1111 III
01!11!11134
1!10011l2
"1110106
"2"17!>4

1110"0"2
0"11111''11

172542
172540

1210112100

010,,'764

0012111110
177546
000240

1'75046
0001"4
12100174

0i1H!112120

177776

111 IIlI!l1 121 0

177570

11/4121-11/45 CPU EXERCISER
TELETYPE /I cLOCK TESTS

0i:l1137
032737
0@1374

12100H'llll

g~~~~ H~n~

121012131210
121011110fil

177776
171564

1110012164
1!130312

000210
000064

<'3121170
nl1172
~3121200

23111246
G302511l
c3121252
230254
\:31'1256
;;3[1264
il3Q1272

11112737
"13737
U5037

1'13111326
1lI11l01FJe
177776

121"121100
01110104

.:30276

"22767
"'l14r;5
1,,4400
0NJ4r;3

1'101'10"2

177732

177564

2l3'~220

f.'I3\l226
1030234
~3121236

e 30 24rz
.:3:.1242

l3"244

'~3,l3i£'4

~312J306

.:3;;131'"

~,,:;J0"2

.. 33326
/321332
• 3<134121
,30346

111;>'5267
°12737
€12737
I1I"J414

177704
030350
030400

.'31i!350
c3J3504
c311362
\;.30370

151'J421'J
;;100100

~3;'1372

0;.'5267
11112737
032737
0k01402
0,,5037

:3kl376

"i"~002

'3,1411l1Z

075267
1(1 2737
°12737
til32737
'-'114"'2

15111372
1210011210
000101
00121121111

i,'i0~7

172540

3~'436

l, _IlJil

ISET lE BIT IN TTY CSR R[G
.WAIT fOR fIRST INTERRUPT
.Cl,EAR IE BiT
,CHECK IF C~ARACTER IS 

'12, '11510

"5

'III TPS
,pRTY7,II,P5W
.,PSW,"ISft)
PC, t TyPE

J CL.&:AR IE BIT
,SET PRIORITY LEVEl. 7
'PUSH PSw ONTO ST ACK

'1"0,"TP5
MSG

,SET IE BIT
,STtP POINTER

,MSG ,., TPB
2$
(pC.·

,TYPE CHARACTER
'BRANCH IF" TERM I NA TOR
,sET HSG To NEXT CHAR ADDRESS
'CONT AINS ADDRESS OF CHAR lOBE TYPED
,RETURN
'CAR RET,SPACE,CAR RET.

"

MAC Y11 27(655)

2$1
3$ I

~~~

MOVS
RISB
BPL
HOY
MOV
elR
','wORD
NO'

4-SEP- 7 4

11153

ARB6 X
'1 00"*TPS
2$

#3 00,lI#pSrI
#1 0 0,II'TPS
3$
""TIIVEC, , TPVEC
'7 S • II #TpIiEC
(PC ••
0

PAGE 114
I Cl.OCKS

:~~~~

TTY TO BE NOT
fOR
ISET PIIIORITY ~E¥E:L t;
;SET I E BiT
,AND WAIT FOR EADY
I SAVE TTY VECTOR
15fT TTY VECTOR
I CLEAR CHECK WORD

NO'

III 111 III 1"J 0
177712

'eo~2

,~4

uTpS

,ROUTINE TO CHECK PRIORITY ARBITRATION L.OGIC
ITHE BEL.OW TEST W!L.L INH18IT INTERRUPTS ON L.EVEL b AND ABOVE !~OCKING
lOUT THE LINE CL.0CK. AND THEN SET UP THE TTY TO If';TERRlJPT, NEXT THE
,"RIORtTy LEVE~ wlI..L BE SET TO 0 AL.L.0WING INTERRUPTS IN WHICH CASE
I THE LI HE cLOCK (AT LEVEL. 6) SHOULD INTERRUPT eErORE THE TTY (A T LEVEL 4l,
1$ I
BlTB
'20 r ',PSw
BNE
ARBfiX
IEXIT TEST IF 'T' EIT sET
BiT
'10e, •• sw~
'BRANCH I~ USER HAS DESI"ECTED

5$1
6$'

1Z4?737
""6367

l
10 5 237

Cl0a770

;3~712

1050~7

('~~771

3J7i6

ZIH'410

57A9

HACYll 271.55)

RC 1!:ER
STS

177552

"1111413

121 63 7

~fIlll771

"I/IS1/I70
35,

171 5 '0

Bh

·1".2Ie.uPR5

eGT
HI.T
BR

1$

INCB
SNt:
liLT
SR

UPRSYNC

TSTB
BNi:
cLRB
HOY
INC
RT!

"PRB
3$
tI,PR5yNC
'pR,S,!" . . "RVEC
"PRS

~Nr

~I!I:'771l1

2$

3$

en

HOvB
BEQ
CHPB
INCB
SNE
INCB
CLRB
pR

IF'

REAOy a NO EAROR

PREXlT

,HIGH SPEED READER TEST.
,ROUTINE REAOS EACH CI'lARACT[R
,1 GRUT!:R THAN L.AS' ONE READ
I A i!ERO CHARACTER lS READ THE
'BE CONSECU'I'I VEL, Y READ BErORE
PRTST I
'1111,,28f1l ••• PRS
1$
BIiT
HLT
.. ISPI
TST
1I1J0$
BR

1S1

,SRANCH

"'PRB,~(SF')

,COUNT A HAX I HUH OF 128, NON
J 'I I CWARACTERS
'ERRORI HORE TIUN 128 NON III
,CHARACTERS DETECTED
,SRANCIoI

IF'

A NON 0 CHARACTER

,RESET SYNC
'SI:T VreTOR TO T[51
ISf:T RHDER EN'S!.E
IEXIT INTERRUPT
FROM TAPE EXPECTING THE CHARACTER TO Bt
UNTIL A I£RD CHARACTER IS REAO,WHEN
TEST AI.l.OWS UP TO ].28, I/J CtiAI1020
1776"'0
1776:?2
177616
000350
1776411J
111002"'0
172356

~3i 426
O31 4 32

elT
OEO
81T

f'lNt:

0:1. 0 037
1!l10037
"1°037
0:1. 6 737
013737
1162737
013717

031416
0Ji422

2S,

is!

172202
172216
011J027<1
17224"
0"020O
172356

17224111
172242
172242
172256

,BRANCH IF' 510109

Is •

3S
il/1 0 ,,01!1,fi/SWR
4S
ENOH
*1°00£1, ,*SWR

IJMP IF NO RELOCATION 'BOVE 28K
lIE SWlhi!l oS 51019,1
,E)lIT
,BRANCH IF SW12· il

EttOM
.. ,PSW. (pc'.

,SAVE OLD "SW

'Is

"

FlIT

,SET LEVEl. " oS KtRNEI. "'ODE
'PRTY4,II"P5W
PC,eI.RTel T
'CO CI.!:AR IT' BIT " SET
"7"06,R0
R0,UKlpORtl
'SET KlflORII,l.& 7 R/W UP 4K WOROS
R/I,,,'KIPDRt
RI,"'KIPDR2
RI.'''KIPORJ
Rf),"KlpDR7
',KlPA R0
"2 0 0.UK%F'ARl
N£XpAR
IpAR2
./IIK( PA R2. "K I PAR3
*2 II' I!l , "KI PAR3
':l.11611!l,III1KIPAR7
.. (SP)
'11808, .UWR

BNt
CH"B
BNt
MOV

'1 0 ,"/IIOpT,CP
1$
*2°,(SP,

MOV
MOV
MOV
MOV
MOV

,.,1(

15

R0,.,,,,lpOIlIl
RI,"'I;IIPORl

,SET UP USER HEM "'GMT REGS

R8'"U!f'D'''

MOV

NEXt' 'R 1./IIlJlpARI!l
.'UJPAR..... Ul PAR l
'211.II·UIl'4Rl
.,k'PAR7, IiltUtPAR1

CH"e
BEQ
MOY
MOV
MOv
MOV
MOV
ADO
MOV

,ElRANCIol IF' AN 11/40
I "OPT • C"
35
,SET Uti SU"EI!V I SOR "1E'" MG""
Re'''"SIPDRII
RQI,"-SIPORl
R', "'S IpOR7
NEXPAR,.,StPARII
.'S'l~.RQI, "'StPAR1
'2 B0,.'sl;rARl
.,KIPAR7,"'S I P.R7

.00

1722~~

*l"iHl, 81 i1Si'lR

,I"

R!:GS

11/."'-11/4~ ('I'U EXERCISER

STM" ROUTI"JE
031536

i'11/l3 7

"'31542
031544
031,546
0315'54
03i56(/1
il31564
1331572

00'57;>6

B316~(/I

I!l 316 (II 4
B3l,b;l'6
031612
0316H
031616
031 6 2(/1
031 6 26
,,31634
031636
031644
03~646

03165"
3316'56
031662
031664
031666
1131670
eH672
1lJ31674
031676
0317o"
133i "02

Ql3"70 4
113 ... 706

00132""
912737
105237
el4767
"13167
11112737
012702
0e5001!l
0127"<1
":1. 0 20;'

i!J31116

4

RETRY I

33 7 372

1!l20302
011113,5
010302
£11270;'

!~~~~~

"'1U4"t1U ....

01114737
104·HHl

MOV

ISETUP SR;'

TST
NOP
MOV
INce
JSR
MOV
"'OV
MOY
CI.R

,POP STACK

MOV
MOV
ADO
MOV
HOV

000004
17'75'7"

An

RNE

aIT

177"0
il0"757

11SI

11106302
006302
0111 6 116
00 6 302
1!l,6116
0,,6316
00 6 316
21116316

03",32
031.,34
03i736
03{., .. 0

031754

01UI576

"""'I!!

~06302

!!li73e

~~g;~

177572

00071'

010£113
012737
"32737
0Ulle7
032737
0"143:1.
113737
005046
1.'1:1.3 71112
006302
1!l06392

0,<1737
102105
01 2 702
012022

03114<1

"000"1
15:5<102
0e5172
0321!l54
(1"0000

061!J,,0~

:UH~ ~r~~H
1131722
031724

172516

000 76 2
001420

"''0 rII "0

is!

lt115l
2S1

BEQ
Hoye
CLR
MOV
ASI.
ASL
ASI.
ASI.
ASL
ROI.
,Sl.
ROL
ASI.
ASI.
ASI.
ASI.
MOVEI
JSII
BVC
",OY
MOV
CM"
BNE
MOV
MOv
cHP
!:lEO
JSR
IoILT

'", ,.SR"
'ENABL,E HEM MGHT (PROG I SIN KER HOOE I
,SET MEH MGMT ON tNO • O~
UMMOH
PCd.DDISp
,LOAD DISPI.AY REGISTER
.. ,OiSPL,Y,ENDTAG IANI,) ALSO AS LAST WORD xrEHEO
*ENOMII!M •• 'ERRVEC' SET T I HE OUT TRAP VECTOR
U"III!JI'R2
RII
,DATA WlLI. BE RELOCATtD FROM
'ADDRESS IN R0 TO ADDRESS 1N R2
*[",DTAG.2, R';
,GE T • OF BVTES TO REl.oCA lE
R2,R3
,CET 'TO' ADDRESS
'FO~M I.AST 'TO' AOOR£SS ,OR RELOCATION
R4,R3
R0, 'Fl3)
,CHECK til' SUHICIENT MEMORY AVAILA81.E
j[RItRT •• ,EIIIRVEC I RE5TORE ERROR TAAP VECTOR
'CHECK I' Al.I. DEYICF.;S OEStRED F'OR
'4 0 ,.,SWR
115
,REI,0CAnON ROUND ROBltt STYLE
,CHECK IF' A DEviCE Is spECIF'lED
*l°.·"WR

15

",SIIIR •• ,OEY
.. (SP)
.,KlpAR2, III

R2
R2
R2
R2

R2
< SF'.
R2

11215737
1QI00IC2
01/10I11tc"

03220121
Z322i"2

021el~7

0137111~

0"1'10"
88 4 712
01102 40
8111024121
81/1 8 240
"111"137

6 iii 14
6i11!l
6QJ16
6017
6018
62119
602121
6021
6£122
6"23
602 ..
602!'
6026
6027

, EXERCISER

1213221216
032210
~32212

2'32214
.;32216
"32220
,'J2222
l32224

"2102100

tc"""11I2iSW.
CPPASSI 177774

DCOKCD
DCOKCD
6028
6029
603~

60h
6032

DCOKCD
DCCKCD
6033
"'34
611135
'''36
603'
6038
61!1J9
6"4111

11/4C-U/45 CPU F :-I<1 2 >'OPT,CP. ,
<15><"a> I L.Qw I. 1"1,., !
'HI(OH L.IMIT?'

ENOHSG, ','ASC Ii

<15><12> I DCQKC OOHE;'

':EvEN
NODE V I
~ASCI I
OEVNAHI :ASCU

Q,5>
'Xli N T O~ BUS' <15><12>

':EvEN
EHDTAG I ','WORD
I/)
'NOTE I THE fOL.L.OW I N(O COOE GE TS OVER!"A I 0 WHEN hIE PROGR. H 15 S!ARTED,
.THESE ROUTINES ARE USEe TO CHECK THE TYPE, HI. T, AND SCOPE ROUT INES.
J CHECK T'1P[ ROUTINE I
CHKTvPI MOY
ISET SU.CK pTR
',ee,SF
TYpE. SuCCESS
RR
CHKfYP
CHKHI. T I MOV
HL.T

RR

CHKSCP I MOV
CL.R
MOV
MOV
INC

.,01/),SP

*500.SF
R0
PC,Rl
RI/I.'*OISP(,AV
RIi!

~COPE

QR

J SET STACK PTR

CHt.1"
013224
ll11l64il
141351110
0,o172
e0311lH
025402
ii02124
"0,,030
02i272
03211!54
0,,"322
"11!5320
(123161l
ol202100
<'1"'51"75
"''''1·300
;'13236

ACl
·"111""01111
AC!5
·""0001115
.. OC87
0:i3'HB
ADC5
812212
014524
ADOl
A003
11116122
ADAT AB 002226
ASCAN
0"5031
02551112
ASIoIL1
ASLB1A 0111'76
ASLB7
014 0 36
ASL4
0114'6
ASRB1A "11062
ASRB6
"13172
ASR2
011 4 2"
',OAH ""4136
91C81
"1~142
91C2
ill''''''''
BIN87
017476
BI90A
"14374
91S7
"176'"
FlITB6
1Il166'"
BITt5 •
8PTVEC" III III 001'1
11l07351!1
CCI1l
CO"
""7426
CHI
Source Exif Data:
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.3
Linearized                      : No
XMP Toolkit                     : Adobe XMP Core 4.2.1-c043 52.372728, 2009/01/18-15:56:37
Create Date                     : 2013:11:27 09:23:54-08:00
Modify Date                     : 2013:11:27 09:29:17-08:00
Metadata Date                   : 2013:11:27 09:29:17-08:00
Producer                        : Adobe Acrobat 9.55 Paper Capture Plug-in
Format                          : application/pdf
Document ID                     : uuid:c53a771b-d5f3-4f6a-a331-adc1e55ff3bf
Instance ID                     : uuid:606a00dc-8fcc-4209-9504-3e022ad93c8c
Page Layout                     : SinglePage
Page Mode                       : UseNone
Page Count                      : 108
EXIF Metadata provided by EXIF.tools

Navigation menu