Lines Matching refs:displacement
794 int displacement; in decode_sib_address() local
820 displacement = (s32)fetch_long_imm(); in decode_sib_address()
821 DECODE_PRINTF2("[%d]", displacement); in decode_sib_address()
822 offset = displacement; in decode_sib_address()
825 displacement = (s8)fetch_byte_imm(); in decode_sib_address()
826 DECODE_PRINTF2("[%d][EBP]", displacement); in decode_sib_address()
827 offset = M.x86.R_EBP + displacement; in decode_sib_address()
830 displacement = (s32)fetch_long_imm(); in decode_sib_address()
831 DECODE_PRINTF2("[%d][EBP]", displacement); in decode_sib_address()
832 offset = M.x86.R_EBP + displacement; in decode_sib_address()
959 int displacement; in decode_rm01_address() local
964 displacement = (s8)fetch_byte_imm(); in decode_rm01_address()
966 displacement = 0; in decode_rm01_address()
970 DECODE_PRINTF2("%d[EAX]", displacement); in decode_rm01_address()
971 return M.x86.R_EAX + displacement; in decode_rm01_address()
973 DECODE_PRINTF2("%d[ECX]", displacement); in decode_rm01_address()
974 return M.x86.R_ECX + displacement; in decode_rm01_address()
976 DECODE_PRINTF2("%d[EDX]", displacement); in decode_rm01_address()
977 return M.x86.R_EDX + displacement; in decode_rm01_address()
979 DECODE_PRINTF2("%d[EBX]", displacement); in decode_rm01_address()
980 return M.x86.R_EBX + displacement; in decode_rm01_address()
983 displacement = (s8)fetch_byte_imm(); in decode_rm01_address()
984 DECODE_PRINTF2("[%d]", displacement); in decode_rm01_address()
985 return offset + displacement; in decode_rm01_address()
988 DECODE_PRINTF2("%d[EBP]", displacement); in decode_rm01_address()
989 return M.x86.R_EBP + displacement; in decode_rm01_address()
991 DECODE_PRINTF2("%d[ESI]", displacement); in decode_rm01_address()
992 return M.x86.R_ESI + displacement; in decode_rm01_address()
994 DECODE_PRINTF2("%d[EDI]", displacement); in decode_rm01_address()
995 return M.x86.R_EDI + displacement; in decode_rm01_address()
999 displacement = (s8)fetch_byte_imm(); in decode_rm01_address()
1002 DECODE_PRINTF2("%d[BX+SI]", displacement); in decode_rm01_address()
1003 return (M.x86.R_BX + M.x86.R_SI + displacement) & 0xffff; in decode_rm01_address()
1005 DECODE_PRINTF2("%d[BX+DI]", displacement); in decode_rm01_address()
1006 return (M.x86.R_BX + M.x86.R_DI + displacement) & 0xffff; in decode_rm01_address()
1008 DECODE_PRINTF2("%d[BP+SI]", displacement); in decode_rm01_address()
1010 return (M.x86.R_BP + M.x86.R_SI + displacement) & 0xffff; in decode_rm01_address()
1012 DECODE_PRINTF2("%d[BP+DI]", displacement); in decode_rm01_address()
1014 return (M.x86.R_BP + M.x86.R_DI + displacement) & 0xffff; in decode_rm01_address()
1016 DECODE_PRINTF2("%d[SI]", displacement); in decode_rm01_address()
1017 return (M.x86.R_SI + displacement) & 0xffff; in decode_rm01_address()
1019 DECODE_PRINTF2("%d[DI]", displacement); in decode_rm01_address()
1020 return (M.x86.R_DI + displacement) & 0xffff; in decode_rm01_address()
1022 DECODE_PRINTF2("%d[BP]", displacement); in decode_rm01_address()
1024 return (M.x86.R_BP + displacement) & 0xffff; in decode_rm01_address()
1026 DECODE_PRINTF2("%d[BX]", displacement); in decode_rm01_address()
1027 return (M.x86.R_BX + displacement) & 0xffff; in decode_rm01_address()
1049 int displacement; in decode_rm10_address() local
1053 displacement = (s32)fetch_long_imm(); in decode_rm10_address()
1055 displacement = 0; in decode_rm10_address()
1059 DECODE_PRINTF2("%d[EAX]", displacement); in decode_rm10_address()
1060 return M.x86.R_EAX + displacement; in decode_rm10_address()
1062 DECODE_PRINTF2("%d[ECX]", displacement); in decode_rm10_address()
1063 return M.x86.R_ECX + displacement; in decode_rm10_address()
1065 DECODE_PRINTF2("%d[EDX]", displacement); in decode_rm10_address()
1066 return M.x86.R_EDX + displacement; in decode_rm10_address()
1068 DECODE_PRINTF2("%d[EBX]", displacement); in decode_rm10_address()
1069 return M.x86.R_EBX + displacement; in decode_rm10_address()
1072 displacement = (s32)fetch_long_imm(); in decode_rm10_address()
1073 DECODE_PRINTF2("[%d]", displacement); in decode_rm10_address()
1074 return offset + displacement; in decode_rm10_address()
1077 DECODE_PRINTF2("%d[EBP]", displacement); in decode_rm10_address()
1078 return M.x86.R_EBP + displacement; in decode_rm10_address()
1080 DECODE_PRINTF2("%d[ESI]", displacement); in decode_rm10_address()
1081 return M.x86.R_ESI + displacement; in decode_rm10_address()
1083 DECODE_PRINTF2("%d[EDI]", displacement); in decode_rm10_address()
1084 return M.x86.R_EDI + displacement; in decode_rm10_address()
1087 int displacement = (s16)fetch_word_imm(); in decode_rm10_address() local
1092 DECODE_PRINTF2("%d[BX+SI]", displacement); in decode_rm10_address()
1093 return (M.x86.R_BX + M.x86.R_SI + displacement) & 0xffff; in decode_rm10_address()
1095 DECODE_PRINTF2("%d[BX+DI]", displacement); in decode_rm10_address()
1096 return (M.x86.R_BX + M.x86.R_DI + displacement) & 0xffff; in decode_rm10_address()
1098 DECODE_PRINTF2("%d[BP+SI]", displacement); in decode_rm10_address()
1100 return (M.x86.R_BP + M.x86.R_SI + displacement) & 0xffff; in decode_rm10_address()
1102 DECODE_PRINTF2("%d[BP+DI]", displacement); in decode_rm10_address()
1104 return (M.x86.R_BP + M.x86.R_DI + displacement) & 0xffff; in decode_rm10_address()
1106 DECODE_PRINTF2("%d[SI]", displacement); in decode_rm10_address()
1107 return (M.x86.R_SI + displacement) & 0xffff; in decode_rm10_address()
1109 DECODE_PRINTF2("%d[DI]", displacement); in decode_rm10_address()
1110 return (M.x86.R_DI + displacement) & 0xffff; in decode_rm10_address()
1112 DECODE_PRINTF2("%d[BP]", displacement); in decode_rm10_address()
1114 return (M.x86.R_BP + displacement) & 0xffff; in decode_rm10_address()
1116 DECODE_PRINTF2("%d[BX]", displacement); in decode_rm10_address()
1117 return (M.x86.R_BX + displacement) & 0xffff; in decode_rm10_address()