C/asm kerdes

VF vf at elte.hu
Fri Feb 6 22:57:02 CET 2004


Thus spake Andras Tantos <andras_tantos at yahoo.com>:

> Hulye vagyok, persze, hogy meg lehet csinalni C-ben:
> 
> typedef struct {
>    unsigned char Low;
>    unsigned char Mid;
>    signed   char High;
> } int24;
> 
> #define INIT_INT24(aValue) {                  \
>    ((unsigned long )(aValue)) & 0xff,        \
>    (((unsigned long )(aValue)) >> 8) & 0xff, \
>    (((signed long)(aValue)) >> 16) & 0xff }

Koszi, mar keso, megcsinaltam 32 biten, muxik, nem piszkaljuk tobbet :)

> Ezt azt hiszem felre ertetted. A kerdes: milyen proci, milyen fordito. Csak

Mivel C, ez nem is lenyeges :)
Egyebkent AVR, es az IAR ferdito.

> Tantos Andras

-- 
Valenta Ferenc <vf at elte.hu>   Visit me at http://ludens.elte.h u/~vf/
Ha Murphy torvenye tevesnek bizonyulhat, akkor fog is.



More information about the Elektro mailing list