flat assembler
Message board for the users of flat assembler.

Index > Main > Question about base and index addressing

Author
Thread Post new topic Reply to topic
Stark



Joined: 13 Jan 2004
Posts: 1
Location: Samara city, Russia
Stark 13 Jan 2004, 09:14
I want to portable my tasm progs to fasm.
In tasm I use:
mov al, array_b[cx-1]

And in fasm:
mov al, [array_b+cx-1]

But I recive this error message:
error: reserved word used as symbol.

But when I use mov al,[array_b+di-1] - all Ok.

How to solve this very little problem? Shocked
Post 13 Jan 2004, 09:14
View user's profile Send private message Reply with quote
Dryobates



Joined: 13 Jul 2003
Posts: 46
Location: Poland
Dryobates 13 Jan 2004, 09:44
Are you sure that it was with cx? You can use only bx, si and di (even in TASM or any other asm on x86)
Post 13 Jan 2004, 09:44
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv 13 Jan 2004, 12:51
I amazed that instruction could be assembled. Could you paste the hex values for the instruction?
Post 13 Jan 2004, 12:51
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 13 Jan 2004, 13:11
roticv wrote:
I amazed that instruction could be assembled. Could you paste the hex values for the instruction?


Maybe TASM assemble this [cx] as [ecx]. There is imposible to use 16 bit CX for addressing.

Regards.
Post 13 Jan 2004, 13:11
View user's profile Send private message Visit poster's website ICQ Number 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.