S3B4 2026-10-25 07:22
A Quine is a program that prints its own code. I recently learned how to make them when my computer science class covered the Recursion Theorem, so I thought I'd apply it to the language that inspired me to pursue programing in the first place.
The logic is fairly simple: The ROM data contains the main body of code as hex data. The first for loop read it and prints it as text, the second prints it as raw hex numbers.
I'm aware I'm not the first person to do this in NX, as it was actually done way back in 2020 (time flies), but I didn't realize until after I made mine. Still want to share just cuz.