forward-referenced TYPE variable
Brought to you by:
japheth
In the following code, only the second MOV instruction throws error "Operands must be the same size: 4 - 8". IMO, also the first should throw the error.
Assemble with jwasm -win64.
.CODE start: mov eax, (TYPE haloed) PTR [haloed] haloed dq 0 mov eax, (TYPE haloed) PTR [haloed] END
I'm sorry, it's not a bug, if I fix the second instruction, error is thrown on the first instruction as expected. Doh.
Yes, this is an assembler "pass" problem: the first error can only be detected in pass two, but jwasm will stop after the first pass already, because of the second error.