A self-printing machine code program that writes itself to standard output when executed in a DOS environment. It can be tested in a Unix/Linux system with DOSBox or in an actual MS-DOS 6.22 system or Windows 98 system. The program uses x86 machine code and DOS services to write its own bytes. There is a discussion on the definition of a quine and the differences between machine code quines and other quines. The program can also be modified to avoid reading its own bytes and still print itself.

19m read timeFrom susam.net
Post cover image
Table of contents
ContentsDemoQuine ConundrumsProper QuinesA Note on DOS ServicesWriting to Video Memory DirectlyBoot Program

Sort: