ARM Technical Support Knowledge Articles

DOESN'T SAVE THE DUAL DATA POINTERS

Applies to: MON51 Target Monitor

Answer


Information in this article applies to:


QUESTION

I've ported the Keil 8051 monitor to my target, but I don't think the dual data pointers are getting properly saved in the serial interrupt the monitor uses. The code included there is listed below:

PUSH    A
PUSH    DPL
PUSH    DPH
PUSH    PSW
MOV     PSW,#0x00
MOV     DPTR,#0x0C07

ANSWER

There was a problem in the older MON51DP2.LIB. It has been corrected in C51 V5.20 and later. The new 8051 monitor does save the dual data pointer registers and generates the following code for the serial interrupt...

PUSH    A
PUSH    DPS
MOV     DPS, #00
PUSH    DPL
PUSH    DPH
PUSH PSW

SEE ALSO

Article last edited on: 2005-08-03 11:43:14

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential