flat assembler
Message board for the users of flat assembler.

Index > Windows > arrays

Author
Thread Post new topic Reply to topic
darlok



Joined: 04 Aug 2003
Posts: 4
Location: Tomsk, Russia
darlok 25 Aug 2003, 07:20
I'm interesting on how to easily operate with arrays in fasm? I think that asm has way to do it without macros. In detail, i'm interesting of how to use twodimensional array. I just need something like this:
mov arr[esi][edi],al
But I havent discovered this feature in fasm yet Sad
Thanks beforehand.

_________________
Cheers!
Post 25 Aug 2003, 07:20
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
wanderer



Joined: 18 Jun 2003
Posts: 44
Location: Moldova, Kishinev
wanderer 25 Aug 2003, 09:30
darlok wrote:
I'm interesting on how to easily operate with arrays in fasm? I think that asm has way to do it without macros. In detail, i'm interesting of how to use twodimensional array. I just need something like this:
mov arr[esi][edi],al
But I havent discovered this feature in fasm yet Sad
Thanks beforehand.


You can write mov [arr+esi+edi], al

_________________
Best regards,
Antoch Victor
Post 25 Aug 2003, 09:30
View user's profile Send private message Yahoo Messenger Reply with quote
darlok



Joined: 04 Aug 2003
Posts: 4
Location: Tomsk, Russia
darlok 25 Aug 2003, 09:45
i always learned that i can't do this such an elegently style. Cause i need t multiply edi by size of row. But i can multiply it only on 1,2,4,8. So this question is no more actual...

_________________
Cheers!
Post 25 Aug 2003, 09:45
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv 25 Aug 2003, 14:27
That is because the scale of the sib has only 2^2 values or 1/2/4/8. You cannot do anything about it except to use more than one opcodes.
Post 25 Aug 2003, 14:27
View user's profile Send private message Visit poster's website MSN Messenger 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.