Keil Logo

EVALuate

The EVALuate command calculates the specified expression, expr, and outputs the result in HEX and decimal format.

Syntax Description
EVAL expr Evaluates the expression and outputs the result.
  • expr specifies the expression to be evaluated. For 80x51 microcontrollers, expr can contain a Memory Type Specifier. Expressions entered without the EVALuate command, show the result in the current number base defined by the RADIX system variable.
    Examples
    >eval -1
    0xFFFFFFFF -1
    
    >eval 'a'+'b'+'c'
    0x00000126 294
    
    >eval main
    0x080010EC 134222060
    
    >eval \\Measure\Measure.c\save_record[1]
    0x20000054 0x20000054
    
    >eval save_record[1].time.sec
    0x00 0
    
    >save_record[1].time.sec = 1
    >eval save_record[1].time.sec
    0x01 0
    
    >eval X:0x0
    0x01000000 16777216             /* Result shows the memory address to which XDATA is mapped */
    
  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.