C++ dosbox-staging Projects
-
dosbox-staging
DOSBox Staging is a modern continuation of DOSBox with advanced features and current development practices.
I believe it is a bug in the the emulator's implementation of COMMAND.COM. Often, these DOS "emulators" re-implement the standard commands of DOS, including the shell[1]. This is in addition to emulating weird 16-bit environment stuff and the BIOS.
The bug lies in any C program using stdio that assumes it's fine to do `fread` followed immediately by `fwrite`. The spec forbids this.
To make matters more confusing, this behavior does _not_ seems to be in modern libc implementations. Or at least, it works on my machine.
The original COMMAND.COM from MS-DOS probably did not have this problem, since at least in some versions it was written in assembly[2].
[1] Here's DOSBox, for example: https://github.com/dosbox-staging/dosbox-staging/blob/main/s...
[2] MS-DOS 4.0: https://github.com/microsoft/MS-DOS/tree/main/v4.0/src/CMD/C...
-
CodeRabbit
CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
C++ dosbox-staging discussion
Index
# | Project | Stars |
---|---|---|
1 | dosbox-staging | 1,401 |