Individual Instruction Descriptions
4-100
MOV AP1, 3
; Point to loc corresponding to
; extended word in acc
MOVS A0, *R0
; R0 POINTS TO VALUE IN MEMORY
EXTSGN A1
; not string version as above
Alternatively, the following code can do the same thing but requires more code:
MOV AP0, 0
; POINT TO LSW OF ACCUM STRING
MOV AP1, 3
; Point to loc corresponding to
; extended word in acc
ZAC A1
; INITIALIZE EXTENDED SIGN VALUE as positive
MOVS A0, *R0 ; R0 POINTS TO VALUE IN MEMORY
JNS POSITIVE ; branch around negative extension,
; accepting default pos extension
NOT A1
; INVERT EXTENDED SIGN WORD FOR NEG CASE POSITIVE
......
See Also
EXTSGN
Example 4.14.17.1
EXTSGNS A0~
Sign extend accumulator string A0~. See the previous italic text on the bug in this instruction at the
present time.
Содержание MSP50C6xx
Страница 1: ...MSP50C6xx Mixed Signal Processor User s Guide Mixed Signal Products SPSU014A Printed on Recycled Paper...
Страница 6: ...vi...
Страница 14: ...xiv...
Страница 24: ...1 10...
Страница 296: ...Instruction Set Summay 4 210 Assembly Language Instructions...
Страница 332: ...Implementation Details 5 36 R7 Return Addr Return Addr Param 2 Param 2 Param 1 Param 1 R5 Stack data Function call...
Страница 366: ...6 12...