prog8/examples/test.p8

32 lines
433 B
Plaintext
Raw Normal View History

%zeropage dontuse
main {
sub start () { foo() derp() other() }
sub foo() { cx16.r0++ }
asmsub derp() { %asm {{ nop }} %ir {{ loadr.b r0,1 }} }
sub other()
{
cx16.r0++
asmother()
asmir()
}
asmsub asmother()
{
%asm
{{
txa
tay
}}
}
asmsub asmir()
{
%ir
{{
loadr.b r0,1
}}
2023-08-01 20:49:55 +00:00
}
}