2020-12-27 01:22:18 +00:00
|
|
|
%import test_stack
|
|
|
|
%import textio
|
2020-12-22 23:54:11 +00:00
|
|
|
%zeropage basicsafe
|
2020-12-08 00:02:38 +00:00
|
|
|
%option no_sysinit
|
|
|
|
|
2020-12-08 21:54:20 +00:00
|
|
|
main {
|
2020-12-21 23:59:07 +00:00
|
|
|
|
2020-12-22 04:43:02 +00:00
|
|
|
sub start () {
|
2020-12-27 01:22:18 +00:00
|
|
|
|
|
|
|
thing()
|
|
|
|
thing()
|
|
|
|
thing()
|
|
|
|
thing()
|
|
|
|
thing()
|
|
|
|
test_stack.test()
|
|
|
|
|
|
|
|
sub thing() -> ubyte {
|
|
|
|
uword buffer = memory("buffer", 512)
|
|
|
|
uword buffer2 = memory("buffer", 512)
|
|
|
|
uword buffer3 = memory("cache", 20)
|
|
|
|
|
|
|
|
txt.print_uwhex(buffer, true)
|
|
|
|
txt.chrout('\n')
|
|
|
|
txt.print_uwhex(buffer2, true)
|
|
|
|
txt.chrout('\n')
|
|
|
|
txt.print_uwhex(buffer3, true)
|
|
|
|
txt.chrout('\n')
|
|
|
|
buffer+=$1111
|
|
|
|
buffer2+=$1111
|
|
|
|
buffer3+=$1111
|
|
|
|
txt.print_uwhex(buffer, true)
|
|
|
|
txt.chrout('\n')
|
|
|
|
txt.print_uwhex(buffer2, true)
|
|
|
|
txt.chrout('\n')
|
|
|
|
txt.print_uwhex(buffer3, true)
|
|
|
|
txt.chrout('\n')
|
|
|
|
txt.chrout('\n')
|
|
|
|
return 0
|
|
|
|
}
|
2020-12-03 17:39:32 +00:00
|
|
|
}
|
2020-12-26 00:25:52 +00:00
|
|
|
|
2020-08-27 17:47:50 +00:00
|
|
|
}
|