Word Reads From Even And Odd Addresses - Intel l2ICE User Manual

Integrated instrumentation and in-circuit emulation system
Table of Contents

Advertisement

T h e fo llo w in g list su m m a r iz e s h o w to h a n d le b r e a k s o n b y te w r ite s to e v e n an d o d d a d d r e s s e s .
Assume that byte 12 is written
to the even address FCOO.
FCOO
FC01
FC02
FC03
One memory write occurs. The
data bus contains AB12.
To break when the byte 12 is read:
* DEFINE SYSREG evenbyte =
* * WRITE AT 0FC00 IS 0XX12

Word Reads From Even and Odd Addresses

Assume that you want to break when the user program reads a particular word from memory
and that the word AB12 is stored at an even address. The word AB12 appears once on the data
lines. Assume that the even address is FCOO and that memory looks as follows:
FCOO 12
FC01
FC02
FC03
The following example fills HS memory with NOPs.
*BASE
HEX
*MAP 32K LENGTH 32K HS
*BYTE 32K LENGTH 32K-90H
*BYTE 0FC00 «12,0AB,34,56
*BYTE 0FCO0 LENGTH 4
□0FC00H
The following example uses the single-line assembler to put the MOV instruction in memory
offset 33K. The MOV instruction reads the word at FCOO into AX.
*SASM 33K= MOV AX,WORD 0FCO0'
OOflMOOH
3-48
12
90
90
90
AB
34
56
1E AB 34 5L
fiBOLDOFC
Assume that byte 12 is written
to the odd address FC01.
FCOO
90
FC01
12
FC02
90
FC03
90
One memory access occurs. The
data bus contains 12AB.
To break when the byte AB is read:
* DEFINE SYSREG oddbyte «
* * WRITE AT 0FC01 IS 12XX
Introduction to Using the PICE™ System
'--4V'

Advertisement

Table of Contents
loading

Table of Contents