I was reading the FASM manual and found this:
repe cmpsb ;COMPARE [ES:DI] and [DS:SI] until CX = 0
but can i use this???????????:
repe cmps byte [ds:si], [ds:di]
bye

Code: Select all
CMPS byte ptr ES:[DI], byte ptr DS:[SI] ; or CMPSB
CMPS word ptr ES:[DI], word ptr DS:[SI] ; or CMPSW
Code: Select all
REPE CMPSB
Code: Select all
PUSH DS
POP ES
REPE CMPSB