Author |
Message |
Topic: simple conversion c->asm |
Andrew-miksys
Replies: 2
Views: 4558
|
Forum: 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
.................... counter = 256*TMR1H + TMR1L;
; address of TMR1H is 0x0F
; addre ... |
Topic: simple conversion c->asm |
Andrew-miksys
Replies: 2
Views: 4558
|
Forum: 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
|
Forum: 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
Have anybody seen source of 24bit aritmetic function? |
Topic: 24 bit floating point |
Andrew-miksys
Replies: 3
Views: 4488
|
Forum: 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
|
Forum: 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
It works of course. |
Topic: Calling with a reference of union |
Andrew-miksys
Replies: 4
Views: 4972
|
Forum: 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
|
Forum: 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 ... |
|