MSP430 002dMacros



MSP430-Macros - Using as














Next: MSP430-Chars,
Up: MSP430 Syntax



9.24.2.1 Macros

The macro syntax used on the MSP 430 is like that described in the MSP
430 Family Assembler Specification. Normal as
macros should still work.

Additional built-in macros are:


llo(exp)Extracts least significant word from 32-bit expression 'exp'.

lhi(exp)Extracts most significant word from 32-bit expression 'exp'.

hlo(exp)Extracts 3rd word from 64-bit expression 'exp'.

hhi(exp)Extracts 4rd word from 64-bit expression 'exp'.



They normally being used as an immediate source operand.
mov #llo(1), r10 ; == mov #1, r10
mov #lhi(1), r10 ; == mov #0, r10




Wyszukiwarka

Podobne podstrony:
MSP430 Directives
MSP430 Opcodes
MSP4302dDependent
MSP430x13x, MSP430F14x, MSP430F15x, MSP430F16x Code Examples TI COM ?T140?molist C
MSP4302dChars
msp430f110
msp430f1101a
MSP430 Syntax
msp430g2553
msp430f123
MSP4302dExt
LCD MSP430
MSP430 Profiling Capability
MSP430
msp430f133
MSP4302dRegs
MSP430 wprzykładach cz3
msp430f1122
MSP430 Floating Point

więcej podobnych podstron