flat assembler
Message board for the users of flat assembler.

Index > Windows > newbie question on fpu

Author
Thread Post new topic Reply to topic
dacid



Joined: 31 Aug 2008
Posts: 57
dacid
how can i use fild with bytes?

fild byte ptr [esi]

gives me 'illegal size'
Post 26 Dec 2008, 17:52
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
Only words, dwords and qwords are allowed so you will need to do something like this:
Code:
movzx eax, byte [address] ; Or "movsx eax, byte [address]" if it is a signed byte
push  eax
fild  dword [esp]
pop   eax    
Post 26 Dec 2008, 18:18
View user's profile Send private message Reply with quote
dacid



Joined: 31 Aug 2008
Posts: 57
dacid
thx!
Post 26 Dec 2008, 22:51
View user's profile Send private message 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.