flat assembler
Message board for the users of flat assembler.

Index > Main > fsave command

Author
Thread Post new topic Reply to topic
EvilsInterrupt



Joined: 02 Jul 2006
Posts: 8
Location: Russia
EvilsInterrupt
I am wrote:

; section code

fsave fpuenv

; section data

fpuenv db 112 dup (0)

Code:
flat assembler  version 1.66
c:\tmp\visigoth\protect\protect.asm [15]:
        fsave   fpuenv
error: invalid operand.    


How can I do it ?

P.S.:
Sorry my English

_________________
In code Veritas! (lat.)
Post 02 Jul 2006, 08:17
View user's profile Send private message ICQ Number Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
Code:
fsave [fpuenv]

fpuenv: rb 112    

1. fsave needs not memory address (eg. not number or label), but contents of memory (eg number or label in []s). This is really not very well explained in manual.

2. fpuenv label can't have assigned size (fpuenv rb 112), because this way, when you write "[fpuenv]", it means "byte [fpuenv]". So you must use ":", this way "fpuenv" doesn't have any size assigned, so "fsave" can use any size it wants.

fsave beheaves this strange because it requires very specific size, which doesn't have it's own operator.

PS: little english tutorial:
"I am wrote" -> "I wrote", "I have written"
"Sorry FOR my english"
Wink
Post 02 Jul 2006, 08:37
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
EvilsInterrupt



Joined: 02 Jul 2006
Posts: 8
Location: Russia
EvilsInterrupt
2 vid:

Tnx.

P.S.:
-(eg. not number or label)-
eg. - ?
Post 02 Jul 2006, 08:54
View user's profile Send private message ICQ Number Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2140
Location: Estonia
Madis731
eg, ie,.... => 'for example' Very Happy
Post 02 Jul 2006, 09:08
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
MazeGen



Joined: 06 Oct 2003
Posts: 977
Location: Czechoslovakia
MazeGen
You're wrong:

e.g. means exempli gratia, "For example".

i.e. means id est, "That is (to say)", "in other words", or sometimes "in this case", depending on the context. Never equivalent to exempli gratia (e.g.).
Post 02 Jul 2006, 09:19
View user's profile Send private message Visit poster's website Reply with quote
EvilsInterrupt



Joined: 02 Jul 2006
Posts: 8
Location: Russia
EvilsInterrupt
Tnx
Post 02 Jul 2006, 09:35
View user's profile Send private message 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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.