Jump to content
Sign in to follow this  
tobik

Boostc 1.3: Interrupt Vector Start With Bcf Status

Recommended Posts

Bug description:

Interrupt vector start with manipulation of STATUS register.

 

Steps to reproduce:

 

Compile this source

void interrupt ()
{
}

void main ()
{ 
}

 

Generated interrupt vector

	ORG 0x00000004
interrupt; function begin
; {

BCF STATUS,RP0
BCF STATUS,RP1
MOVWF Int1Context
SWAPF Int1Context
SWAPF STATUS, W
MOVWF Int1Context+D'1'
SWAPF FSR, W
MOVWF Int1Context+D'2'
SWAPF PCLATH, W
MOVWF Int1Context+D'3'

SWAPF Int1Context+D'3', W
MOVWF PCLATH
SWAPF Int1Context+D'2', W
MOVWF FSR
SWAPF Int1Context+D'1', W
MOVWF STATUS
SWAPF Int1Context, W
RETFIE

 

Expected behaviour:

Interrupt vector should start with saving STATUS register.

 

Is the problem 100% reproduceable:

every time

 

IDE version: 5.6.1

Compiler: BoostC

Compiler version: 1.3 Alpha

 

OS: XP

 

Comments:

 

Regards,

Tobias

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...