[HN Gopher] x86 Quine: These 12 Bytes of Machine Code Print Them...
       ___________________________________________________________________
        
       x86 Quine: These 12 Bytes of Machine Code Print Themselves (2005)
        
       Author : susam
       Score  : 10 points
       Date   : 2022-12-04 11:55 UTC (11 hours ago)
        
 (HTM) web link (susam.net)
 (TXT) w3m dump (susam.net)
        
       | triska wrote:
       | Very interesting!
       | 
       | Regarding the sentence: _" The first instruction clears the
       | direction flag."_, I noticed that _cld_ is the _second_
       | instruction in the listing, I suppose that is a small mistake in
       | the article?
        
         | [deleted]
        
         | susam wrote:
         | Thank you for writing this comment about the inconsistency
         | between the description of the program and the disassembly
         | output. The first byte of the 12-byte program presented at the
         | top is 0xFC which is the opcode of the CLD instruction, so
         | indeed the first instruction clears the direction flag.
         | 
         | It is the disassembly that was inaccurate. It seems I had the
         | disassembly of a slightly different version of the program in
         | this post. I used the 12 bytes at the top of this post to
         | recreate the .COM file just now and I have updated the post
         | with the corresponding disassembly. It should now be accurate.
         | Thank you, once again, for noticing this issue and commenting
         | about it here.
        
       ___________________________________________________________________
       (page generated 2022-12-04 23:00 UTC)