flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > fst to tword

Author
Thread Post new topic Reply to topic
Kicer



Joined: 30 Apr 2005
Posts: 34
Location: Poland
Kicer 01 Jun 2005, 12:58
why I can load fpu register from tword data but I can't store to it??
example:

Code:
fld [ds:real10]
fst [ds:real10]

real10 dt 0e0
    

first line is compiling second isn't
Post 01 Jun 2005, 12:58
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 01 Jun 2005, 13:05
Only FSTP instruction has the 80-bit operand variant.
Post 01 Jun 2005, 13:05
View user's profile Send private message Visit poster's website Reply with quote
Kicer



Joined: 30 Apr 2005
Posts: 34
Location: Poland
Kicer 01 Jun 2005, 13:23
I would never thougt.......
btw it's funny that fpu can't save register without poping it....
Post 01 Jun 2005, 13:23
View user's profile Send private message Reply with quote
Matrix



Joined: 04 Sep 2004
Posts: 1166
Location: Overflow
Matrix 01 Jun 2005, 14:48
Hy Kicer
well these fpus are funny things, fpu is independent from cpu,
the only thing you can access directly is the status in accumulator.

if you can time the codes well,
cpu and fpu instructions can run in parallel/simultaniously.
Post 01 Jun 2005, 14:48
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.