tw18113.pp 318 B

12345678910111213141516171819202122
  1. { %target=go32v2 }
  2. { %interactive }
  3. { check whether this program writes '*' }
  4. Procedure Confuse;
  5. begin
  6. end;
  7. Procedure TestBug(chr:word);
  8. begin
  9. Confuse; {if you comment it, everything is fine even in Level 2}
  10. Mem[$B800:0]:=byte(chr);
  11. end;
  12. begin
  13. writeln(#13#10#13#10);
  14. TestBug(42); {should print '*'}
  15. readln;
  16. end.