-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[8086/8088][feature/question] build .com files or plain raw binaries #210
Comments
It's currently not supported but would be easy to do: .COM binary files are just a memory dump from 0x0100 onwards in a segment, the same as on CP/M. The only thing which has prevented anyone doing this is that producing a reasonably useful syscall library is a bit of work: the main one is trying to decide how to map DOS drives and paths. (There is a standard, which I don't know.) |
Ok, I understand that implement calls to the systems would be a major task. |
Our pc86 platform uses BIOS calls to read the floppy drive, read/write the console, and reboot the system; see plat/pc86/boot.s and plat/pc86/libsys/*.s. A DOS executable would need at least a different boot.s that doesn't read the floppy drive, and code for _exit() to return to DOS. So far, no one has written the code. |
Hello @Fabrizio-Caruso, hello @kernigh, In case it is useful to know: I am trying to see if I can get ACK to support MS-DOS |
Cool --- thanks! FWIW, I do have DOS support in my cowgol project which might be useful --- look in rt/msdos and src/cowlink/archmsdos.coh. https://github.com/davidgiven/cowgol |
@tkchia, this is really cool. |
Hello @davidgiven, hello @Fabrizio-Caruso,
Thanks for the pointer! ☺ Here is my reasonably complete first cut attempt at MS-DOS Thank you! |
Is it possible to just build plain old .COM binary files for the 8088 target? or other binary formats (possibly executable in DOS)?
Some old PC did not use 1.44 floppy. Some did not even have floppies at all (such as the Atari Portfolio). I would like to generate a .COM file (for the Atari Portfolio).
Is it already possible? If not, it would be nice to have this feature.
The text was updated successfully, but these errors were encountered: