| ||||||||
Technical Support Support Resources Product Information | MON51: DOESN'T SAVE THE DUAL DATA POINTERSInformation in this article applies to:
QUESTIONI'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 ANSWERThere 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 | |||||||
| ||||||||