EasyManua.ls Logo

Xerox 7120 - Xerox 530 and Sigma

Xerox 7120
32 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
XEROX
530
AND
SIGMA
2/3
PROGRAMMING
EXAMPLE
The
following
coding
sequence
illustrates
a
card
reader
routine
for use
with
Xerox
530
and
Sigma
2/3
computers.
The
routine
performs a
read
operation
and
returns
to
the
main
program. The
ca
II
ing
sequence
is:
Label
P
L
X
A
READ
ERROR
RETURN
ORDERLOC
IOCDI
IOCD2
LDX
LDA
RCPYI
BUFFER
ORDER
P,
L
B
READ
RETURN
LOCATION
Command
EQU
EQU
EQU
EQU
STA
RCPY
STA
LDA
WD
LDA
WD
LDA
SIO
TIO
BNC
B
RD
BAN
RD
AND
BAZ
RCPY
RCPY
RES
RES
DATA
LPOOL
Argument
2
4
7
ORDERLOC
X,A
IOCDI
=ORDERLOC
X'E'
=X'4001'
X'F'
=3
$+2
$-2
X'F'
ERROR
X'E'
=X'8800'
RETURN
*O,A
L,
P
120
X = Address
of
input
buffer
A =
Card
reader
order
code
Comments
Defi
ne
P
reg
i
ster.
Define
L
register.
Define
X
register.
Defi
ne
A regi
ster.
Store
order
code.
Store
buffer
address.
Load
address
of
order
into
even-numbered
channel
register.
Odd-numbered
channel
register.
Set
to
data
chain
with
byte
count
= 1.
Device
number
of
card
reader.
Start
input.
Test
input.
Branch
if
input
complete.
Branch
if
input
not
complete.
Check
for val
idity
error.
Branch
if
validity
error.
Check
for transmission
error
or unusual
end.
Branch
if
no
error
or
unusual
end.
Set
A
register
to -1 {error
code}.
Return
to
main
program.
Set
to
A
register
val ue on
entry.
Set
to
X
register
value
on
entry.
Byte
count
{no
data
chaining}.
Allocate
literals.
Appendix
B
23
All manuals and user guides at all-guides.com

Related product manuals