Mac Instruction Conventions; Operands; Operations; Abbreviations - STMicroelectronics ST10 Series Programming Manual

Table of Contents

Advertisement

ST10 FAMILY PROGRAMMING MANUAL

3.4 - MAC instruction conventions

This section details the conventions used to describe the MAC instruction set.

3.4.1 - Operands

Operand
opX
Specifies the immediate constant value of opX
(opX)
Specifies the contents of opX
(opX
)
Specifies the contents of bit n of opX
n
((opX))
Specifies the contents of opX (i.e. opX is used as pointer to the actual operand)
rnd
plus 00 0000 8000

3.4.2 - Operations

(opX)<-- (opY)
(opX) + (opY)
(opX) - (opY)
(opX) * (opY)
Diadic
operations
(opX) <--> (opY)
opX\opY
Max ((opX), (opY))
Min ((opX), (opY))
(opX) <<
(opX) >>
Monadic
Operations
(opX) >>
Abs (opX)

3.4.3 - Abbreviations

Abbreviation
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)

3.4.4 - Data addressing Modes

Addressing mode
"Rw
", or "Rw
" :
n
m
[...] :
CoReg :
ACC :
#data
:
x
126/172
h
a
General Purpose Registers (GPRs) where "n" and "m" are any value between 0 and 15.
Indirect word memory location
MAC-Unit Register (MSW, MAH, MAL, MAS, MRW, MCW)
MAC Accumulator consisting of (lowest byte of MSW)\MAH\MAL.
Immediate constant (the number of significant bits is represented by 'x').
Description
(opY)
is
MOVED into (opX)
(opX)
is
ADDED to (opY)
(opY)
is
SUBTRACTED from (opX)
(opX)
is
MULTIPLIED by (opY)
(opY)
is
COMPARED against (opX)
(opX)
is
CONCATANATED to (opY) (LSW)
MAXIMUM value between (opX) and (opY)
MINIMUM value between (opX) and (opY)
(opX)
is
Logically SHIFTED Left
(opX)
is
Logically SHIFTED Right
(opX)
is
Arithmetically SHIFTED Right
ABSOLUTE value of (opX)
Description
Description

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ST10 Series and is the answer not in the manual?

Questions and answers

Table of Contents