bug0153.pp 353 B

1234567891011121314151617
  1. {$asmmode att}
  2. procedure asmfunc(p:pointer);assembler;
  3. asm
  4. {
  5. this is changed into movl %eax,(%ebx+8) which is not correct, and tp7
  6. also doesn't allow 'mov p[bx],ax' or 'mov p+bx,ax'
  7. Solution: for parameters and locals the index must be turned off
  8. Don't forget to check the intel assembler also
  9. }
  10. movl %eax,p(%ebx)
  11. end;
  12. begin
  13. end.