Jump to content

Right Bitshift Broken


Recommended Posts

here's the assembly generated:

 

//if(p1speed & 0x30)

MOVLW 0x30

BSF STATUS, RP0

BCF STATUS, RP1

ANDWF serial_set_00017_arg_p1speed, W

BTFSC STATUS,Z

GOTO label4026532446

BCF STATUS, RP0

BSF gbl_g_status+D'1',1

label4026532446

 

//if(p1speed >> 4)

BSF STATUS, RP0

BCF STATUS, RP1

MOVF serial_set_00017_arg_p1speed, F

BTFSC STATUS,Z

GOTO label4026532446

BCF STATUS, RP0

BSF gbl_g_status+D'1',1

label4026532446

 

 

you can see that it's not even doing the bitshift :(

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...
×
×
  • Create New...