Hi, Groepaz wrote: > On Montag 26 April 2010, you wrote: >> Is there any way to share struct definitions between C and asm? > > unfortunately not (very unfortunately i have to add). some kind of support to > share headers (atleast simply stuff like constants and structs) would be very > nice to have indeed. > ------------------------------------------- ;/* include file for assembler & C ; * Christian Groessler ; */ ;/* Avoid double inclusion in C */ ;/* .if 0 ;*/ #ifndef __C_AND_ASM_INCLUDED__ #define __C_AND_ASM_INCLUDED__ ;/* .endif ;*/ ;/* some constants ; */ enum MY_CONSTANTS { /* MY_CONSTANT_1 = 123 ; */ MY_CONSTANT_1 = 123, /* MY_CONSTANT_2 = 456 ; */ MY_CONSTANT_2 = 456, /* ; */ }; ;/* a structure .struct MY_STRUCT ; */ typedef struct MY_STRUCT { /* MEMBER1 .word 2 ; */ unsigned short MEMBER1[2]; /* MEMBER2 .byte 2 ; */ unsigned char MEMBER2[2]; /* .endstruct ; */ } MY_STRUCT_T; ;/* .if 0 ;*/ #endif // __C_AND_ASM_INCLUDED__ ;/* .endif ;*/ ;/* End of Include file */ ------------------------------------------- :-) regards, chris ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Tue Apr 27 15:05:49 2010
This archive was generated by hypermail 2.1.8 : 2010-04-27 15:05:54 CEST