prog8/examples/test.p8

27 lines
410 B
Plaintext
Raw Normal View History

main {
2023-02-03 23:02:50 +00:00
sub start() {
2023-02-03 23:02:50 +00:00
cx16.r0 = memory("slab", $c000, 0)
cx16.r1 = memory("slab", $c000, 0)
2023-02-02 23:27:50 +00:00
testscope.duplicate()
cx16.r0L = testscope.duplicate2()
}
}
testscope {
sub sub1() {
ubyte @shared duplicate
ubyte @shared duplicate2
}
2023-01-25 00:57:25 +00:00
2023-02-02 23:27:50 +00:00
sub duplicate() {
; do nothing
2023-01-22 16:10:36 +00:00
}
2023-02-02 23:27:50 +00:00
sub duplicate2() -> ubyte {
return cx16.r0L
}
}