Re: Looking for code to test an 8088 emulator



On Sep 20, 6:57 pm, "wolfgang kern" <nowh...@xxxxxxxx> wrote:
James Harris asked:
|On Sep 19, 9:42 am, "wolfgang kern" <nowh...@xxxxxxxx> wrote:

....

wflags = (wflags AND ff00h) OR (bAH AND D5h)

|Good point but how on earth did you choose those values and that
|code? :-(

My notes on EFLag-register in 16/32-bit modes:

....

Sorry to put you to all that work. I've not been following this thread
too closely and in your line

wflags = (wflags AND ff00h) OR (bAH AND D5h)

I saw what appeared to be three hex values! That trailing h was never
a good idea, IMHO, given that a leading hex digit can be a letter. A
leading 0x is more consistent.

BTW, I think someone else mentioned it but the emulator might have to
or-in bit 1 - either when setting the flags register or when reading
it.

James
.