Maker Pro
Maker Pro

12C509 building with RETLW 0

P

Paul Smart

Jan 1, 1970
0
Hi all,

I am using MPLab V7.00 setup for the Microchip 12C509. Whenever I build
anything the program memory shows two RETLW 0 commands at addresses 0000 and
0001. These stop the simulator running and I believe the chip that I have
programmed with the following continuous error:

CORE-E0002: Stack under flow error occurred from instruction at 0x000000


I have cut my ASM down to this and it still happens:

list p=12c509
#include <p12c509.inc>
CODE
nop
end

Any and all help will be appreciated.

Thanks

Paul
 
P

Paul Smart

Jan 1, 1970
0
Anthony,

Thanks for that the RETLWs have moved to imediately after my last
instruction.

Cheers

Paul
 
P

Paul Smart

Jan 1, 1970
0
The rest of the memory is set to XORLW its just that there are now two
RETLWs at the end of my code. But as everything is in a loop this is not a
problem.
 
Top