From: Jeremy S. <js...@mv...> - 2001-12-26 18:33:13
|
NIIBE Yutaka wrote: > Something like following (with comment) looks better: > > /* Use type coersion to get sign extention */ > #define SH4_PC_OFFSET_WORD(X) ((((signed short)((X)<<4))>>3) + 4) > ... > regs->pc += SH4_PC_OFFSET_WORD(instruction); > > It would be good we could avoid type coersion, but I dont' have good > alternative... Ok, I'll check it in that way (macros and comments). |