4 ms·
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 prog
by susam 4y ago
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.