2023-08-07 19:56:02 +00:00
|
|
|
%zeropage dontuse
|
2023-07-15 20:19:48 +00:00
|
|
|
|
2023-07-24 22:43:45 +00:00
|
|
|
main {
|
2023-08-09 18:01:12 +00:00
|
|
|
sub start () { foo() derp() other() }
|
|
|
|
sub foo() { cx16.r0++ }
|
|
|
|
asmsub derp() { %asm {{ nop }} %ir {{ loadr.b r0,1 }} }
|
2023-08-07 21:56:57 +00:00
|
|
|
|
2023-08-09 18:01:12 +00:00
|
|
|
sub other()
|
|
|
|
{
|
|
|
|
cx16.r0++
|
|
|
|
asmother()
|
|
|
|
asmir()
|
|
|
|
}
|
2023-08-07 21:56:57 +00:00
|
|
|
|
2023-08-09 18:01:12 +00:00
|
|
|
asmsub asmother()
|
|
|
|
{
|
|
|
|
%asm
|
|
|
|
{{
|
|
|
|
txa
|
|
|
|
tay
|
|
|
|
}}
|
|
|
|
}
|
2023-08-07 21:56:57 +00:00
|
|
|
|
2023-08-09 18:01:12 +00:00
|
|
|
asmsub asmir()
|
|
|
|
{
|
|
|
|
%ir
|
|
|
|
{{
|
|
|
|
loadr.b r0,1
|
|
|
|
}}
|
2023-08-01 20:49:55 +00:00
|
|
|
}
|
2023-07-10 20:03:48 +00:00
|
|
|
}
|