I have the code below:
.486 ; create 32 bit code
.model flat, stdcall ; 32 bit memory model
option casemap :none ; case sensitive
include \poasm\include\kernel32.inc
includelib \poasm\lib\kernel32.lib
HEXEDIT STRUCT
_font dd ?
colors dd 12 DUP ?
HEXEDIT ENDS
.data
hexed HEXEDIT <>
.code
start:
mov hexed._font, 1
invoke ExitProcess, 0
end start
I know that the code isn't correct, should be [colors dd 12 DUP (?) ]. By pressing Build I expect one or two error reports and guess what I get... Actually the same error is reported far more times than once :tdown - INFINITE LOOP and CPU ~100% usage. ...yep that's what I get. Of course then I must kill poasm process.
Yes, you are right. The infinite loop outputs the message :
error: Invalid use of '{error}'.
The statement
colors dd 12 DUP (?)
solves the problem.