flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
madmatt
Having problems with fstenv instruction using local variables for storage, when I do this:
local fpuenvtemp[28]:BYTE fstenv [fpuenvtemp] I get an "invalid size of operand" |
|||
![]() |
|
vid
try searching first next time
|
|||
![]() |
|
LocoDelAssembly
|
|||
![]() |
|
madmatt
vid: Yeh, I should've checked the intel docs before I posted, it only accepts a global (static) memory reference to work.
locodelassembly: after reading the post, looks like a $66 prefix is all that is needed a make it work, I'll have to try and see what happens. |
|||
![]() |
|
madmatt
Tried a direct approach: fstenv [esp + 48], also fstenv [ebp _48] and it compiled without error.
Why won't it work with the local variable? |
|||
![]() |
|
LocoDelAssembly
Quote:
But you can use the stack if you want Code: include 'win32axp.inc' .code proc start local ..fpuenvtemp[28]:BYTE label .fpuenvtemp at ..fpuenvtemp fstenv [.fpuenvtemp] ret endp .end start [edit] Quote: Tried a direct approach: fstenv [esp + 48], also fstenv [ebp _48] and it compiled without error. Because fstenv needs a label with no type[/edit] |
|||
![]() |
|
vid
i meant searching the board, for that thread - i was too lazy to explain it or search for the thread myself
![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.