mirror of
https://github.com/irmen/prog8.git
synced 2024-11-22 00:31:56 +00:00
27 lines
413 B
Lua
27 lines
413 B
Lua
%import textio
|
|
|
|
main {
|
|
sub start() {
|
|
myblock.printit()
|
|
myblock2.printit2()
|
|
}
|
|
}
|
|
|
|
myblock {
|
|
sub printit() {
|
|
txt.print_uwhex(&printit, true)
|
|
txt.nl()
|
|
txt.print_uwhex(&myblock, true)
|
|
txt.nl()
|
|
}
|
|
}
|
|
|
|
myblock2 {
|
|
sub printit2() {
|
|
txt.print_uwhex(&printit2, true)
|
|
txt.nl()
|
|
txt.print_uwhex(&myblock2, true)
|
|
txt.nl()
|
|
}
|
|
}
|