Home |
RTTarget-32 Programming Manual Running Win32 Programs without Win32 Specifying Numeric Values Running a Program on the Target Compiling and Linking with On Time RTOS-32 |
Specifying Numeric ValuesNumeric parameters are assumed to be decimal by default. The following prefixes to numeric parameters can change the base of a number:
The following suffixes are supported:
For example, the following numbers are all identical: 16M 0x1000p 040000k 16777216 Embedded underscore characters in numeric values are ignored. For example, these values are identical: 3E98A4Ch 0011_1110_1001_1000_1010_0100_1100b. Numeric parameters may contain simple arithmetic expressions using operators: + - * / % & | ^ For example, the following directives are legal: Region BootROM 64M-64k 64k-16 ROM Region Reset 64M-16 16 ROM Virtual VMem 1G+1M+4k HexFile Hex 4G-64k 64k The rules for numeric expressions are:
Region names with an attribute can be used in place of a numeric value. Attributes .Start (address of start of region), .Size (size of region), and .End (address after the region) are supported. Example:Region EPROM 4G-64k 64k ROM HexFile Program EPROM.Start EPROM.Size The second line would evaluate to: HexFile Program FFFF0000h 10000h Example:Region NullPage 0 4k RAM Region MoreLowMem 640k-128k 128k RAM Region LowMem NullPage.End MoreLowMem.Start-NullPage.End RAM Region Reset 4G-16 16 ROM Region Boot 4G-64k 64k-Reset.Size ROM Region EPROM Boot.Start-64k 64k ROM ... HexFile Program EPROM.Start EPROM.Size+Boot.Size+Reset.Size which evaluates to: Region NullPage 00000000h 00001000h RAM Region MoreLowMem 00080000h 00020000h RAM Region LowMem 00001000h 0007F000h RAM Region Reset FFFFFFF0h 00000010h ROM Region Boot FFFF0000h 0000FFF0h ROM Region EPROM FFFE0000h 00010000h ROM ... HexFile Program FFFE0000h 00020000h
|