this post was submitted on 18 Jan 2024
763 points (98.6% liked)

Programmer Humor

19606 readers
775 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] timetravel@lemmings.world 21 points 10 months ago (1 children)

May I introduce you to the joys of #define and creating your own horrible sub language

[โ€“] frezik@midwest.social 6 points 10 months ago* (last edited 10 months ago)

That reminds me of an old paper about how to create a compilable C program out of old game ROMs. Decompile to assembly. Implement a bunch of #define statements that implement all the ASM statements. Now compile it to a native binary on whatever platform.

Won't likely be faster or more accurate than regular emulation methods, but it's a neat idea considering that the source code on all this stuff was lost a long time ago.