Technical Support

MON51: DOESN'T SAVE THE DUAL DATA POINTERS


Information in this article applies to:

  • C51 Version 5.10 and earlier

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

Last Reviewed: Wednesday, August 03, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure