4 ms·
Perhaps for CP/M. Loading an MS-DOS .EXE file (not a .COM file) you'll need to do some fixups to adjust for the actual address the program is loaded into [1][2
by spc476 8y ago
Perhaps for CP/M. Loading an MS-DOS .EXE file (not a .COM file) you'll need to do some fixups to adjust for the actual address the program is loaded into [1][2].
[1] https://github.com/spc476/NaNoGenMo-2015/blob/master/C/msdos.c#L271 https://github.com/spc476/NaNoGenMo-2015/blob/master/C/msdos...
[2] So I could run an old MS-DOS executable and redirect its I/O to the Linux host running the program. Dosbox did not support that feature.
- nineteen999 8y agoSorry I should have clarified: "for a DOS or CP/M workalike which uses ELF binaries" which is what I'm currently working on for fun. That is interesting note about DOS though. CP/M binaries from memory are raw binary images hard coded to be loaded into address 0x100, at least for CPM-80 anyway.