Browse Source

* disabled pic
* mark eax as used in assembler block in main program

git-svn-id: trunk@32689 -

Jonas Maebe 9 years ago
parent
commit
0df558af36
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tests/webtbs/tw29096.pp

+ 2 - 1
tests/webtbs/tw29096.pp

@@ -10,6 +10,7 @@ program asm_bug;
 {$CODEALIGN VARMAX=1}
 {$CODEALIGN VARMAX=1}
 {$CODEALIGN CONSTMIN=1}
 {$CODEALIGN CONSTMIN=1}
 {$CODEALIGN CONSTMAX=1}
 {$CODEALIGN CONSTMAX=1}
+{$PIC off}
 {$ENDIF}
 {$ENDIF}
 
 
 {$ALIGN 1}
 {$ALIGN 1}
@@ -117,7 +118,7 @@ ASM
   mov [c2] , 2
   mov [c2] , 2
   mov [c1] , 1
   mov [c1] , 1
   mov [c0] , 0
   mov [c0] , 0
-end;
+end ['eax'];
    writeln(c0:3,c1:3,c2:3,c3:3, '    must be:[0 1 2 3] glo');  //___
    writeln(c0:3,c1:3,c2:3,c3:3, '    must be:[0 1 2 3] glo');  //___
    if (c0<>0) or
    if (c0<>0) or
       (c1<>1) or
       (c1<>1) or