Download Print this page

Exercises - RCA Spectra 70 Training Manual

System
Hide thumbs

Advertisement

Table of Contents
character transferred is generated in each position
of the receiving area.
As an example, assume 120-character area is to be
filled with blanks.
It
is known that a blank (40)16
appears in the first position.
The area is allocated as follows:
NAME
OPERATION
OPERAND
ORG
5000
PRNT
DC
X'EO'
DS
119C
The name PRNT is assigned the address 5000. The
area is cleared by the following instruction:
NAME
OPERATION
OPERAND
HSKP
MVC
PRNT+1(119) , PRNT
The following diagram illustrates the overlapping
of the sending area by the receiving area.
SENDING AREA
Ii:"'"
/
\
1~5::
=-----l\
~L----XXXXXXX_____l51~91
I
\~
____________
~7~
PRNT
RECEIVING AREA
Upon completion of the execution of the instruction
the area 5000 to 5119 will be filled with the Blank
(EO) 16 character.
Exercise:
For the purpose of this exercise, assume memory
to be allocated as follows:
NAME
OPERATION
OPERAND
ORG
2000
WORK
DS
5C
NAME
DS
10C
BAL
DS
6C
DATA
DS
5C
ORG
2100
WA1
DS
26C
PART I
Write the instructions to perform the following oper-
25
ations. Place your answers in the space provided.
1.
Move 'Work' to 'Data'
2.
Zero fill the 'Bal' field. (Assume the first byte
of 'Bal' is a zero.)
3.
Clear the 'Work' and 'Name' fields to blanks.
(Assume the first byte of 'Work' is a blank.)
ANSWERS
NAME
OPERATION
OPERAND
1.
2.
PART
II
Assume areas allocated as shown on Line 1. How
would the area called WA1 appear after execution of
the four instructions below?
Line
1
00 01
02
Line 2
4.
5.
6.
7.
NAME
PART III
OPERATION
OPERAND
MVC
WA1(4) , WORK+2
MVC
W A1 +20(6), NAME+5
MVC
WA1+4(1) , WORK+1
MVC
WA1+S(15), WA1+4
Each record on an input tape contains the following
fields of data.
NO OF
ITEM
CHARS
- - -
Account No.
8
Name
25
Type Account
3
Street Address
20
City State Code
2
Credit Code
5
Balance
8
Total Purchases
8
Total Returns
8

Advertisement

Table of Contents
loading

  Also See for RCA Spectra 70

  Related Manuals for RCA Spectra 70

This manual is also suitable for:

Spectra 70/25