tw32150.pp 229 B

12345678910111213141516
  1. { %CPU=avr }
  2. {$mode objfpc}
  3. program intmathtest;
  4. // Pointer to caller supplied variable in R24:R25
  5. procedure test(out x: byte); assembler; nostackframe;
  6. asm
  7. movw R30, R24
  8. st Z, R1
  9. end;
  10. var a8: byte;
  11. begin
  12. test(a8);
  13. end.