Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

CORE-E0002: Stack under flow error occurred from instruction

Status
Not open for further replies.

parthiv2eng

Member level 2
Joined
May 5, 2010
Messages
48
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
Houston
Activity points
1,572
HI...

I am trying to simulate below code but getting error message in MPSIM "CORE-E0002: Stack under flow error occurred from instruction at 0x000011"

Please guide me...
Code:
; Remote 
	list p=16F57
	#include <P16F57.inc>

	__config _WDT_OFF & _CP_OFF & _XT_OSC 

	ORG 0x000
	MOVLW 0x7
	ANDWF PORTA, F
	GOTO 0x3
	GOTO 0x4
	GOTO 0x5
	NOP
	MOVLW 0x8
	IORWF PORTA, F
	GOTO 0x9
	GOTO 0xa
	GOTO 0xb
	GOTO 0xc
	GOTO 0xd
	GOTO 0xe
	GOTO 0xf
	DECFSZ 0x16, F
        GOTO 0x00
	RETLW 0
       MOVF 0x12, W
       ADDWF PCL, F
	RETLW 0xff
	RETLW 0xff
        RETLW 0xff
        RETLW 0xff
        RETLW 0x1d
        RETLW 0x35
        RETLW 0xff
        RETLW 0xc
        RETLW 0x1
        RETLW 0x2
        RETLW 0x3
        RETLW 0x30
        RETLW 0xff
        RETLW 0xff
        RETLW 0xff
        RETLW 0x4
        RETLW 0x5
        RETLW 0x6
        RETLW 0x36
        RETLW 0xff
        RETLW 0xff
        RETLW 0xff
        RETLW 0x7
        RETLW 0x8
        RETLW 0x9
        RETLW 0xff
        RETLW 0xff
        RETLW 0xff
        RETLW 0x2d
        RETLW 0xff
        RETLW 0
        RETLW 0xff
        RETLW 0x14
        RETLW 0x15
        RETLW 0xff
   	RETLW 0xff
        RETLW 0x2b
        RETLW 0x29
        RETLW 0xb
        RETLW 0xff
        RETLW 0xff
        RETLW 0xff
        RETLW 0xff
        RETLW 0x2f
	NOP
	GOTO $
	end
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top