Lines Matching defs:uint32_t

46 static uint32_t	fetch_long_imm (struct x86emu *);
47 static uint8_t fetch_data_byte (struct x86emu *, uint32_t offset);
48 static uint8_t fetch_byte (struct x86emu *, uint segment, uint32_t offset);
49 static uint16_t fetch_data_word (struct x86emu *, uint32_t offset);
50 static uint16_t fetch_word (struct x86emu *, uint32_t segment, uint32_t offset);
51 static uint32_t fetch_data_long (struct x86emu *, uint32_t offset);
52 static uint32_t fetch_long (struct x86emu *, uint32_t segment, uint32_t offset);
53 static void store_data_byte (struct x86emu *, uint32_t offset, uint8_t val);
54 static void store_byte (struct x86emu *, uint32_t segment, uint32_t offset, uint8_t val);
55 static void store_data_word (struct x86emu *, uint32_t offset, uint16_t val);
56 static void store_word (struct x86emu *, uint32_t segment, uint32_t offset, uint16_t val);
57 static void store_data_long (struct x86emu *, uint32_t offset, uint32_t val);
58 static void store_long (struct x86emu *, uint32_t segment, uint32_t offset, uint32_t val);
61 static uint32_t* decode_rl_long_register(struct x86emu *);
64 static uint32_t* decode_rh_long_register(struct x86emu *);
66 static uint32_t decode_rl_address(struct x86emu *);
70 static uint32_t decode_and_fetch_long(struct x86emu *);
74 static uint32_t decode_and_fetch_long_imm8(struct x86emu *, uint8_t *);
77 static uint32_t decode_and_fetch_long_disp(struct x86emu *, int16_t);
81 static void write_back_long(struct x86emu *, uint32_t);
89 static uint32_t adc_long (struct x86emu *, uint32_t d, uint32_t s);
92 static uint32_t add_long (struct x86emu *, uint32_t d, uint32_t s);
95 static uint32_t and_long (struct x86emu *, uint32_t d, uint32_t s);
98 static uint32_t cmp_long (struct x86emu *, uint32_t d, uint32_t s);
101 static void cmp_long_no_return (struct x86emu *, uint32_t d, uint32_t s);
106 static uint32_t dec_long (struct x86emu *, uint32_t d);
109 static uint32_t inc_long (struct x86emu *, uint32_t d);
112 static uint32_t or_long (struct x86emu *, uint32_t d, uint32_t s);
115 static uint32_t neg_long (struct x86emu *, uint32_t s);
118 static uint32_t rcl_long (struct x86emu *, uint32_t d, uint8_t s);
121 static uint32_t rcr_long (struct x86emu *, uint32_t d, uint8_t s);
124 static uint32_t rol_long (struct x86emu *, uint32_t d, uint8_t s);
127 static uint32_t ror_long (struct x86emu *, uint32_t d, uint8_t s);
130 static uint32_t shl_long (struct x86emu *, uint32_t d, uint8_t s);
133 static uint32_t shr_long (struct x86emu *, uint32_t d, uint8_t s);
136 static uint32_t sar_long (struct x86emu *, uint32_t d, uint8_t s);
138 static uint32_t shld_long (struct x86emu *, uint32_t d, uint32_t fill, uint8_t s);
140 static uint32_t shrd_long (struct x86emu *, uint32_t d, uint32_t fill, uint8_t s);
143 static uint32_t sbb_long (struct x86emu *, uint32_t d, uint32_t s);
146 static uint32_t sub_long (struct x86emu *, uint32_t d, uint32_t s);
149 static void test_long (struct x86emu *, uint32_t d, uint32_t s);
152 static uint32_t xor_long (struct x86emu *, uint32_t d, uint32_t s);
155 static void imul_long (struct x86emu *, uint32_t s);
158 static void mul_long (struct x86emu *, uint32_t s);
161 static void idiv_long (struct x86emu *, uint32_t s);
164 static void div_long (struct x86emu *, uint32_t s);
168 static void push_long (struct x86emu *, uint32_t w);
170 static uint32_t pop_long (struct x86emu *);
366 static uint32_t
369 uint32_t fetched;
405 static uint32_t
444 fetch_data_byte(struct x86emu *emu, uint32_t offset)
459 fetch_data_word(struct x86emu *emu, uint32_t offset)
473 static uint32_t
474 fetch_data_long(struct x86emu *emu, uint32_t offset)
490 fetch_byte(struct x86emu *emu, uint32_t segment, uint32_t offset)
492 return (*emu->emu_rdb) (emu, ((uint32_t) segment << 4) + offset);
506 fetch_word(struct x86emu *emu, uint32_t segment, uint32_t offset)
508 return (*emu->emu_rdw) (emu, ((uint32_t) segment << 4) + offset);
521 static uint32_t
522 fetch_long(struct x86emu *emu, uint32_t segment, uint32_t offset)
524 return (*emu->emu_rdl) (emu, ((uint32_t) segment << 4) + offset);
539 store_data_byte(struct x86emu *emu, uint32_t offset, uint8_t val)
556 store_data_word(struct x86emu *emu, uint32_t offset, uint16_t val)
573 store_data_long(struct x86emu *emu, uint32_t offset, uint32_t val)
590 store_byte(struct x86emu *emu, uint32_t segment, uint32_t offset, uint8_t val)
592 (*emu->emu_wrb) (emu, ((uint32_t) segment << 4) + offset, val);
607 store_word(struct x86emu *emu, uint32_t segment, uint32_t offset, uint16_t val)
609 (*emu->emu_wrw) (emu, ((uint32_t) segment << 4) + offset, val);
624 store_long(struct x86emu *emu, uint32_t segment, uint32_t offset, uint32_t val)
626 (*emu->emu_wrl) (emu, ((uint32_t) segment << 4) + offset, val);
736 static uint32_t *
761 static uint32_t *
767 static uint32_t *
810 static uint32_t
813 uint32_t base = 0, i = 0, scale = 1;
889 static uint32_t
893 uint32_t offset, sib;
1006 static uint32_t
1026 uint32_t
1058 static uint32_t
1090 write_back_long(struct x86emu *emu, uint32_t val)
1120 uint32_t destoffset;
1141 uint32_t destoffset;
1159 uint32_t destoffset;
1180 uint32_t srcoffset;
1195 uint32_t (*binop)(struct x86emu *, uint32_t, uint32_t))
1197 uint32_t destoffset;
1198 uint32_t destval, *destreg, srcval;
1216 uint32_t (*binop32)(struct x86emu *, uint32_t, uint32_t))
1228 uint32_t destoffset;
1245 void (*binop)(struct x86emu *, uint32_t, uint32_t))
1247 uint32_t destoffset;
1248 uint32_t destval, srcval;
1264 void (*binop32)(struct x86emu *, uint32_t, uint32_t))
1274 uint32_t (*binop)(struct x86emu *, uint32_t, uint32_t))
1276 uint32_t srcoffset;
1277 uint32_t *destreg, srcval;
1294 uint32_t srcoffset;
1311 uint32_t (*binop32)(struct x86emu *, uint32_t, uint32_t))
1332 uint32_t (*binop32)(struct x86emu *, uint32_t, uint32_t))
1335 uint32_t srcval;
1368 uint32_t srcoffset;
1369 uint32_t *destreg, srcval;
1395 *destreg = (uint32_t)res;
1401 uint32_t srcoffset;
1404 uint32_t res;
1456 uint32_t srcoffset;
1493 uint32_t srcval, *destreg;
1541 uint32_t srcval;
1573 uint32_t old_sp = emu->x86.R_ESP;
1636 uint32_t imm;
1803 uint32_t(* const opc81_long_operation[])
1804 (struct x86emu *, uint32_t d, uint32_t s) =
1823 uint32_t destval, imm;
1917 uint32_t(* const opc83_long_operation[])
1918 (struct x86emu *, uint32_t s, uint32_t d) =
1937 uint32_t destval, imm;
1994 uint32_t *srcreg, destval, tmp;
2036 uint32_t destoffset;
2056 uint32_t destoffset;
2057 uint32_t *destreg, srcval;
2073 uint32_t destoffset;
2118 uint32_t *destreg;
2140 uint32_t destoffset;
2160 uint32_t destoffset;
2168 uint32_t *srcreg;
2171 *srcreg = (uint32_t) destoffset;
2207 uint32_t destoffset;
2208 uint32_t destval, *destreg;
2224 uint32_t destoffset;
2254 uint32_t tmp;
2274 uint32_t tmp;
2294 uint32_t tmp;
2314 uint32_t tmp;
2334 uint32_t tmp;
2354 uint32_t tmp;
2374 uint32_t tmp;
2460 uint32_t flags;
2579 uint32_t count;
2609 uint32_t val;
2611 uint32_t count;
2702 uint32_t val1, val2;
2826 uint32_t count;
2892 uint32_t count;
2973 uint32_t val;
3187 uint32_t(* const opcD1_long_operation[])
3188 (struct x86emu *, uint32_t s, uint8_t d) =
3216 uint32_t destval;
3254 uint32_t destoffset;
3278 uint32_t destoffset;
3279 uint32_t imm, *destreg;
3299 uint32_t destoffset;
3459 uint32_t destval;
3499 uint32_t destval;
3945 uint32_t destval, srcval;
3955 uint32_t destoffset;
4004 uint32_t destoffset;
4057 uint32_t destoffset;
4096 uint32_t destoffset = 0;
4097 uint32_t destval, *destreg;
4134 uint32_t destoffset = 0;
4173 uint32_t destoffset = 0;
5045 uint32_t destoffset;
5063 uint32_t srcval, *shiftreg, mask;
5127 uint32_t srcval, *dstreg;
5167 uint32_t destval, *shiftreg;
5257 hw_cpuid(uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d)
5386 uint32_t *destreg, srcval;
5400 *destreg = (uint32_t) res;
5407 uint32_t res;
5479 uint32_t *destreg;
5512 uint32_t *destreg;
5527 uint32_t srcval, mask;
5627 uint32_t *destreg;
5660 uint32_t *destreg;
5965 static uint32_t x86emu_parity_tab[8] =
6080 uint32_t res; /* all operands in native machine order */
6081 uint32_t cc;
6107 uint32_t res; /* all operands in native machine order */
6108 uint32_t cc;
6131 static uint32_t
6132 adc_long(struct x86emu *emu, uint32_t d, uint32_t s)
6134 uint32_t lo; /* all operands in native machine order */
6135 uint32_t hi;
6136 uint32_t res;
6137 uint32_t cc;
6167 uint32_t res; /* all operands in native machine order */
6168 uint32_t cc;
6190 uint32_t res; /* all operands in native machine order */
6191 uint32_t cc;
6210 static uint32_t
6211 add_long(struct x86emu *emu, uint32_t d, uint32_t s)
6213 uint32_t lo; /* all operands in native machine order */
6214 uint32_t hi;
6215 uint32_t res;
6216 uint32_t cc;
6281 static uint32_t
6282 and_long(struct x86emu *emu, uint32_t d, uint32_t s)
6284 uint32_t res; /* all operands in native machine order */
6305 uint32_t res; /* all operands in native machine order */
6306 uint32_t bc;
6335 uint32_t res; /* all operands in native machine order */
6336 uint32_t bc;
6361 static uint32_t
6362 cmp_long(struct x86emu *emu, uint32_t d, uint32_t s)
6364 uint32_t res; /* all operands in native machine order */
6365 uint32_t bc;
6381 cmp_long_no_return(struct x86emu *emu, uint32_t d, uint32_t s)
6393 uint32_t res = d;
6436 uint32_t res; /* all operands in native machine order */
6437 uint32_t bc;
6460 uint32_t res; /* all operands in native machine order */
6461 uint32_t bc;
6481 static uint32_t
6482 dec_long(struct x86emu *emu, uint32_t d)
6484 uint32_t res; /* all operands in native machine order */
6485 uint32_t bc;
6508 uint32_t res; /* all operands in native machine order */
6509 uint32_t cc;
6530 uint32_t res; /* all operands in native machine order */
6531 uint32_t cc;
6549 static uint32_t
6550 inc_long(struct x86emu *emu, uint32_t d)
6552 uint32_t res; /* all operands in native machine order */
6553 uint32_t cc;
6610 static uint32_t
6611 or_long(struct x86emu *emu, uint32_t d, uint32_t s)
6613 uint32_t res; /* all operands in native machine order */
6684 static uint32_t
6685 neg_long(struct x86emu *emu, uint32_t s)
6687 uint32_t res;
6688 uint32_t bc;
6691 res = (uint32_t) - s;
6807 static uint32_t
6808 rcl_long(struct x86emu *emu, uint32_t d, uint8_t s)
6810 uint32_t res, cnt, mask, cf;
6835 uint32_t res, cnt;
6836 uint32_t mask, cf, ocf = 0;
6913 uint32_t res, cnt;
6914 uint32_t mask, cf, ocf = 0;
6943 static uint32_t
6944 rcr_long(struct x86emu *emu, uint32_t d, uint8_t s)
6946 uint32_t res, cnt;
6947 uint32_t mask, cf, ocf = 0;
7050 static uint32_t
7051 rol_long(struct x86emu *emu, uint32_t d, uint8_t s)
7053 uint32_t res, cnt, mask;
7144 static uint32_t
7145 ror_long(struct x86emu *emu, uint32_t d, uint8_t s)
7147 uint32_t res, cnt, mask;
7254 static uint32_t
7255 shl_long(struct x86emu *emu, uint32_t d, uint8_t s)
7368 static uint32_t
7369 shr_long(struct x86emu *emu, uint32_t d, uint8_t s)
7487 static uint32_t
7488 sar_long(struct x86emu *emu, uint32_t d, uint8_t s)
7490 uint32_t cnt, res, cf, mask, sf;
7566 static uint32_t
7567 shld_long(struct x86emu *emu, uint32_t d, uint32_t fill, uint8_t s)
7642 static uint32_t
7643 shrd_long(struct x86emu *emu, uint32_t d, uint32_t fill, uint8_t s)
7682 uint32_t res; /* all operands in native machine order */
7683 uint32_t bc;
7708 uint32_t res; /* all operands in native machine order */
7709 uint32_t bc;
7731 static uint32_t
7732 sbb_long(struct x86emu *emu, uint32_t d, uint32_t s)
7734 uint32_t res; /* all operands in native machine order */
7735 uint32_t bc;
7760 uint32_t res; /* all operands in native machine order */
7761 uint32_t bc;
7783 uint32_t res; /* all operands in native machine order */
7784 uint32_t bc;
7803 static uint32_t
7804 sub_long(struct x86emu *emu, uint32_t d, uint32_t s)
7806 uint32_t res; /* all operands in native machine order */
7807 uint32_t bc;
7829 uint32_t res; /* all operands in native machine order */
7848 uint32_t res; /* all operands in native machine order */
7865 test_long(struct x86emu *emu, uint32_t d, uint32_t s)
7867 uint32_t res; /* all operands in native machine order */
7921 static uint32_t
7922 xor_long(struct x86emu *emu, uint32_t d, uint32_t s)
7924 uint32_t res; /* all operands in native machine order */
7982 imul_long(struct x86emu *emu, uint32_t s)
7987 emu->x86.R_EAX = (uint32_t)res;
8025 uint32_t res = emu->x86.R_AX * s;
8043 mul_long(struct x86emu *emu, uint32_t s)
8047 emu->x86.R_EAX = (uint32_t) res;
8048 emu->x86.R_EDX = (uint32_t) (res >> 32);
8117 idiv_long(struct x86emu *emu, uint32_t s)
8138 emu->x86.R_EAX = (uint32_t) div;
8139 emu->x86.R_EDX = (uint32_t) mod;
8149 uint32_t dvd, div, mod;
8173 uint32_t dvd, div, mod;
8175 dvd = (((uint32_t) emu->x86.R_DX) << 16) | emu->x86.R_AX;
8200 div_long(struct x86emu *emu, uint32_t s)
8209 div = dvd / (uint32_t) s;
8210 mod = dvd % (uint32_t) s;
8221 emu->x86.R_EAX = (uint32_t) div;
8222 emu->x86.R_EDX = (uint32_t) mod;
8240 uint32_t count = ((emu->x86.mode & SYSMODE_PREFIX_DATA) ?
8305 uint32_t count = ((emu->x86.mode & SYSMODE_PREFIX_DATA) ?
8378 push_long(struct x86emu *emu, uint32_t w)
8406 static uint32_t
8409 uint32_t res;