![background image](http://html1.mh-extra.com/html/rabbit/2000/2000_designers-handbook_3112103024.webp)
22
Rabbit
2000
Microprocessor
Dynamic
C defines macros that include information about compiling to RAM or flash and
identifying
memory device types, memory sizes, and board type. The origin setup shown
above
differs from that included in the standard BIOS included with Dynamic C as the
standard
BIOS uses additional macros values for dealing with a wider range of boards and
memory
device types.
5.5.1
Origin Directives in Program Code
In
order to either place programs in different places in root memory, or in order to compile
a
boot strapping program such as a pilot BIOS or coldloader, origin statements may be
used
in the user’s program code.
For
example, the first line of a pilot BIOS program,
pilot.c
,
would be
#rcodorg rootcode 0x0 0x0 0x6000 apply
A
program with such an origin directive could only be compiled to a BIN file, because
compiling
it to the target would overwrite the running BIOS.
xmemcode
stack
rootdata
rootcode
Logical
Address Space
Physical
Address Space
watcode/watdata
0000
6000
C5FF
CDFF
FFFF
E000
0x00000
0x06000
0x20000
0x97000
0x9DDFF
0xFFFFF
rootcode
xmemcode
rootdata
watcode
watdata
Summary of Contents for 2000
Page 1: ...Rabbit 2000 Microprocessor Designers Handbook Revision C...
Page 4: ...Rabbit 2000 Microprocessor...
Page 6: ...2 Rabbit 2000 Microprocesssor...
Page 12: ...8 Rabbit 2000 Microprocessor...
Page 34: ...344 Dynamic C User s Manual...
Page 36: ...34 Rabbit 2000 Microprocessor...
Page 44: ...42 Rabbit 2000 Microprocessor...