flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Creator
cmp [ebx],100h ; <==== ERROR: Operand size not specified.
BUT, IF use struct: struct q z dd ? ends ... cmp [ebx+q.z],100h ; <==== OK |
|||
![]() |
|
Tomasz Grysztar
It's not a bug, it's a feature (and try the same with "cmp [ebx+q.z],al").
|
|||
![]() |
|
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.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.