Lines Matching full:al

148 target_ulong helper_aam(target_ulong al, target_ulong base)  in helper_aam()  argument
152 al &= 0xff; in helper_aam()
153 ah = al / base; in helper_aam()
154 al = al % base; in helper_aam()
155 return al | (ah << 8); in helper_aam()
160 int al, ah; in helper_aad() local
162 al = ax & 0xff; in helper_aad()
164 al = ((ah * base) + al) & 0xff; in helper_aad()
165 return al; in helper_aad()
171 int al, ah, af; in helper_aaa() local
176 al = env->regs[R_EAX] & 0xff; in helper_aaa()
179 icarry = (al > 0xf9); in helper_aaa()
180 if (((al & 0x0f) > 9) || af) { in helper_aaa()
181 al = (al + 6) & 0x0f; in helper_aaa()
186 al &= 0x0f; in helper_aaa()
188 env->regs[R_EAX] = (env->regs[R_EAX] & ~0xffff) | al | (ah << 8); in helper_aaa()
196 int al, ah, af; in helper_aas() local
201 al = env->regs[R_EAX] & 0xff; in helper_aas()
204 icarry = (al < 6); in helper_aas()
205 if (((al & 0x0f) > 9) || af) { in helper_aas()
206 al = (al - 6) & 0x0f; in helper_aas()
211 al &= 0x0f; in helper_aas()
213 env->regs[R_EAX] = (env->regs[R_EAX] & ~0xffff) | al | (ah << 8); in helper_aas()
220 int old_al, al, af, cf; in helper_daa() local
226 old_al = al = env->regs[R_EAX] & 0xff; in helper_daa()
229 if (((al & 0x0f) > 9) || af) { in helper_daa()
230 al = (al + 6) & 0xff; in helper_daa()
234 al = (al + 0x60) & 0xff; in helper_daa()
237 env->regs[R_EAX] = (env->regs[R_EAX] & ~0xff) | al; in helper_daa()
239 eflags |= (al == 0) << 6; /* zf */ in helper_daa()
240 eflags |= compute_pf(al); in helper_daa()
241 eflags |= (al & 0x80); /* sf */ in helper_daa()
248 int al, al1, af, cf; in helper_das() local
254 al = env->regs[R_EAX] & 0xff; in helper_das()
257 al1 = al; in helper_das()
258 if (((al & 0x0f) > 9) || af) { in helper_das()
260 if (al < 6 || cf) { in helper_das()
263 al = (al - 6) & 0xff; in helper_das()
266 al = (al - 0x60) & 0xff; in helper_das()
269 env->regs[R_EAX] = (env->regs[R_EAX] & ~0xff) | al; in helper_das()
271 eflags |= (al == 0) << 6; /* zf */ in helper_das()
272 eflags |= compute_pf(al); in helper_das()
273 eflags |= (al & 0x80); /* sf */ in helper_das()