flat assembler
Message board for the users of flat assembler.

Index > MenuetOS > MOVSB confusion..

Author
Thread Post new topic Reply to topic
instinKt



Joined: 18 Dec 2003
Posts: 2
instinKt 21 Dec 2003, 11:24
From the documentation....

\c{MOVSB} copies the byte at \c{[ES:DI]} or \c{[ES:EDI]} to
\c{[DS:SI]} or \c{[DS:ESI]}. It then increments or decrements
(depending on the direction flag: increments if the flag is clear,
decrements if it is set)

Is this a mistake? Logic would tell me that MOVSB would take the source ESI and place it in the destination EDI. And I have code that seems to work that way.

What made me look at the documentation was I have a function that I recently made use MOVSB and it didn't seem to be working correctly. Although I have other functions that work perfectly with this using the opposite of what the doc says.
Post 21 Dec 2003, 11:24
View user's profile Send private message Reply with quote
Ville



Joined: 17 Jun 2003
Posts: 303
Ville 21 Dec 2003, 11:30
I've been using ESI as a source and EDI as the destination Razz There must be a bug in the ( nasm ) documentation. I'll change it..
Post 21 Dec 2003, 11:30
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.