13.07.2015 Views

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>TASKING</strong> <strong>VX</strong>-<strong>toolset</strong> <strong>for</strong> <strong>ARM</strong> <strong>User</strong> <strong>Guide</strong>@LSH(expression)Returns the least significant half word (bits 0..15) of the result of the absolute expression. The result ofthe expression is calculated as a word (32 bits).@LSW(expression)Returns the least significant word (bits 0..31) of the result of the expression. The result of the expressionis calculated as a double-word (64 bits).Example:.DW @LSW(0x12345678).DW @MSW(0x123456); stores 0x5678; stores 0x0012@MSB(expression)Returns the most significant byte of the result of the expression.The result of the expression is calculatedas 16 bits.@MSH(expression)Returns the most significant half word (bits 16..31) of the result of the absolute expression. The result ofthe expression is calculated as a word (32 bits). @MSH(expression) is equivalent to((expression>>16) & 0xffff).@MSW(expression)Returns the most significant word of the result of the expression.The result of the expression is calculatedas a double-word (64 bits).@PRE_UAL()Returns 1 if the assembler runs in pre-UAL syntax mode by default, or 0 if the assembler runs in UALsyntax mode (default). This function reflects the setting of the assembler option --old-syntax.Example:.IF @PRE_UAL() ; true if you specified option --old-syntax... ; old code.ELSE... ; new code, UAL syntax.ENDIF@STRCAT(string1,string2)Concatenates string1 and string2 and returns them as a single string. You must enclose string1 andstring2 either with single quotes or with double quotes.Example:94

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!