mfld-fr / emu86

Intel IA16 emulator for embedded development
35 stars 6 forks source link

AAM & AAD ops. #61

Closed cocus closed 3 years ago

cocus commented 3 years ago

op-class: handle adjust2 ops imm argument. op-exec: handle adjust2 ops.

cocus commented 3 years ago

With this change + @mfld-fr's latest rom-pcxtat.c, I'm able to run vanilla MSDOS 6.22 (spanish). There's a bug where I have to press the keys multiple times until they're recognized, but this is great! EDIT: This should be fixed with https://github.com/mfld-fr/emu86/pull/62.

As a side note, I don't know why I need to have this set of operations now, since I didn't need them on my branch when I was testing this, but oh well!

EDIT2: Since I had this code ready to go to check why my bios didn't work with the same MSDOS code, I ended up figuring it out. It's the system memory size. If I put 96k (as I was expecting) as the RAM size for int11 (even on pcxtat), DOS hangs as I was observing on my BIOS tests. If I change it to 512, it boots, even on my custom target with my own BIOS! I should've read the minimum required RAM size for that version 🤦‍♂️ !

mfld-fr commented 3 years ago

If I change it to 512, it boots, even on my custom target with my own BIOS.

Congrat's, you succeeded in running a standard OS on your target, and EMU86 was used exactly for what it is intended for : helping to tune your FW 👍.