Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think people overestimate the value of 'portable' code. Even with C or other higher level languages you often have to code around platform specific problems or jump through hoops for platform specific optimizations. Regardless, if you understand what the code is doing then re-writing it for a different platform is pretty trivial, and isn't rewriting code the favorite sport of programmers anyway?

Granted it is not a modern-style piece of software, but look at David Murray's Attack of the PETSCII Robots: originally hand-written in 6502 assembly for the Commodore PET and since ported to something like 20 different platforms, many of which have wildly different video and audio hardware and several of which use a completely different processor.



This exactly. In the 80s, it was common practice to write in macro assembler, which would then be translated to the target ISA.

Microsoft wrote BASIC and others significant software in such a way.

https://devblogs.microsoft.com/commandline/microsoft-open-so...

Also compilers are hungry, wasteful, complex piece of codes fairly unsuited for 8 bits and 16 bits machines. DOS games started being written in C only when the 386 got commonplace.

Heck, even on 32 bits machines of the times (VAX), most things were written in pure assembly. That includes VMS.


Turbo Pascal wasn't bad at all for the 8088.


Granted, Turbo Pascal was nice for small CP/M and DOS machines, at least until version 3 when the IDE was still ~30kB and could fit in 64kB of RAM.

When TP4 and Turbo C were introduced with their full TUI environment, the 8088 started to struggle.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: