Home
RCA
Computer Hardware
Spectra 70
RCA Spectra 70 Training Manual
63 pages
Manual
Specs
Ask a question
To Next Page
To Next Page
To Previous Page
To Previous Page
Loading...
EXTRN
CODE
Reference
to
a
symbol
in
another
program
is
defin-
ed
by
the
EXTRN
Code.
A
separate
statement
must
appear
for
every
symbol
appearing
in
another
pro-
gram.
EXTRN
appears
in
the
OPERATION
field
and
a
symbol
must
be
used
in
the
OPERAND
field.
The
NAME
field
is
not
used
on
this
line.
EXAMPLE
OF
ENTRY
AND
EXTRN
One
use
of
the
ENTRY
and
EXTRN
codes
is
to
link
a
program
to
a
subroutine.
Assume
that
a
SINE-CO-
SINE
subroutine
has
two
ENTRY
points;
SINE
and
COS,
and
one
EXTRN
point;
RTN.
Programs
using
the
SINE-COSINE
routine
can
BRANCH
to
either
SINE
or
COS
depending
on
which
function
is
to
be
computed.
The
SINE-COSINE
routine
BRANCHES
to
RTN
after
computing
the
function.
SINE-COSINE
ROUTINE
NAME
OPERATION
OPERAND
SINE
COS
START
ENTRY
EXTRN
B
B
END
COS
RTN
RTN
RTN
MAIN
PROGRAM
NAME
OPERATION
OPERAND
BGN
RTN
START
ENTRY
EXTRN
B
END
RTN
COS
~COS
is
an
ENTRY
COS
point
in
the
SINE-
COSINE
Routine
The
main
program
defines
RTN
as
an
ENTRY
point
that
allows
the
SINE-COSINE
routine
to
BRANCH
to
RTN.
20
RUN
AND
SEGMENT
CONTROLLING
CODES
The
first
and
last
statements
of
the
source
program
must
be
a
START
and
END
statement,
respectively.
If
a
program
contains
sections
which
are
to
be
load-
ed
individually,
the
second
and
succeeding
sections
must
begin
with
a
CSECT
control
code.
START
CODE
In
addition
to
flagging
the
start
of
the
source
pro-
gram,
a
START
code
can
set
the
location
counter
to
an
initial
value
and
identify
an
entry
into
the
pro-
gram.
START
must
appear
in
the
OPERATION
field.
A
self-defining
value,
written
in
the
OPERAND
field,
sets
the
location
counter.
A
symbol
appearing
in
the
NAME
field
is
considered
an
ENTRY
point
into
the
program
(see
ENTRY
code).
NAME
OPERATION
OPERAND
BEGIN
START
END
CODE
S'064'
Set
Location
counter
to
100(10)'
Establish
"BEGIN"
as
an
entry
point.
The
END
code
informs
the
Assembler
that
all
source
input
statements
have
been
processed.
The
OPER-
AND
field
specifies
the
starting
address
of
the
object
program.
A
symbol,
self-defining
value,
or
aster-
isked
address
may
appear
in
the
OPERAND
field.
NAME
OPERATION
OPERAND
END
CSECT
CODE
STARTP
STARTPisthe
name
of
the
pro-
gram
starting
address
The
CSECT
code
identifies
both
the
beginning
of
a
new
section
(segment)
and
the
termination
of
the
pre-
vious
section.
The
START
code
identifies
the
first
section,
therefore
CSECT
should
be
used
for
the
second
and
succeeding
sections
only.
The
NAME
field
may
contain
a
symbol
or
be
left
blank.
A
sym-
bol
used
in
one
segment
can
be
referenced
by
any
other
segment
in
the
program.
25
27
Table of Contents
Table of Contents
4
General Description
7
High-Speed Memory
9
Introduction
9
HSM Addressing
9
Hexadecimal Numbering System
10
Exercise
11
Data and Instruction Format
12
Data Formats
12
Unpacked Format
12
Edited Format
12
Machine Instruction Format
13
Exercise
13
Interrupt
15
Introduction
15
Programming States
15
Processing State
15
Interrupt State
15
Types of Interrupt
15
I/O Interrupt
15
Operation Code Trap
16
Arithmetic Overflow and Divide Exception
16
Elapsed Timer Interrupt
17
Inhibiting Interrupt
17
Exercise
17
Summary of Interrupt Logic
18
Elapsed Time Clock
19
Introduction to the RCA 70/25 Assembly Language
20
Format Requirements
20
Addressing
20
Self-Defining Values
22
Expressions
22
Implied Lengths
23
Assembler Controlling Codes
23
Define Storage (DS)
24
Origin Code (ORG)
24
Constant Definition (DC)
24
Program Linking Codes (ENTRY and EXTRH)
25
Run and Segment Controlling Codes (START, END, CSECT)
26
Equate Code (EQU)
27
Base Register Controlling Codes (USING, DROP)
27
Extended Mnemonic Instructions
27
Exercise
28
Instruction Complement
30
Data Movement Instructions
30
Move Character (MVC)
30
Exercises
31
Packing and Unpacking Data (PACK and UNPK)
32
Exercises
33
Decimal Arithmetic Instructions
35
Decimal Add (AP) and Subtract (SP)
35
Decimal Multiply (MP)
36
Decimal Divide (DP)
37
Exercises
37
Data Editing Instruction (ED)
39
Examples
40
Exercises
41
Comparison and Branching Instructions
43
Compare Logical (C LC)
43
Compare Decimal (CP)
43
Branch on Condition (BC)
44
Branch and Link (BAL)
44
Branch on Count (BCT)
45
Set P2 Register (STP2)
45
Exercises
45
Load and Store Instructions
47
Load Multiple (LM)
47
Store Multiple (STM)
47
Binary Arithmetic Instructions
48
Binary Add (AB) and Subtract (SB)
48
Exercise
48
Logical Instructions
51
Logical and (NC)
51
Logical or (OC)
51
Exclusive or (XC)
51
Use of Logicals
52
Test under Mask Instruction (TM)
53
Data Translation, Translate (TR)
53
Inputloutput
55
Introduction
55
Read Instructions (RDF) and (RDR)
55
Writing Data (WR) and (WRE)
56
Controlling Peripheral Devices
56
Error Recognition
57
Logic
59
Standard Device Byte
59
Sensing Exceptional Conditions
59
Peripheral Unit Sense Bytes
60
Summary of 1/0 Logic
61
Example of 110 Coding
62
Exercise
63
Other manuals for RCA Spectra 70
Reference Manual
260 pages
Need help?
Do you have a question about the RCA Spectra 70 and is the answer not in the manual?
Ask a question
RCA Spectra 70 Specifications
General
Manufacturer
RCA
Model
Spectra 70
Category
Computer Hardware
Word Size
32 bits
Memory
Up to 512 KB
Predecessor
RCA 3301
Successor
RCA Series
Related product manuals
RCA 70/46
260 pages