Strange things allowed in iasm

Basile B. b2.temp at gmx.com
Sun Feb 4 05:45:02 UTC 2018


1/

void foo()
{
     asm pure nothrow
     {
         naked;
         mov RAX, [0x10][0x20] R8;
         ret;
     }
}

generates

;------- SUB 0000000000449468h -------
0000000000449468h  mov eax, 00000030h
000000000044946Dh  ret
;-------------------------------------


2/

void foo()
{
     asm pure nothrow
     {
         naked;
         mov RAX, [R9][R10] R8;
         ret;
     }
}

generates

;------- SUB 0000000000449468h -------
0000000000449468h  mov rax, r8
000000000044946Bh  ret
;-------------------------------------


IASM Parser bug ?


More information about the Digitalmars-d-learn mailing list