Texas Instruments MSP50C6xx Calculator User Manual


 
Individual Instruction Descriptions
4-160
4.14.64 SFLAG Set Memory Flag
Syntax
[label] name dest Clock, clk Word, w With RPT, clk Class
SFLAG {flagadrs} 1 1 N/R 8a
Execution memory flag bit at {flagadrs} data memory location 1
PC PC + 1
Flags Affected None
Opcode
Instructions 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
SFLAG {flagadrs} 1 0 0 1 1 1 0 1 0 1 flagadrs
Description Set flag at addressed memory location. {flagadrs} includes two groups of
memory flag adrresses: global flags, which are the first 64 words in RAM; and
relative flags, which are 64 locations relative to the page register (R6). Flag
address {flagadrs} only accesses the 17
th
bit.
See Also RFLAG, STAG, RTAG
Example 4.14.64.1 SFLAG *R6+0x12
Sets the flag bit of the RAM word addressed by R6 plus 0x0002. Note that R6 contains a byte address
and 0x0002 is interpreted as a word offset.