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 7 matches
CCS Forum Index
Author Message
  Topic: simple conversion c->asm
Andrew-miksys

Replies: 2
Views: 4558

PostForum: General CCS C Discussion   Posted: Thu Jan 10, 2008 5:17 pm   Subject: simple conversion c->asm
make16() doing exactly what I need! Thanks!

BDW here is 'compiler' optimalization Shocked


.................... counter = 256*TMR1H + TMR1L;
; address of TMR1H is 0x0F
; addre ...
  Topic: simple conversion c->asm
Andrew-miksys

Replies: 2
Views: 4558

PostForum: General CCS C Discussion   Posted: Thu Jan 10, 2008 11:25 am   Subject: simple conversion c->asm
I'm trying do convert:
counter = 256*TMR1H + TMR1L;
to

#asm
movf TMR1H,W
movwf high counter
movf TMR1L,W
movwf low counter
#endasm

but compiler don't know operator 'low' and 'high'.
...
  Topic: 24 bit floating point
Andrew-miksys

Replies: 3
Views: 4488

PostForum: General CCS C Discussion   Posted: Thu Oct 11, 2007 1:20 pm   Subject: 24 bit floating point
I thing will be nice to have a choice 24 or 32bit fl.p aritmetic during compilation. But now... I have to do it Sad
Have anybody seen source of 24bit aritmetic function?
  Topic: 24 bit floating point
Andrew-miksys

Replies: 3
Views: 4488

PostForum: General CCS C Discussion   Posted: Thu Oct 11, 2007 8:14 am   Subject: 24 bit floating point
I am moving some ASM program into C and I need to compress generated code.
Original program use 24 bit floating point aritmetic function and that was absolutely enough.
Is possible to change the pre ...
  Topic: Calling with a reference of union
Andrew-miksys

Replies: 4
Views: 4972

PostForum: General CCS C Discussion   Posted: Wed Oct 03, 2007 9:03 am   Subject: Calling with a reference of union
Thanks!
I tested it berofe but forgot of -> operator Embarassed
It works of course.
  Topic: Calling with a reference of union
Andrew-miksys

Replies: 4
Views: 4972

PostForum: General CCS C Discussion   Posted: Wed Oct 03, 2007 6:32 am   Subject: Calling with a reference of union
Thanks,
I'm not sure but this way will be created local copy of union wich be exist only inside function body. So any operation has no effect after end of function. Am I right?
  Topic: Calling with a reference of union
Andrew-miksys

Replies: 4
Views: 4972

PostForum: General CCS C Discussion   Posted: Wed Oct 03, 2007 3:08 am   Subject: Calling with a reference of union
Hi,
I'm trying to create buffer writing function.

union LCD_BUF
{
struct
{
int1 lobat;
int1 sign;
int other:6;
int1 dot1;
int d ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group