DOS (DJGPP) port for drummyfish's [Anarch](https://codeberg.org/drummyfish/Anarch).
- C 96.6%
- Makefile 3.4%
| anarch@eeb04a0797 | ||
| experiments | ||
| .gitmodules | ||
| djgpp_main.c | ||
| keyboard.h | ||
| LICENSE | ||
| make_codes.h | ||
| Makefile | ||
| README.md | ||
| vga.h | ||
Building
Use DJGPP cross-compiler or install DJGPP on dos.
$ make
$ dosbox-x anarch.exe
If DJGPP is not insalled on DOS, you need to download and place the CWSDPMI server executable (CWSDPMI.EXE from csdpmi7b.zip) in the same directory as anarch.exe in order to be able to run it.
To build code that uses SmallerC, you
should build the compiler with -D_MAX_IDENT_TABLE_LEN set to a high value. I
switched to DJGPP because performance of the program compiled by SmallerC was
too low.
TODO
- Sound
Borrowed code
Drawing in unchained mode, page flipping from VGA programming tutorial ("Please feel free to copy this source code");
sleepMs, getTimeMs from anarch-dos by Wuuff (public domain);
vga_on, vga_off, com.ld from DOS Defender (public domain);
Handling keyboard from Handling Interrupts.