HNHacker News
TopNewBestAskShowJobs

qx89l4

63 karma · joined April 21, 2015

submissionscomments
qx89l4··on Show HN: 8086/8088 assembler that runs over 8088 hardware with modern syntax
Awesome project, congrats!
qx89l4··on Show HN: A simple way to write standalone C programs for i386
I "discovered" DOS 25 years ago, not sure what's your point?
qx89l4··on Show HN: A simple way to write standalone C programs for i386
Hadn't heard of them, thanks for the links!
qx89l4··on Show HN: A simple way to write standalone C programs for i386
Good point, OpenWatcom is obviously miles ahead of Turbo C, but it's also much more complex. I tinkered with it for a while, and ended up using the latter for its simplicity.

DOSBox can be easily installed on any system, you can save the entire C: in a git repo and it'll probably keep working in any number of years from now :)

Meanwhile, OWC doesn't have packages in popular Linux distros, only a custom binary installer, and on MacOS it doesn't even have that.

qx89l4··on Show HN: A simple way to write standalone C programs for i386
Targeting 8086-level of instructions was actually my first idea. It wasn't possible with gcc/clang, but Turbo C is freeware these days, so... ;) In case you're interested, see https://github.com/luke8086/nf/
qx89l4··on Show HN: A simple way to write standalone C programs for i386
I'm not sure if defaulting to 32-bit instructions would still allow calling BIOS, but good point!

In this case the design goal was to show the easiest way to jump into C and start building the actual application, so I just tried to avoid any trickery (even enabling the A20 line)

qx89l4··on Show HN: A simple way to write standalone C programs for i386
I feel your pain, so sorry that you still need to support the .code16gcc hack! My first approach was actually to avoid GCC/clang altogether, and use Turbo C instead. It came with its own set of problems, but the output was much more predictable. In case you're interested, you can find the code at https://github.com/luke8086/nf
qx89l4··on BootOS: Monolithic operating system in 512 bytes of x86 machine code
> Also seems he has just self-published a book (as of July 27):

> Do you would like more details on the inner workings? This program is fully commented in my new book Programming Boot Sector Games and you'll also find a 8086/8088 crash course!

I created one such game [1] a few years ago and had plenty of fun. I'm pretty shocked to see an actual book published specifically about this niche topic. I haven't read it, but I hope it gets some recognition, because IMO toying with 8086 is one of the best ways to get into bare-metal coding.

[1] https://github.com/qx89l4/utris