ARM Technical Support Knowledge Articles

64-BIT CALCULATIONS

Applies to: A166 Macro Assembler

Answer


Information in this article applies to:


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).

Article last edited on: 2007-07-13 12:58:52

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential