Jump to content

Recommended Posts

Anybody know the ASM inline keywork for UPPER? I am using BoostC V7.04 and am attempting to transfer a byte from CODE memory to DATA memory using the TBLRD* instruction inline. HIGH(_Var) and LOW(_Var) compile correctly but UPPER(_Var) produces compiler errors, " error: unknown assembly identifier 'upper'".

 

Link to post
Share on other sites
  • 3 weeks later...

Anybody know the ASM inline keywork for UPPER? I am using BoostC V7.04 and am attempting to transfer a byte from CODE memory to DATA memory using the TBLRD* instruction inline. HIGH(_Var) and LOW(_Var) compile correctly but UPPER(_Var) produces compiler errors, " error: unknown assembly identifier 'upper'".

 

 

 

I would like to know how to do this too. It seems assembler expression evaluation continues to be a weak point. Often the simplest operations from an assembly language program can't be performed;

       asm movlw  _row%256
003C  0E01       MOVLW LOW(gbl_row+D'0')
       asm movwf  _tblptrl
003E  6EF6       MOVWF gbl_tblptrl
       asm movlw  _row/256
0040  0E01       MOVLW LOW(gbl_row+D'0')        <- huh?
       asm movwf  _tblptrh
0042  6EF7       MOVWF gbl_tblptrh
       asm movlw  _row/65536
0044  0E01       MOVLW LOW(gbl_row+D'0')        <- huh?
       asm movwf  _tblptru
0046  6EF8       MOVWF gbl_tblptru
Edited by Mike McLaren
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...