![background image](http://html1.mh-extra.com/html/texas-instruments/tms320c28x/tms320c28x_reference-manual_1097071351.webp)
MOVB loc16,#8bit,COND
6-194
MOVB loc16,#8bit,COND
Conditionally Save 8-bit Constant
SYNTAX OPTIONS
OPCODE
OBJMODE
RPT
CYC
MOVB loc16,#8bit,COND
0101 0110 1011 COND
CCCC CCCC LLLL LLLL
1
−
1
Operands
loc16
Addressing mode (see Chapter 5)
#8bit
8-bit immediate constant value
COND
Conditional codes:
COND
Syntax
Description
Flags Tested
0000
NEQ
Not Equal To
Z = 0
0001
EQ
Equal To
Z = 1
0010
GT
Greater Then
Z = 0 AND N = 0
0011
GEQ
Greater Then Or Equal To
N = 0
0100
LT
Less Then
N = 1
0101
LEQ
Less Then Or Equal To
Z = 1 OR N = 1
0110
HI
Higher
C = 1 AND Z = 0
0111
HIS, C
Higher Or Same, Carry Set
C = 1
1000
LO, NC
Lower, Carry Clear
C = 0
1001
LOS
Lower Or Same
C = 0 OR Z = 1
1010
NOV
No Overflow
V = 0
1011
OV
Overflow
V = 1
1100
NTC
Test Bit Not Set
TC = 0
1101
TC
Test Bit Set
TC = 1
1110
NBIO
BIO Input Equal To Zero
BIO = 0
1111
UNC
Unconditional
−
Description
If the specified condition being tested is true, then the 8-bit zero extended
constant is stored in the location pointed to by the “loc16” addressing mode:
if(COND = true) [loc16] = 0:8bit;
Note:
Addressing modes are not conditionally executed; therefore, if an addressing mode
performs a pre- or post-modification, it will execute regardless of whether the condition
is true or not.
Flags and
Modes
N
If (COND = true AND loc16 = @AX), then after the move AX is tested for a
negative condition. The negative flag bit is set if bit 15 of AX is 1, otherwise it
is cleared.
Z
If (COND = true AND loc16 = @AX), then after the move, AX is tested for a
zero condition. The zero flag bit is set if AX = 0, otherwise it is cleared.
V
If the V flag is tested by the condition, then V is cleared.
Summary of Contents for TMS320C28x
Page 30: ...1 12...
Page 80: ...This page intentionally left blank 2 50 This page intentionally left blank...
Page 269: ...IN loc16 PA 6 112 MOV AL 0 AL 0 UOUT IORegC AL IOspace IORegC AL 10...
Page 308: ...MAXCUL P loc32 6 151 Saturate MOVL Var64 2 ACC Store result into Var64 MOVL Var64 P...
Page 509: ...SUBL ACC P PM 6 352 SUBL ACC P PM ACC S B 11 M X 4 MOVH Y ACC 5 Store Q15 result into Y...
Page 585: ...This page intentionally left blank 7 32 This page intentionally left blank...