Trying to use the code shown in the following http://www.keil.com/support/docs/2045.htm Basically, shows you how to do In Application programming on a philips device. I have set my target device to a p89c662 which supports this, but when I call the code inside the debugger (uVision pretending to be the device) it gets to the CALL 0FFF0H ; call philips firmware line and chokes with the error: *** error 65: access violation at C:0xFF00 : no 'execute/read' permission I'd like to test it before I go anywhere near the device itself, am I missing something or can the C51 enironment not replicate that particular function?
I created a seperate file (iap.asm) for the assembly code, do I somehow have to add the include file (reg66x.h) yes, unless as below or do I have to put the code in my .c file? I always generate my own include files to enable global searches. If you, as normal, work both on the SFR and on the bit it becomes a nightmare to find "that little glitch". Thus EA in my lingo is SB_IE_EA for the bit and SM_IE_EA for sfr access. That way a global search on IE will give every place that sfr is accessed and a global search on EA will give all places that bit is accessed whether as a bit (re)set or as part of a SFR write. Erik