flat assembler
Message board for the users of flat assembler.

Index > Main > Problem with mov

Author
Thread Post new topic Reply to topic
marek



Joined: 21 Mar 2008
Posts: 5
marek
Hi all,

what is wrong with the instruction:

mov al, [cx] ; cx points to the first char of some string

I get the error: "Error: Reserved word used as symbol".

Thanks,
Marek.
Post 25 Mar 2008, 12:29
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17714
Location: In your JS exploiting you and your system
revolution
In 16 bit code CX is not available as an address register.

Use [DI], [SI], [BP], or [BX]. Also [SI+BX], [SI+BP], [DI+BX], and [DI+BP].

Anything with BP always defaults to using the SS segment and the others default to DS.
Post 25 Mar 2008, 12:37
View user's profile Send private message Visit poster's website 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.