bug0276.pp 361 B

1234567891011121314151617181920212223
  1. {$asmmode intel}
  2. type
  3. trec = record
  4. ypos,
  5. xpos : longint;
  6. end;
  7. z80cont = record
  8. page: array [0..11,0..16383] of byte;
  9. end;
  10. var
  11. rec : tRec;
  12. myz80 : z80cont;
  13. begin
  14. asm
  15. lea edi, Rec
  16. cmp byte ptr [edi+tRec.Xpos], true
  17. cmp byte ptr [edi].trec.Xpos, true
  18. mov dh,byte ptr myz80.page[ecx]
  19. end;
  20. end.