2021-05-30 13:30:34 +00:00
|
|
|
%import textio
|
2021-06-02 23:42:11 +00:00
|
|
|
%zeropage dontuse
|
2021-05-29 13:25:17 +00:00
|
|
|
|
2021-06-01 20:21:50 +00:00
|
|
|
main {
|
2021-06-12 13:48:04 +00:00
|
|
|
|
2021-06-12 15:31:09 +00:00
|
|
|
label:
|
|
|
|
sub start() {
|
2021-06-12 13:48:04 +00:00
|
|
|
|
2021-06-12 15:31:09 +00:00
|
|
|
sub2(&label)
|
|
|
|
sub2(&label_local)
|
|
|
|
sub2(&main.sub2.label_in_sub2)
|
|
|
|
uword xx = &label_local
|
|
|
|
txt.print_uwhex(xx, true)
|
|
|
|
txt.nl()
|
|
|
|
xx = &label
|
|
|
|
txt.print_uwhex(xx, true)
|
|
|
|
txt.nl()
|
|
|
|
xx = &main.label
|
|
|
|
txt.print_uwhex(xx, true)
|
|
|
|
txt.nl()
|
|
|
|
xx = &main.sub2.label_in_sub2
|
|
|
|
txt.print_uwhex(xx, true)
|
|
|
|
txt.nl()
|
|
|
|
xx = main.sub2.sub2var
|
|
|
|
txt.print_uwhex(xx, true)
|
|
|
|
txt.nl()
|
|
|
|
xx = &main.start.label_local
|
|
|
|
txt.print_uwhex(xx, true)
|
|
|
|
txt.nl()
|
|
|
|
|
|
|
|
label_local:
|
|
|
|
return
|
2021-05-29 22:25:47 +00:00
|
|
|
}
|
|
|
|
|
2021-06-12 15:31:09 +00:00
|
|
|
sub sub2(uword ad) {
|
|
|
|
uword sub2var = 42
|
2021-05-29 22:25:47 +00:00
|
|
|
|
2021-06-12 15:31:09 +00:00
|
|
|
txt.print_uwhex(ad,true)
|
|
|
|
txt.nl()
|
|
|
|
label_in_sub2:
|
|
|
|
txt.nl()
|
2021-05-15 22:14:57 +00:00
|
|
|
}
|
2021-05-12 22:35:22 +00:00
|
|
|
}
|