X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device%2Flib%2F_mullong.c;h=58ee9915ca51207c2c9d58097281e0744632b3bc;hb=fd539a2cbf62c34d9ef4eb48fdddc7e3b51987bb;hp=6b40ea6fb1f9f66f34e6afa331ad46d0b5dedff0;hpb=b4a73485ec5055ff2914877e25afbb305efebb39;p=fw%2Fsdcc diff --git a/device/lib/_mullong.c b/device/lib/_mullong.c index 6b40ea6f..58ee9915 100644 --- a/device/lib/_mullong.c +++ b/device/lib/_mullong.c @@ -493,16 +493,18 @@ _mullong_dummy (void) _naked #else // _MULLONG_ASM struct some_struct { - int a ; + short a ; char b; long c ;}; union bil { struct {unsigned char b0,b1,b2,b3 ;} b; - struct {unsigned int lo,hi ;} i; + struct {unsigned short lo,hi ;} i; unsigned long l; - struct { unsigned char b0; unsigned int i12; unsigned char b3;} bi; + struct { unsigned char b0; unsigned short i12; unsigned char b3;} bi; } ; -#if defined(SDCC_MODEL_LARGE) || defined (SDCC_ds390) +#if defined(SDCC_USE_XSTACK) +# define bcast(x) ((union bil pdata *)&(x)) +#elif (defined(SDCC_MODEL_LARGE) || defined (SDCC_ds390) || defined (SDCC_ds400)) && !defined(SDCC_STACK_AUTO) # define bcast(x) ((union bil xdata *)&(x)) #elif defined(__z80) || defined(__gbz80) # define bcast(x) ((union bil *)&(x))