flat assembler
Message board for the users of flat assembler.

Index > Main > fbstp destination question

Author
Thread Post new topic Reply to topic
shoorick



Joined: 25 Feb 2005
Posts: 1614
Location: Ukraine
shoorick 04 Dec 2006, 10:17
there is ok:
Code:
    lea ecx,[a_buff + 10]
    fbstp [ecx]
    

there is wrong:
Code:
    fbstp [a_buff + 10]
error: invalid size of operand.
    

is it possible to specify direct memory operand and how if yes?
thnx

_________________
UNICODE forever!
Post 04 Dec 2006, 10:17
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 04 Dec 2006, 11:08
i bet you have some size assigned with "a_buff". If you don't have proper size operator, you can do something like this:

Code:
label x at a_buff
fbstp [x+10]    


i know, ugly Sad
Post 04 Dec 2006, 11:08
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
shoorick



Joined: 25 Feb 2005
Posts: 1614
Location: Ukraine
shoorick 04 Dec 2006, 11:13
really: a_buff is rb
with your help i solved with this:
...
f_buff:
a_buff rb 520
...
fbstp [f_buff]

it was test situation, but i'd wish to have clear solution for one
thnx
Post 04 Dec 2006, 11:13
View user's profile Send private message Visit poster's website Reply with quote
shoorick



Joined: 25 Feb 2005
Posts: 1614
Location: Ukraine
shoorick 04 Dec 2006, 11:46
well, proper way:

fbstp tbyte [a_buff]

Smile
Post 04 Dec 2006, 11:46
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.