ST10 FAMILY PROGRAMMING MANUAL
126/172
3.4 - MAC instruction conventions
This section details the conventions used to describe the MAC instruction set.
3.4.1 - Operands
3.4.2 - Operations
3.4.3 - Abbreviations
3.4.4 - Data addressing Modes
Operand
Description
opX
Specifies the immediate constant value of opX
(opX)
Specifies the contents of opX
(opX
n
)
Specifies the contents of bit n of opX
((opX))
Specifies the contents of opX (i.e. opX is used as pointer to the actual operand)
rnd
plus 00 0000 8000
h
Diadic
operations
(opX)<-- (opY)
(opY)
is
MOVED into (opX)
(opX) + (opY)
(opX)
is
ADDED to (opY)
(opX) - (opY)
(opY)
is
SUBTRACTED from (opX)
(opX) * (opY)
(opX)
is
MULTIPLIED by (opY)
(opX) <--> (opY)
(opY)
is
COMPARED against (opX)
opX\opY
(opX)
is
CONCATANATED to (opY) (LSW)
Max ((opX), (opY))
MAXIMUM value between (opX) and (opY)
Min ((opX), (opY))
MINIMUM value between (opX) and (opY)
Monadic
Operations
(opX) <<
(opX)
is
Logically SHIFTED Left
(opX) >>
(opX)
is
Logically SHIFTED Right
(opX) >>
a
(opX)
is
Arithmetically SHIFTED Right
Abs (opX)
ABSOLUTE value of (opX)
Abbreviation
Description
C
Carry flag in the MSW register
MP
MP mode in the MCW register
MS
MS mode in the MCW register
MAE
8 most significant bits of the accumulator (lowest byte of the MSW register)
Addressing mode
Description
“Rw
n
”, or “Rw
m
” :
General Purpose Registers (GPRs) where “n” and “m” are any value between 0 and 15.
[...] :
Indirect word memory location
CoReg :
MAC-Unit Register (MSW, MAH, MAL, MAS, MRW, MCW)
ACC :
MAC Accumulator consisting of (lowest byte of MSW)\MAH\MAL.
#data
x
:
Immediate constant (the number of significant bits is represented by ‘x’).
Summary of Contents for ST10 Series
Page 2: ......