Download R32C/100 E30A Emulator Debugger V.1.02 User`s Manual

Transcript
R32C/100 E30A Emulator Debugger
Chapter 9 Writing Script Files
9.2 Writing Expressions
This debugger allows you to use expressions for specifying addresses, data, and number of passes, etc. The
following shows example commands using expressions.
>DumpByte TABLE1
>DumpByte TABLE1+20
You can use the following elements in expressions:
•
Constants
•
Symbols and labels
•
Macro variables
•
Register variables
•
Memory variables
•
Line Nos.
•
Character constants
•
Operators
9.2.1 Constants
You can use binary, octal, decimal, or hexadecimals. The prefix or suffix symbol attached to the numerical value
indicates which radix is used.
The debugger for M32C and M16C/R8C and 740
Prefix
Suffix
Examples
Hexadecimal
Decimal
Octal
Binary *
0x,0X
h,H
0xAB24
AB24h
@
None
@1234
None
o,O
1234o
%
b,B
%10010
10010b
*You can only specify % when the predetermined radix is hexadecimal.
If you are inputting a radix that matches the predetermined radix, you can omit the symbol that indicates the radix
(excluding binary).
•
Use the RADIX command to set the predetermined value of a radix. However, in the cases shown
below, the radix is fixed regardless of what you specify in a RADIX command.
Type
Address
Line No.
No. of executions
No. of passes
REJ10J2120-0100 Rev. 1.00
Dec. 01, 2010
Radix
Hex
Dec
Page 165 of 193