flat assembler
Message board for the users of flat assembler.
Index
> Windows > Bug in DLL example - won't compile |
Author |
|
ejamesr 15 Feb 2011, 07:28
I copied the 'display' example from the documentation (section 2.2.5) into the ERRORMSG.ASM example file that comes with version 1.69.31. FASM displays the message "Error: invalid expression" at line 19 for the command:
d = '0' + $ shr (bits-%*4) and 0Fh If I comment our the rest of the line after after "d = '0'" then it compiles - but of course, then it doesn't produce the desired answer. In a new blank .asm file, the entire display example works fine. Here's the example code, pulled directly from the documentation: Code: bits = 16 display 'Current offset is 0x' repeat bits/4 d = '0' + $ shr (bits-%*4) and 0Fh if d > '9' d = d + 'A'-'9'-1 end if display d end repeat display 13,10 Can anyone else confirm this problem? Is this a known bug? Or did I do something wrong? I've attached the asm file. Thank you, Eric
|
|||||||||||
15 Feb 2011, 07:28 |
|
SFeLi 15 Feb 2011, 15:23
Code: virtual dd $ load x dword from $-4 end virtual ; then you can display x, but read revolution's post first. |
|||
15 Feb 2011, 15:23 |
|
ejamesr 15 Feb 2011, 15:37
Revolution and SFeLi,
Thank you for your responses. I'll work on this some more, taking into account your information and suggestions. Eric |
|||
15 Feb 2011, 15:37 |
|
revolution 15 Feb 2011, 15:42
SFeLi wrote:
|
|||
15 Feb 2011, 15:42 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.