Hexadecimal
‘encode aiscneme
Muttioty-gro
6c mo
4c
1c ee
wa
Subtract,
so ora
fa SH
SA
z
i
g
z
Compare-srovp
ce
cue
cu
Cun
Movesroup
ve
mv
Andgroup
"
Ne
NI
NR
Orgroup
°
oc
or
on
Exclusive-or group
x
xe
x
xR
Shite
rSLOL
SLL
SRDL
Smt} Shite
Multiply (ax
Meliny nat,
'v (AR)
Subtact
Subteact an
Subtact
Comers ei!
Eeroarae is
Compare logical (RR
Move (ss)
Move isi)
Boolean OR Si)
Boolean OF (RA)
Exclusive-or (RX)
Exclutive-or (SS)
Exclusive-or (Si),
Exclusive-or (RA),
Shift loft (double los)
Shift left (singio
Shift
MACHINE STRUCTURE, MACHINE LANGUAGE AND ASSEMBLY LANGUAGE 35.
oe
a
Linkage group
{ Bd sce cce in
q Branch group
Bfa ie ere oncom
ia feet
& sr, Senna
res
{a es a
2) 3 % sereten
= 1 ™ Test unger mask (SI)
'360 has hardware protection in blocks of 2,048 bytes and has an elaborate
-rupt structure discussed in Chapter 9.
2.2 MACHINE LANGUAGE ’
discuss machine language (the actual gode executed by a
cour examples are taken from a 360-type edmputer. However,
to other machines.
‘start the reader on his way to learning machine language.
1e reader is referred to one of the many books or
rage of the particular machine that he will
Jers, Rathor, we will use dmnemonic fort of meine lang‘caues the contents of the word (32 bits) cuted at address
ptt $9
+ exa) + 02 2S a
ii (ee cnc ol ene J
2 iow [oh
ove immed 4 5 4
(ote tor
to be added to the contents of general register 3 (32 bit haractet
left in general register 3. Saat
Another example spain that general feister § contains 1000, i the
following instruct in SS instructions the length I abvays one tet th aprventatve 300/270 Insouctons
the data moved, e.g; length = 0 means move on¢ byte)’ oe °
Sana tn TEbIy
Various 360
Gbytes:
seeded in problem sets and machine prob
wticularly relevant to our ‘purpose and A
veferenee anual. (See Appendix A for complete set of instructions}
Leia Mremonie Meaning format
{rom operand 2 :
Lieven {8S — format) =
Myce: bo.
‘This instruction inyolves two storage operands:
a a ad IRA
| hs onder es (RAD
oo ‘Store group a
rage operand 1 ade 1) + Ot = ef5) + 92 ‘yore
pean S ecares S000 + Sz = 1082, g\s ra Siorealvar 620
‘Storage operand 2 addr 32) + 02 = cis) + 300 f 30 st™ erultigle (RSI
1000 +:300 = 1300 .
‘ “ Aad sou
‘ 2 A
struction copies (moves) the 80 bytes from locations 1032 1111:to__ nat AH ‘naa hatord (RM)
yns 1300 - 1379, Since a character is stored as a byte (see"Fig. 2.32), this g 1A An
1 could be viewed as copying an BO-character “card image” from one % comparesrouP
area to another, : ; ° A Compare tPA) ay
Ammediate operands are_a single byte of data and are stored. as patt ofthe 2 23 cH Serrpare (RA
instruction. — ne & 9 cn
‘Again assuming register $ to contain 1000, the following S$ instru i bividesgroup
causes the byte 0100 0000 (bits 8 through 15 of instruction) to be stored at 5D
location 1004. :
8 Divide (RX)
oI (oR Divide (RAD
een