flat assembler
Message board for the users of flat assembler.

Index > Main > how to code rep movsb

Author
Thread Post new topic Reply to topic
nop



Joined: 01 Sep 2008
Posts: 165
Location: right here left there
nop
how to code rep movsb to use 32-bit registers Question iv seen it somewhere but cant remember i hav to go out now but i be bak tomoro many thanks

ps i want movsb not movsw or movsd but i want it to use es:edi ds:esi and ecx for counter
Post 12 Jan 2013, 00:26
View user's profile Send private message Reply with quote
HaHaAnonymous



Joined: 02 Dec 2012
Posts: 1180
Location: Unknown
HaHaAnonymous
[ Post removed by author. ]


Last edited by HaHaAnonymous on 28 Feb 2015, 22:02; edited 1 time in total
Post 12 Jan 2013, 00:52
View user's profile Send private message Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr
nop,

Use address-size prefix 0x67 to choose non-default address size. FASM can do it for you using explicit operands (i.e. rep movs byte [es:edi], byte [ds:esi]).

When in doubt, RTFM.
Post 12 Jan 2013, 07:06
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 cannot attach files in this forum
You can download files in this forum


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

Website powered by rwasa.