flat assembler
Message board for the users of flat assembler.

Index > Main > Bug or not ?

Author
Thread Post new topic Reply to topic
Creator



Joined: 28 Apr 2006
Posts: 1
Creator
cmp [ebx],100h ; <==== ERROR: Operand size not specified.

BUT, IF use struct:

struct q
z dd ?
ends

...

cmp [ebx+q.z],100h ; <==== OK
Post 28 Apr 2006, 18:33
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7737
Location: Kraków, Poland
Tomasz Grysztar
It's not a bug, it's a feature (and try the same with "cmp [ebx+q.z],al").
Post 28 Apr 2006, 19:05
View user's profile Send private message Visit poster's website Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
In the first case FASM can't know if ebx points to a word or a dword. In the second case FASM knows that ebx+q.z is a dword because q.z is a defined dword.
Post 28 Apr 2006, 19:08
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 YouTube, Twitter.

Website powered by rwasa.