Ver Fonte

+ also support constants like 'dd [5]' in the intel syntax inline asm (for BP7
compatibility)

git-svn-id: trunk@38855 -

nickysn há 7 anos atrás
pai
commit
8a32d7c663
2 ficheiros alterados com 2 adições e 0 exclusões
  1. 1 0
      compiler/x86/rax86int.pas
  2. 1 0
      tests/test/tasm27.pp

+ 1 - 0
compiler/x86/rax86int.pas

@@ -2773,6 +2773,7 @@ Unit Rax86int;
             AS_NOT,
             AS_INTNUM,
             AS_OFFSET,
+            AS_LBRACKET,
 {$ifdef i8086}
             AS_SEG,
 {$endif i8086}

+ 1 - 0
tests/test/tasm27.pp

@@ -23,6 +23,7 @@ asm
   dd 5[7]                       { dd 12 }
   dd 5+[7]                      { dd 12 }
   dd 5-[7]                      { dd -2 }
+  dd [5]                        { dd 5 }
 end;
 
 begin