Hello, thanks for reading my topic...
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
REPE and CMPS
- Masterkiller
- Member
- Posts: 153
- Joined: Sat May 05, 2007 6:20 pm
According to the Intel Instruction Set the instruction is:
No way to use other operands. This is integrated in processor architecture.
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
You can simply put:
Those operands are optional.
Code: Select all
REPE CMPSB
On the field with sword and shield amidst the din of dying of men's wails. War is waged and the battle will rage until only the righteous prevails.
you could
Code: Select all
PUSH DS
POP ES
REPE CMPSB