Lines Matching refs:M
1876 s16 res = (s16)((s8)M.x86.R_AL * (s8)s); in imul_byte()
1878 M.x86.R_AX = res; in imul_byte()
1879 if (((M.x86.R_AL & 0x80) == 0 && M.x86.R_AH == 0x00) || in imul_byte()
1880 ((M.x86.R_AL & 0x80) != 0 && M.x86.R_AH == 0xFF)) { in imul_byte()
1895 s32 res = (s16)M.x86.R_AX * (s16)s; in imul_word()
1897 M.x86.R_AX = (u16)res; in imul_word()
1898 M.x86.R_DX = (u16)(res >> 16); in imul_word()
1899 if (((M.x86.R_AX & 0x8000) == 0 && M.x86.R_DX == 0x0000) || in imul_word()
1900 ((M.x86.R_AX & 0x8000) != 0 && M.x86.R_DX == 0xFFFF)) { in imul_word()
1953 imul_long_direct(&M.x86.R_EAX,&M.x86.R_EDX,M.x86.R_EAX,s); in imul_long()
1954 if (((M.x86.R_EAX & 0x80000000) == 0 && M.x86.R_EDX == 0x00000000) || in imul_long()
1955 ((M.x86.R_EAX & 0x80000000) != 0 && M.x86.R_EDX == 0xFFFFFFFF)) { in imul_long()
1970 u16 res = (u16)(M.x86.R_AL * s); in mul_byte()
1972 M.x86.R_AX = res; in mul_byte()
1973 if (M.x86.R_AH == 0) { in mul_byte()
1988 u32 res = M.x86.R_AX * s; in mul_word()
1990 M.x86.R_AX = (u16)res; in mul_word()
1991 M.x86.R_DX = (u16)(res >> 16); in mul_word()
1992 if (M.x86.R_DX == 0) { in mul_word()
2008 u64 res = (u32)M.x86.R_EAX * (u32)s; in mul_long()
2010 M.x86.R_EAX = (u32)res; in mul_long()
2011 M.x86.R_EDX = (u32)(res >> 32); in mul_long()
2017 a = M.x86.R_EAX; in mul_long()
2025 M.x86.R_EAX = (rlo_hi << 16) | (rlo_lo & 0xFFFF); in mul_long()
2026 M.x86.R_EDX = rhi_lo; in mul_long()
2028 if (M.x86.R_EDX == 0) { in mul_long()
2045 dvd = (s16)M.x86.R_AX; in idiv_byte()
2056 M.x86.R_AL = (s8) div; in idiv_byte()
2057 M.x86.R_AH = (s8) mod; in idiv_byte()
2068 dvd = (((s32)M.x86.R_DX) << 16) | M.x86.R_AX; in idiv_word()
2084 M.x86.R_AX = (u16)div; in idiv_word()
2085 M.x86.R_DX = (u16)mod; in idiv_word()
2097 dvd = (((s64)M.x86.R_EDX) << 32) | M.x86.R_EAX; in idiv_long()
2110 s32 h_dvd = M.x86.R_EDX; in idiv_long()
2111 u32 l_dvd = M.x86.R_EAX; in idiv_long()
2158 M.x86.R_EAX = (u32)div; in idiv_long()
2159 M.x86.R_EDX = (u32)mod; in idiv_long()
2170 dvd = M.x86.R_AX; in div_byte()
2181 M.x86.R_AL = (u8)div; in div_byte()
2182 M.x86.R_AH = (u8)mod; in div_byte()
2193 dvd = (((u32)M.x86.R_DX) << 16) | M.x86.R_AX; in div_word()
2209 M.x86.R_AX = (u16)div; in div_word()
2210 M.x86.R_DX = (u16)mod; in div_word()
2222 dvd = (((u64)M.x86.R_EDX) << 32) | M.x86.R_EAX; in div_long()
2235 s32 h_dvd = M.x86.R_EDX; in div_long()
2236 u32 l_dvd = M.x86.R_EAX; in div_long()
2279 M.x86.R_EAX = (u32)div; in div_long()
2280 M.x86.R_EDX = (u32)mod; in div_long()
2291 store_data_byte_abs(M.x86.R_ES, M.x86.R_DI,(*sys_inb)(M.x86.R_DX)); in single_in()
2293 store_data_word_abs(M.x86.R_ES, M.x86.R_DI,(*sys_inw)(M.x86.R_DX)); in single_in()
2295 store_data_long_abs(M.x86.R_ES, M.x86.R_DI,(*sys_inl)(M.x86.R_DX)); in single_in()
2305 if (M.x86.mode & (SYSMODE_PREFIX_REPE | SYSMODE_PREFIX_REPNE)) { in ins()
2308 u32 count = ((M.x86.mode & SYSMODE_PREFIX_DATA) ? in ins()
2309 M.x86.R_ECX : M.x86.R_CX); in ins()
2313 M.x86.R_DI += inc; in ins()
2315 M.x86.R_CX = 0; in ins()
2316 if (M.x86.mode & SYSMODE_PREFIX_DATA) { in ins()
2317 M.x86.R_ECX = 0; in ins()
2319 M.x86.mode &= ~(SYSMODE_PREFIX_REPE | SYSMODE_PREFIX_REPNE); in ins()
2322 M.x86.R_DI += inc; in ins()
2334 (*sys_outb)(M.x86.R_DX,fetch_data_byte_abs(M.x86.R_ES, M.x86.R_SI)); in single_out()
2336 (*sys_outw)(M.x86.R_DX,fetch_data_word_abs(M.x86.R_ES, M.x86.R_SI)); in single_out()
2338 (*sys_outl)(M.x86.R_DX,fetch_data_long_abs(M.x86.R_ES, M.x86.R_SI)); in single_out()
2348 if (M.x86.mode & (SYSMODE_PREFIX_REPE | SYSMODE_PREFIX_REPNE)) { in outs()
2351 u32 count = ((M.x86.mode & SYSMODE_PREFIX_DATA) ? in outs()
2352 M.x86.R_ECX : M.x86.R_CX); in outs()
2355 M.x86.R_SI += inc; in outs()
2357 M.x86.R_CX = 0; in outs()
2358 if (M.x86.mode & SYSMODE_PREFIX_DATA) { in outs()
2359 M.x86.R_ECX = 0; in outs()
2361 M.x86.mode &= ~(SYSMODE_PREFIX_REPE | SYSMODE_PREFIX_REPNE); in outs()
2364 M.x86.R_SI += inc; in outs()
2392 M.x86.R_SP -= 2; in push_word()
2393 (*sys_wrw)(((u32)M.x86.R_SS << 4) + M.x86.R_SP, w); in push_word()
2406 M.x86.R_SP -= 4; in push_long()
2407 (*sys_wrl)(((u32)M.x86.R_SS << 4) + M.x86.R_SP, w); in push_long()
2422 res = (*sys_rdw)(((u32)M.x86.R_SS << 4) + M.x86.R_SP); in pop_word()
2423 M.x86.R_SP += 2; in pop_word()
2439 res = (*sys_rdl)(((u32)M.x86.R_SS << 4) + M.x86.R_SP); in pop_long()
2440 M.x86.R_SP += 4; in pop_long()