HP 64746 User Manual page 122

Emulation/analysis
Table of Contents

Advertisement

Chapter 4: Configuring the Emulator
Mapping Memory
Examples
Consider the following section summary from the linker load map output listing.
SECTION SUMMARY
---------------
SECTION
ATTRIBUTE
ABSOLUTE DATA
0
NORMAL
env
NORMAL CODE
prog
NORMAL CODE
const
NORMAL ROM
lib
NORMAL CODE
envdata
NORMAL DATA
libc
NORMAL CODE
libm
mon
NORMAL CODE
data
NORMAL DATA
idata
udata
markers
libdata
NORMAL DATA
libcdata
NORMAL DATA
mondata
NORMAL DATA
stack
NORMAL DATA
heap
NORMAL DATA
Notice the ABSOLUTE DATA section occupies 0 through 30H. These are vector
table locations, and because the BAR and SCR registers (located at 0F0H and
0F4H) are also in the vector table, this area should be mapped as emulation RAM.
Notice the NORMAL CODE and ROM sections occupy locations 2000H through
4521H. Because the contents of these sections will eventually reside in target
system ROM, this area should be characterized as ROM when mapped. This will
prevent these locations from being written over accidentally. If breaks on writes to
ROM are enabled, instructions that attempt to write to these locations will cause
emulator execution to break into the monitor.
Also, notice that other CODE and DATA sections occupy locations 5000H through
0FFFFH. Since these sections are written to, they should be characterized as RAM
when mapped.
Finally, the internal memory space must be mapped as target RAM. Assuming the
reset value of the BAR register is used, the range 0FFF000H through 0FFFFFFH
should be mapped as target RAM.
122
START
END
00000000
0000002F
00000030
00000030
00002000
00002BC6
00002BC8
000036D9
000036DA
0000371F
00003720
00004521
00005000
00005157
00005158
0000744F
00007450
00007450
00007450
00007599
0000759A
00007B65
00007B66
00007B66
00007B66
00007B66
00007B66
00007B66
00007B68
00007B6B
00007B6C
00008597
00008598
000085BB
00009000
0000CFFF
0000D000
0000FFFD
LENGTH
ALIGN
00000030
0 (BYTE)
00000000
2 (WORD)
00000BC7
2 (WORD)
00000B12
2 (WORD)
00000046
2 (WORD)
00000E02
2 (WORD)
00000158
4 (LONG)
000022F8
2 (WORD)
00000000
0 (BYTE)
0000014A
2 (WORD)
000005CC
2 (WORD)
00000000
0 (BYTE)
00000000
0 (BYTE)
00000000
0 (BYTE)
00000004
4 (LONG)
00000A2C
2 (WORD)
00000024
2 (WORD)
00004000
4 (LONG)
00002FFE
4 (LONG)

Advertisement

Table of Contents
loading

This manual is also suitable for:

68302

Table of Contents