2 ms·
In the SCAS/CMPS annotated microcode, the path with the R DS microinstruction is for CMPS, not SCAS. SCAS compares AX against [ES:DI] while CMPS compares [DS:S
by bonzini 4y ago
In the SCAS/CMPS annotated microcode, the path with the R DS microinstruction is for CMPS, not SCAS.
SCAS compares AX against [ES:DI] while CMPS compares [DS:SI] against [ES:DI], so the paragraph before is slightly incorrect (should be "SCAS compares against the character in the accumulator, while CMPS reads the comparison character from SI").
- kens 4y agoThanks, I've fixed the post.