Keil™, An ARM® Company

Technical Support

A166: 64-BIT CALCULATIONS


Information in this article applies to:

  • C166 Version 4.01 and Later

QUESTION

Does the A166 Assembler perform calculations using 32-bit math or 64-bit math?

ANSWER

In A166 V4.01, expression evaluation was enhanced to use 64-bit arithmetic. Previous versions of the A166 Assembler used 16-bit math when calculating expressions. In the following equation:

Value EQU (8000h + 9000h) / 2

A166 Version 3 calculates a value of 800h, since the result of the addition is 1000h (a 16-bit value).

A166 Version 4.01 calculates a value of 8800h, since the result of the addition is 110000h (a 64-bit value).

Last Reviewed: Friday, July 13, 2007


Did this article provide the answer you needed?
 
Yes
No
Not Sure