Menu

#267 forward-referenced TYPE variable

generic
wont-fix
japheth
None
5
2013-09-14
2013-05-16
MazeGen
No

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

Discussion

  • MazeGen

    MazeGen - 2013-05-16

    I'm sorry, it's not a bug, if I fix the second instruction, error is thrown on the first instruction as expected. Doh.

     
  • japheth

    japheth - 2013-05-16

    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.

     
  • japheth

    japheth - 2013-09-14
    • status: open --> wont-fix
     

Log in to post a comment.