CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 4 matches
CCS Forum Index
Author Message
  Topic: Accessing hi byte of int16 in assembly
embedded_tom

Replies: 6
Views: 6437

PostForum: General CCS C Discussion   Posted: Tue Oct 21, 2008 2:30 pm   Subject: Accessing hi byte of int16 in assembly
Yep, that did it.

Thanks.

tom
  Topic: Accessing hi byte of int16 in assembly
embedded_tom

Replies: 6
Views: 6437

PostForum: General CCS C Discussion   Posted: Tue Oct 21, 2008 7:34 am   Subject: Accessing hi byte of int16 in assembly
I did review #byte in the CCS manual. Here's what I used:
#byte Next_TimeH = Next_Time + 1;
Is #byte similar to "assign" in other compilers?

I just tried this & it worked:
movf ...
  Topic: Accessing hi byte of int16 in assembly
embedded_tom

Replies: 6
Views: 6437

PostForum: General CCS C Discussion   Posted: Tue Oct 21, 2008 7:26 am   Subject: Re: Accessing hi byte of int16 in assembly
Thanks, but got this error for the #byte statement: Error 43 Expecting a declaration.

tom
  Topic: Accessing hi byte of int16 in assembly
embedded_tom

Replies: 6
Views: 6437

PostForum: General CCS C Discussion   Posted: Mon Oct 20, 2008 8:36 am   Subject: Accessing hi byte of int16 in assembly
I read through the forum and found a way to do this by using the '&' prefix: bcf TMR1ON
movf Next_Time, W
addwf TMR1, F
btfsc C
incf TMR1H, F
movf &Next ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group