fpc/tests/webtbs/tw32150.pp
2017-09-26 20:14:41 +00:00

18 lines
244 B
ObjectPascal

{ %CPU=avr }
{$mode objfpc}
program intmathtest;
// Pointer to caller supplied variable in R24:R25
procedure test(out x: byte); assembler; nostackframe;
asm
movw R30, R24
st Z, R1
ldd r22, z+3
end;
var a8: byte;
begin
test(a8);
end.