4 ms·
This seems fairly focused on Windows? Would be interested to see some Linux stuff.
by bencollier49 10y ago
This seems fairly focused on Windows? Would be interested to see some Linux stuff.
- userbinator 10y agoIt's not Windows but MS-DOS, which allows for pure binary executables (COM format) that are nothing but instructions. Thus even a single-byte file is executable (C3, RET - i.e. exit immediately.) AFAIK Linux has a higher minimum size, as the ELF header alone has to be at least 45 bytes: http://www.muppetlabs.com/~breadbox/software/tiny/teensy.html http://www.muppetlabs.com/~breadbox/software/tiny/teensy.htm...
- swiley 10y agoOne could write a com loader for Linux pretty easily.
- JoshTriplett 10y agocom programs assume they run on DOS, so you might as well use dosbox for that. Linux supports some other executable formats for embedded systems, but they don't have much less overhead than ELF.
- bencollier49 10y agoThe problem is that a lot of the demo programs are hooking Int 21h, which is provided by DOS / Windows.
- mlvljr 10y agoWould it run 16 bit code under x64 Linux (w/o any translation / emulation)? As Windows can't do it (only x32 versions can), thus wondering, if this is a CPU limitation.
- avian 10y agoIndeed https://github.com/avian2/linux-com-loader https://github.com/avian2/linux-com-loader
- bencollier49 10y agoMy point was around the DOS Int 21h, really. But I see what you mean about the file format.
- _c_ 10y agoUse int 80h for UNIX