'A clear way to check for the current string in assembly, like stosb

mov [es:di], al

can be replaced with

stosb
dec di

is there a replacement for

cmp byte [es:di], al

or

cmp byte [es:di], 'x'

in general?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source