repe cmpsb instruction
From: Alex (alex_at_alex.com)
Date: 08/30/04
- Next message: yessopotamus: "Re: Listen to this *** :"
- Previous message: Robert Redelmeier: "Re: I think i finally got a definition of an Assembler!"
- Next in thread: The Wannabee: "Re: repe cmpsb instruction"
- Reply: The Wannabee: "Re: repe cmpsb instruction"
- Reply: alex: "Re: repe cmpsb instruction"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 30 Aug 2004 14:26:45 +1000
Hi guys
strange problem here..
here is the scenario, I am trying to compare two strings, my routine
is searching thru the root directory of a floppydisk to find a filename.
string1 db 'KERNEL32SYS' ;same format of name in root dir table
I have ds:esi pointing to string1 and es:edi and pointing to a buffer which
contains the string I am comparing against (string is always 11 characters
long)
(8 charfilename+3byte ext), i find i have to set ecx to 12 for it to check
the whole
string (using repe cmpsb). If i set it to 11, it seems to miss checking the
last character.
I cant understand why though? shouldnt mov ecx,11 be alright?
Alex.
- Next message: yessopotamus: "Re: Listen to this *** :"
- Previous message: Robert Redelmeier: "Re: I think i finally got a definition of an Assembler!"
- Next in thread: The Wannabee: "Re: repe cmpsb instruction"
- Reply: The Wannabee: "Re: repe cmpsb instruction"
- Reply: alex: "Re: repe cmpsb instruction"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]