2020-12-27 01:22:18 +00:00
|
|
|
%import textio
|
2021-01-07 19:01:11 +00:00
|
|
|
%import string
|
2021-01-03 01:45:25 +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
|
|
|
|
2021-01-10 15:00:22 +00:00
|
|
|
|
2021-01-13 21:32:17 +00:00
|
|
|
sub start() {
|
2021-01-15 17:46:23 +00:00
|
|
|
str name = "abcdef"
|
|
|
|
|
|
|
|
uword ptr = &name
|
|
|
|
ubyte cc
|
|
|
|
|
|
|
|
cc = @(ptr)
|
|
|
|
txt.chrout(cc)
|
|
|
|
txt.nl()
|
|
|
|
cc = @(ptr+1)
|
|
|
|
txt.chrout(cc)
|
2021-01-14 21:51:09 +00:00
|
|
|
txt.nl()
|
2021-01-15 17:46:23 +00:00
|
|
|
cc = @(ptr+2)
|
|
|
|
txt.chrout(cc)
|
2021-01-14 21:51:09 +00:00
|
|
|
txt.nl()
|
|
|
|
txt.nl()
|
|
|
|
|
2021-01-15 18:52:53 +00:00
|
|
|
|
2021-01-15 17:46:23 +00:00
|
|
|
txt.chrout(@(ptr))
|
|
|
|
txt.chrout(@(ptr+1))
|
|
|
|
txt.chrout(@(ptr+2))
|
2021-01-14 21:51:09 +00:00
|
|
|
txt.nl()
|
2021-01-15 17:46:23 +00:00
|
|
|
|
|
|
|
@(ptr) = '1'
|
|
|
|
@(ptr+1) = '2'
|
|
|
|
@(ptr+2) = '3'
|
|
|
|
txt.print(name)
|
2021-01-14 21:51:09 +00:00
|
|
|
txt.nl()
|
2021-01-15 17:46:23 +00:00
|
|
|
|
|
|
|
cc=0
|
|
|
|
@(ptr+cc) = 'a'
|
|
|
|
@(ptr+cc+1) = 'b'
|
|
|
|
@(ptr+cc+2) = 'c'
|
|
|
|
txt.print(name)
|
2021-01-14 21:51:09 +00:00
|
|
|
txt.nl()
|
2021-01-10 14:15:00 +00:00
|
|
|
}
|
2021-01-05 22:19:37 +00:00
|
|
|
|
2020-08-27 17:47:50 +00:00
|
|
|
}
|