|
|||||||||||||||||||||||||||||||||||||||||
|
Technical Support On-Line Manuals A251 User's Guide |
A251 User's GuideNumbersNumbers may be specified in hexadecimal (base 16), decimal (base 10), octal (base 8), and binary (base 2). The default representation is decimal. A decimal, octal, or binary number's first character must always be a digit (0-9). Hexadecimal numbers whose first character is not a digit (0-9) must be prefixed with a zero ('0'). The following table illustrates various types of numbers:
Note
Colon Notation for NumbersThe A251 assembler supports the notation page:number for specifying absolute addresses. Numbers specified with this notation receive the memory type EDATA when page is 0 or ECODE for all other pages. In this way, you can use such numbers for referencing any memory location. For example:
ABSVAL1 EQU 0:20H ; symbol to address location 20H
ABSVAL2 EQU 0:80H ; symbol to address location 80H in EDATA space
PORT0 EQU S:80H ; symbol to SFR space 80H
ENTRY EQU 10:2000H ; entry point at location 102000H
MOV WR0,ABSVAL1
MOV R1,ABSVAL2
MOV PORT0,R1
EJMP ENTRY
MOV WR0,0:20H ; access to ABSVAL1
MOV R1,0:80H ; access to ABSVAL2
MOV S:80H,R1
EJMP 10:2000H
The colon notation is accepted in several A251 controls and is converted as described.
Note
| ||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||