Download Print this page

IBM 4300 Manual page 275

Processors principles of operation for ecps: vse mode
Hide thumbs Also See for 4300:

Advertisement

Register 8:
12 34 56 78
FIELD3 (before):
not significant
F I ELD3 (after):
34 56 78
As another example:
Machine Format
BE
9
5
* * * *
Register Format
STCM
9,B ' 0101
1
,FIELD2
Register
9:
01 23 45
67
FIELD2 (before): not significant
FIELD2 (after):
23 67
STORE MULTIPLE ,(STM)
Assume that the contents of general
regis~ers
14,
15, 0, and 1 are to be stored in consecutive words
starting with location 4050 and that:
Register 14 contains 00 00 25 63.
Register 15 contains 00 01 27 36.
Register 0 contains 12 43 00 62.
Register 1 contains 73 26 12 57.
Register 6 contains 00 00 40 00.
The initial contents of locations 4050-405F are not
significant.
The STORE MULTIPLE instruction allows the
use of just one instruction to store the contents of
the four registers:
Machine Format
Op Code
R1
90
E
6
1
050
1
Assembler Format
Op Code
R1,R3,D2(B2)
STM
14,1,X ' 50 ' (6)
After the instruction is executed:
Locations 4050-4053 contain 00 00 25 63.
Locations 4054-4057 contain 00 01 27 36.
Locations 4058-405B contain 12 43 00 62.
Locations 405C-405F contain 73 26 12 57.
A-22
IBM 4300 Processors Principles of Operation
TEST UNDER MASK (TM)
The TEST UNDER MASK instruction examines
selected bits of a byte and sets the condition code
accordingly. For example, assume that:
Storage location 9999 contains FB.
Register 7 contains 00 00 99 90.
Execution of the instruction:
Machine Format
Op Code
91
C3
Assembler Format
TM
9 ( 7 ) , Bill
0000 11
1
produces the following result:
FB
Mask
Result
1111 10112
1100 00112
11xx xx 112
Condition code 3 is set: all selected bits are
ones.
If
location 9999 had contained B9, the result
would have been:
B9
Mask
Result
1011 10012
1100 00112
10xx xx012
Condition code 1 is set: the selected bits are
both zeros and ones.
If
location 9999 had contained 3C, the result
would have been:
3C
0011 11002
Mask
1100 00112
Result
OOxx xx002
Condition code 0 is set: all selected bits are
zeros.
Note: Storage location 9999 remains unchanged.
TRANSLATE (TR)
The TRANS LA TE instruction can be used to
translate data from any character code to any other
desired code, provided that each coded character

Advertisement

loading