Humans can turn anything into a competition. Someone always wants to be faster or drive a ball farther. Technical pursuits are no different, which is why a lot of people overclock or play regular expression golf. [Alok Menghrajani] sets himself some odd challenges. A few years ago, he hand-built a bootable floppy image that had a simple game onboard and managed to fit it in a Twitter message. Twitter has increased their number of characters, so — you guessed it — this time he’s back with a CDROM image.
His tweet is a command line that starts with perl. The text is base64-encoded binary and if you run the Tweet from a shell — which is an odd thing to do with a Tweet, we grant you, you’ll be rewarded with a file called cd.iso. You could burn that to a CDROM, but it is more likely you’ll just mount in a virtual machine and boot that. [Alok] says it does work in QEMU, VirtualBox, and — yes — even a real CD.
This might seem frivolous. The game is certainly nothing spectacular. However, if you want to understand how the ISO9660 standard creates bootable disks (the El Torito extension), you’ll enjoy this fun approach to how it all goes together.
Of course, you could read the standard. A good tip from the post is that while buying a legal copy of the standard is expensive, you can get ECMA 119 which is the same document for free. However, the El Torito specification apparently is pretty hard to read and has typos in it. So seeing a hands-on example is pretty useful.
It is interesting just how short the NASM assembler code for the game and bootloader is. No megabytes of shared GUI libraries here!