Freescale Semiconductor Motorola MMDS0508 Operation Manual page 125

Motorola modular development system
Table of Contents

Advertisement

EVAL
NOTE:
MMDS0508OM/D
MOTOROLA
Freescale Semiconductor, Inc.
Evaluate Argument
The EVAL command performs mathematical operations on two
numerical arguments. It displays the value of the result in hexadecimal,
decimal, octal, and binary formats denoted by the suffixes H, T, O, and
Q. (Note that octal numbers are not valid as operand values. Operand
values are 15 bits or less.) If the value is equivalent to an ASCII
character, the ASCII character is also displayed. This command
supports addition (+), subtraction (–), multiplication (*) and division (/).
Syntax:
EVAL < n1 > < op > < n2 >
Where:
< n1 >
A number to be evaluated or the first operand of a
simple expression to be evaluated
< op >
The arithmetic operator (+, –, *, or /) of a simple
expression to be evaluated
<n2 >
The second operand of a simple expression to be
evaluated
Example: Evaluate the sum of hexadecimal numbers 45 and 32 then
display the result in four bases and as an ASCII character:
>EVAL 45 + 32
0077H 119T 000157O 0000000001110111Q "w"
The host will not inform of an operation that resulted in an overflow. Also,
the result of a division operation will be the quotient.
Command-Line Commands
For More Information On This Product,
Go to: www.freescale.com
Command-Line Commands
Command Explanations
EVAL
125

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mmds0508

Table of Contents