2023-06-27 21:30:37 +00:00
|
|
|
%import textio
|
2023-06-27 16:49:49 +00:00
|
|
|
%zeropage basicsafe
|
2023-06-26 23:59:22 +00:00
|
|
|
|
2023-06-27 16:49:49 +00:00
|
|
|
main {
|
|
|
|
sub start() {
|
2023-07-02 01:57:42 +00:00
|
|
|
uword count = 255
|
2023-07-02 00:38:35 +00:00
|
|
|
cx16.r0 = 0
|
2023-07-02 01:57:42 +00:00
|
|
|
repeat count {
|
2023-07-02 00:38:35 +00:00
|
|
|
cx16.r0++
|
|
|
|
}
|
|
|
|
txt.print_uw(255)
|
|
|
|
txt.spc()
|
|
|
|
txt.print_uw(cx16.r0)
|
|
|
|
txt.nl()
|
2023-06-27 21:30:37 +00:00
|
|
|
|
2023-07-02 01:57:42 +00:00
|
|
|
count=256
|
|
|
|
repeat count {
|
2023-07-02 00:38:35 +00:00
|
|
|
cx16.r0++
|
|
|
|
}
|
|
|
|
txt.print_uw(255+256)
|
|
|
|
txt.spc()
|
|
|
|
txt.print_uw(cx16.r0)
|
|
|
|
txt.nl()
|
2023-07-02 01:57:42 +00:00
|
|
|
count = 257
|
|
|
|
repeat count {
|
2023-07-02 00:38:35 +00:00
|
|
|
cx16.r0++
|
|
|
|
}
|
|
|
|
txt.print_uw(255+256+257)
|
|
|
|
txt.spc()
|
|
|
|
txt.print_uw(cx16.r0)
|
|
|
|
txt.nl()
|
2023-07-02 01:57:42 +00:00
|
|
|
count=1023
|
|
|
|
repeat count {
|
2023-07-02 00:38:35 +00:00
|
|
|
cx16.r0++
|
|
|
|
}
|
|
|
|
txt.print_uw(255+256+257+1023)
|
|
|
|
txt.spc()
|
|
|
|
txt.print_uw(cx16.r0)
|
|
|
|
txt.nl()
|
2023-07-02 01:57:42 +00:00
|
|
|
count=1024
|
|
|
|
repeat count {
|
2023-07-02 00:38:35 +00:00
|
|
|
cx16.r0++
|
|
|
|
}
|
|
|
|
txt.print_uw(255+256+257+1023+1024)
|
|
|
|
txt.spc()
|
|
|
|
txt.print_uw(cx16.r0)
|
|
|
|
txt.nl()
|
2023-07-02 01:57:42 +00:00
|
|
|
count = 1025
|
|
|
|
repeat count {
|
2023-07-02 00:38:35 +00:00
|
|
|
cx16.r0++
|
2023-06-26 23:29:25 +00:00
|
|
|
}
|
2023-07-02 00:38:35 +00:00
|
|
|
txt.print_uw(255+256+257+1023+1024+1025)
|
|
|
|
txt.spc()
|
|
|
|
txt.print_uw(cx16.r0)
|
|
|
|
txt.nl()
|
2023-07-02 01:57:42 +00:00
|
|
|
count = 65534
|
|
|
|
repeat count {
|
|
|
|
cx16.r0++
|
|
|
|
}
|
|
|
|
txt.print_uw(3838)
|
|
|
|
txt.spc()
|
|
|
|
txt.print_uw(cx16.r0)
|
|
|
|
txt.nl()
|
|
|
|
count = 65535
|
|
|
|
repeat count {
|
|
|
|
cx16.r0++
|
|
|
|
}
|
|
|
|
count=0
|
|
|
|
repeat count {
|
|
|
|
cx16.r0++
|
|
|
|
}
|
|
|
|
repeat 0 {
|
|
|
|
cx16.r0++
|
|
|
|
}
|
|
|
|
txt.print_uw(3837)
|
|
|
|
txt.spc()
|
|
|
|
txt.print_uw(cx16.r0)
|
|
|
|
txt.nl()
|
2023-06-26 23:59:22 +00:00
|
|
|
}
|
|
|
|
}
|