Keil Logo

EVALuate

Syntax Description
EVALuate expression Displays the result of the expression in decimal, octal, HEX, and ASCII.

The EVALuate command calculates the specified expression and outputs the result in decimal, octal, HEX and, in ASCII format. Expressions entered without the EVALuate command display only in the current number base selected by the RADIX system variable. The expression may contain several subexpressions separated by commas.

Example
>eval -1
16777215T 77777777Q 0xFFFFFF '....'

>eval intcycle
0T 0Q 0x0 '....'

>intcycle = 0x12
>eval intcycle
18T 22Q 0x12 '....'

>eval 'a'+'b'+'c'
294T 446Q 0x126 '...&'

>eval main
16712175T 77600757Q 0xFF01EF '....'

>eval save_record[1].time
81931T 240013Q 0x1400B '..@.'

>eval save_record[1].time.sec
0T 0Q 0x0 '....'

>save_record[1].time.sec = 1
>eval save_record[1].time.sec
1T 1Q 0x1 '....'

>eval save_record[1].time.sec = 0
0T 0Q 0x0 '....'
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.