HP 64746 User Manual page 170

Emulation/analysis
Table of Contents

Advertisement

Chapter 5: Plugging into a Target System
Configuring the Emulator for In-Circuit Operation
Here is an example where a "trace on_halt" command was used to find the cause of
a double-bus fault:
XDEF
ORG
DC.L
DC.L
ORG
MOVE.W
MOVEA.L
MOVE.W
MOVE.W
MOVE.W
JSR
MOVE.W
MOVE.W
NOP
CS_INIT
NOP
...
The memory map used in this configuration includes:
000000H thru 1FFFFH emulation ram
400000H thru 43FFFFH target ram
The commands issued were:
trace on_halt <RETURN>
run from reset <RETURN>
after which the status line will show "M68302--Halted". At this point, you must
"halt" and display the trace using the commands:
stop_trace <RETURN>
display_trace <RETURN>
170
CS_INIT,GIMR_INIT
$0
$440000
; Stack begins at $43FFFC
$400
; Reset initialization code
$400
#$0800,$F2
; Set up the BAR for $800XXX
#$800000,A0
#$3F02,($832,A0)
; OR0 - 512K, read-only, 1 wait-state
#$0001,($830,A0)
; BR0 - base address 0
#$0001,-(A7)
; push parameter
CHKSUM
; jump to checksum subroutine
#$1F80,($836,A0)
; OR1 - 256K, read-write, 0 wait-state
#$0801,($834,A0)
; BR1 - base address $400000

Advertisement

Table of Contents
loading

This manual is also suitable for:

68302

Table of Contents