Lines Matching refs:ptr
28 static inline uint8 get_u8(void *bios, int ptr)
30 return ((unsigned char *)bios)[ptr];
32 #define U8(ptr) get_u8(ctx->ctx->bios,(ptr))
33 #define CU8(ptr) get_u8(ctx->bios,(ptr))
34 static inline uint16 get_u16(void *bios, int ptr)
36 return get_u8(bios,ptr)|(((uint16)get_u8(bios,ptr+1))<<8);
38 #define U16(ptr) get_u16(ctx->ctx->bios,(ptr))
39 #define CU16(ptr) get_u16(ctx->bios,(ptr))
40 static inline uint32 get_u32(void *bios, int ptr)
42 return get_u16(bios,ptr)|(((uint32)get_u16(bios,ptr+2))<<16);
44 #define U32(ptr) get_u32(ctx->ctx->bios,(ptr))
45 #define CU32(ptr) get_u32(ctx->bios,(ptr))
46 #define CSTR(ptr) (((char *)(ctx->bios))+(ptr))