Flag Addressing Field {Flagadrs} For Certain Flag Instructions (Class 8A) - Texas Instruments MSP50C614 User Manual

Mixed-signal processor
Table of Contents

Advertisement

Instruction Syntax and Addressing Modes
For any particular addressing mode, replace the { adrs } with the syntax shown
in Table 4–4. To encode the instruction, replace the am , R x and pm bits with
the bits required by the addressing mode (Table 4–4). For example, the
instruction
combinations are shown):
MOV A0, *0xab12
MOV A1, *R6+0x2f, ++A ; n = 1, { adrs } = *R6+0x2f, offset7 = 0x2f,
MOV A2~, *R0+R5, – –A ; n = 2, { adrs } = *R0+R5, x = 0, [ next A ] = – –A
MOV A3, *R1+0x12ef
MOV A0, *R2
MOV A1, *R3++, – –A
MOV A2~, *R4– –
MOV A3, *R7++R5, ++A ; n = 3, { adrs } = *R7++R5, x = 7, [ next A ] = ++A
Flag instructions apply to certain classes of instructions (Class 8a). They ad-
dress only the flag bit by either a 6 bit global address or a 6 bit relative address
from the indirect register R6. If bit 0 of these instructions is 0, then bits 1 to 6
of the opcode are taken as the bit address starting from data memory location
0000h. If bit 0 is 1, then bits 1 to 6 are used as an offset from the page register
R6 to compute the relative address. Bits 0 to 6 of flag instructions are written
as { flagadrs } throughout this manual. When this symbol appears, it should be
replaced by the syntax and bits shown in Table 4–7
For example, AND TF n , { flagadrs } can be written as follows (not all possible
combinations are shown):
AND TF1, *0x21
AND TF2, *R6+0x21 ; relative flag addressing, flag address is R6+0x21
Table 4–7. Flag Addressing Field {flagadrs} for Certain Flag Instructions (Class 8a)
Flag
Flag
Clocks
Words
Addressing
clk
clk
Modes
Modes
Global
1
Relative
1
† n R is RPT argument
4-12
MOV A n [~], { adrs } [, next A ]
; n = 0, { adrs } = dma16 = 0xab12
; n = 3, { adrs } = *R1+0x12ef, x = 1,
offset16 = 0x12ef
; n = 0, { adrs } = *R2, x = 2
; n = 1, { adrs } = *R3++, x = 3, [ next A ] = ––A
; n = 2, { adrs } = *R4––, x = 4
; global flag addressing, flag address is 0x21 absolute
absolute
{ flagadrs }
Repeat
Repeat
Syntax
Operation,
w
w
clk
clk
1
n
+2
* dma6
R
1
n
+2
*R6+ offset6
R
indicates all of the following (only partial
[ next A ] = ++A
flag addressing mode encoding, flagadrs
6
5
4
flag address bits
dma6
offset6
3
2
1
0
g/r
0
1

Advertisement

Table of Contents
loading

Table of Contents