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

Programmer Humor

19166 readers
575 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
762
ifn't (programming.dev)
submitted 8 months ago by JPDev to c/programmer_humor
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 21 points 8 months ago (1 children)

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

[โ€“] [email protected] 6 points 8 months ago* (last edited 8 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.