RCA Spectra 70 Training Manual page 34

System
Hide thumbs Also See for Spectra 70:
Table of Contents

Advertisement

ANSWERS (Assume that General Register one con-
tains 0000.)
NAME
OPERATION
OPERAND
1 . - '
2.~
Show the generated instruction for each of the assem-
bly instructions that follow and the results of each
instruction in the blank locations above.
OPERATION
OPERAND
3.
PACK
WDAT-1(1) , BAL+6(1)
OP
OPERATION
OPERAND
4.
UNPK
DAT A+4(5) , DAT A(3)
OP
OPERATION
OPERAND
5.
PACK
DATA+3(1), BAL(5)
28
OP
A Master Inventory File is in the following format
with all fields in unpacked format.
NO. OF
ITEM NO.
CHARS.
1
STOCK NO.
9
2
AGENCY CODE
3
3
ACTIVITY CODE
1
* 4
FORECAST REQUIREMENT
8
5
MANUFACTURER
15
6
MFGR'S. ADDRESS
20
7
MFGR'S. CITY, STATE
15
* 8
STOCK ON HAND
7
* 9
RESERVE REQUIREMENT
6
*10
DUE IN
6
11
REVIEW DATE
6
Items preceded by an asterisk
(*)
are signed numeric
fields (Unpacked).
Requirement No.1
Allocate memory for the Input Record beginning at
3000 and for the output record beginning at 3100.
The output record area is allocated in the same for-
mat sequence as the Input record area, however,
asterisked items are in packed format and of a min-
imum size to contain all digits in the input items.
Requirement No.2
Write a routine with coding to begin at 3200 that will
construct an output record. Assume for the purposes
of writing your routine that the input record is pre-
sent in memory.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Spectra 70/25

Table of Contents