Jump to content
Sign in to follow this  
Mac

Assembler Operand Expression Evaluation?

Recommended Posts

Are there any plans for improving assembler expression evaluation? The following (with arrows) don't work.

 

Kind regards, Mike

 

void mibam_isr()
{ asm
 { movf	_offset,W		  //
addwf   _pcl,F			 //
slot00:
movf	_preset+0,W		//
xorwf   _latb,F			//
movlw   slot01-slot00	  //  <---
movwf   _offset			//
retfie  1				  //
slot01:

	addlw   -10				// <---

Edited by Mac

Share this post


Link to post
Share on other sites
void mibam_isr()
{ asm
 { movf	_offset,W		  //
addwf   _pcl,F			 //
slot00:
movf	_preset+0,W		//
xorwf   _latb,F			//
movlw   slot01-slot00	  //  <---
movwf   _offset			//
retfie  1				  //
slot01:

 

This probably won't happen. This expression requires compiler to know values of labels at compile time but they are not knows till link time.

 

	addlw   -10				// <---

 

This one is easy to fix. Will add to our todo list.

 

Regards,

Pavel

Share this post


Link to post
Share on other sites
	addlw   -10				// <---

 

This one is easy to fix. Will add to our todo list.

 

Regards,

Pavel

 

Thank you Pavel. Have a great day.

Share this post


Link to post
Share on other sites

Your content will need to be approved by a moderator

Guest
You are commenting as a guest. If you have an account, please sign in.
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  

×