fdisk.exe fails to run on 8086
"undefined operation" will go away on the de-UPXed fdisk.exe, when using a 80186 CPU. -> Wrong compile-time options were used.
I created an 8086-compatible FDISK.EXE based on Tom Ehlert's http://www.drivesnapshot.de/freedos/fdisk134.zip (also mirrored at https://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/dos/fdisk/1.3.4/).
I removed the "-1" from CFLAGS at SOURCE\FDISK\MAKEFILE. Then I ran "upx --best --8086 FDISK.EXE -oFDISKUPX.EXE".
Both EXE file started fine on the emulated 8086. I also tried "--lzma", but (as expected) it starts quite slow on such a low-end CPU.
You can grab just FDISK.EXE and FDISKUPX.EXE from http://www.bttr-software.de/tmp/fdisk134_8086.zip
I also reported this at https://github.com/FDOS/fdisk/issues/13 and https://gitlab.com/FreeDOS/base/fdisk/-/issues/5
Package updated using your new upx binary. Thank you!
Thanks. :-)
But doesn't seem to be part of the updated image (31 Jan 2022).
Did a fresh install, but FDISK.EXE is still dated 3-18-2021.
probably hadn't pushed the new ISO to website, I don't do it every time anything changes. did it now.
Works as expected now with the updated ISO. :-)
pce-ibmpc logs "undefined operation [C1 e1]", when FDISK is executed like "fdisk /?".
It runs fine, when I change emulated CPU to 80186.
After running "upx -d fdisk.exe", "fdisk /?" gives me "Abnormal program termination" and "Null point}r assignment" on the (emulated) 8086. (Yes, with } instead of an "e".)
At the same time pce-ibmpc logs:
I guess, we need to rebuild FDISK.EXE before using UPX --8086 and updating the package, but maybe I can find a working binary elsewhere.