tw8195b.pp 400 B

1234567891011121314151617181920212223242526
  1. { %cpu=i386 }
  2. {$APPTYPE CONSOLE}
  3. {$ifdef fpc}
  4. {$mode delphi}
  5. {$endif}
  6. function Expression1: Integer;
  7. asm
  8. // mov eax, 4 * 3 - 2 + (-1) / 2
  9. end;
  10. function Expression2: Integer;
  11. asm
  12. mov eax, NOT 4 OR 3 AND 2 XOR 1 MOD 6 SHL 4 SHR 2
  13. end;
  14. begin
  15. WriteLn('Expression1: ', Expression1);
  16. WriteLn('Expression2: ', Expression2);
  17. if (Expression1<>10) or (Expression2<>-1) then
  18. halt(1);
  19. end.