First post, by superfury
When I try to execute any dir command or program it terminates with a "Divide overflow" printed after the directory listing. Trying to execute a program makes MS-DOS 5.0 give a "<FULL FILENAME PATH HERE> NOT FOUND" error. Trying to execute the IBM PC AT diagnostics' DSETTUP.EXE clears the screen with the cursor in the top-left corner and hangs. Trying to execute the Day of the Tentacle demo's INSTALL.EXE from a floppy disk makes it show the installation wizard, saying it detects the disks (and to select one or press the letter of the harddisk to select it) then terminating with a "Divide error" in the top-left corner of the screen.
The IBM PC AT 80286 runs at 6MHz. Most other timing (except the VGA and things like the Sound Blaster, which have their own clocks which are not based on the IBM PC XT 14.31818MHz clock) are based on the IBM PC XT 14.31818MHz clock, which is divided for the different hardware using it.
Anyone knows what causes these "Divide error" and "D:\DOTT\DOTT.EXE NOT FOUND"(trying to run DOTT) and "Divide overflow" on virtually every other command that's of the internal MS-DOS commands(echo, type etc. kind of commands). It does seem to read the floppy disks and hard disks without a problem? Does this mean there's a problem with my 80286 emulation? The 808(6/8)/NEC V20(/V30) emulation don't give any errors.
Edit: Strangely, monitoring the Divide by zero exception shows that it isn't called during the execution?
Author of the UniPCemu emulator.
UniPCemu Git repository
UniPCemu for Android, Windows, PSP, Vita and Switch on itch.io