Subj : Re: Inline Assembler bug with structs of certain size To : borland.public.cpp.borlandcpp From : Jeremy Date : Mon Dec 06 2004 09:29 am "Bob Gonder" wrote in message > This line is wrong for you: > > >> printf("&TestStruct1 = %04x, via asm = %04x\n", &TestStruct1, asm_test1()); > > Try > > printf("&TestStruct1 = %4p, via asm = %p\n", &TestStruct1, asm_test1()); > Sorry 'bout that - I should have mentioned I was using small model for the compile. I was using %x 'cause in my embedded software I use a custom sprintf() with all unnecessary options (eg %p) stripped out. Jeremy .