3 ms·
Very interesting! Regarding the sentence: "The first instruction clears the direction flag.", I noticed that cld is the second instruction in the listing, I su
by triska 4y ago
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?
- susam 4y agoThank 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.
- deleted 4y ago[deleted]