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