2020-09-20 21:49:36 +00:00
|
|
|
%import textio
|
2020-11-15 16:44:47 +00:00
|
|
|
%import floats
|
2020-11-15 14:04:23 +00:00
|
|
|
%zeropage basicsafe
|
2020-11-20 21:15:14 +00:00
|
|
|
%import test_stack
|
2020-08-27 17:47:50 +00:00
|
|
|
|
2020-09-24 17:26:07 +00:00
|
|
|
main {
|
2020-09-28 00:23:36 +00:00
|
|
|
|
2020-10-09 20:47:42 +00:00
|
|
|
sub start() {
|
2020-11-09 22:57:50 +00:00
|
|
|
|
2020-11-20 21:15:14 +00:00
|
|
|
ubyte ub
|
|
|
|
byte bb
|
|
|
|
uword uw
|
|
|
|
word ww
|
2020-11-15 14:04:23 +00:00
|
|
|
|
2020-11-20 21:54:24 +00:00
|
|
|
const ubyte arrub = 10
|
|
|
|
const uword arruw = 10
|
|
|
|
const byte arrb = 10
|
|
|
|
const word arrw = 10
|
2020-11-20 21:15:14 +00:00
|
|
|
|
|
|
|
test_stack.test()
|
|
|
|
|
|
|
|
for ub in 0 to arrub step 2 {
|
|
|
|
txt.print_ub(ub)
|
|
|
|
txt.chrout(',')
|
|
|
|
}
|
2020-11-19 21:58:38 +00:00
|
|
|
txt.chrout('\n')
|
2020-11-20 21:15:14 +00:00
|
|
|
|
|
|
|
for ub in 5 to arrub step 2 {
|
|
|
|
txt.print_ub(ub)
|
|
|
|
txt.chrout(',')
|
|
|
|
}
|
2020-11-18 00:27:02 +00:00
|
|
|
txt.chrout('\n')
|
2020-11-09 22:57:50 +00:00
|
|
|
|
2020-11-20 21:15:14 +00:00
|
|
|
for uw in 0 to arruw step 2 {
|
|
|
|
txt.print_uw(uw)
|
|
|
|
txt.chrout(',')
|
|
|
|
}
|
|
|
|
txt.chrout('\n')
|
2020-10-23 18:56:10 +00:00
|
|
|
|
2020-11-20 21:15:14 +00:00
|
|
|
for uw in 5 to arruw step 2 {
|
|
|
|
txt.print_uw(uw)
|
|
|
|
txt.chrout(',')
|
|
|
|
}
|
|
|
|
txt.chrout('\n')
|
2020-11-17 23:05:48 +00:00
|
|
|
|
2020-11-20 21:15:14 +00:00
|
|
|
for bb in 0 to arrb step 2 {
|
|
|
|
txt.print_b(bb)
|
|
|
|
txt.chrout(',')
|
|
|
|
}
|
|
|
|
txt.chrout('\n')
|
|
|
|
|
|
|
|
for bb in -2 to arrb-2 step 2 {
|
|
|
|
txt.print_b(bb)
|
|
|
|
txt.chrout(',')
|
|
|
|
}
|
|
|
|
txt.chrout('\n')
|
|
|
|
|
|
|
|
for ww in 0 to arrw step 2 {
|
|
|
|
txt.print_w(ww)
|
|
|
|
txt.chrout(',')
|
|
|
|
}
|
|
|
|
txt.chrout('\n')
|
|
|
|
|
|
|
|
for ww in -2 to arrw-2 step 2{
|
|
|
|
txt.print_w(ww)
|
|
|
|
txt.chrout(',')
|
|
|
|
}
|
|
|
|
txt.chrout('\n')
|
2020-11-17 22:40:42 +00:00
|
|
|
|
2020-11-20 21:15:14 +00:00
|
|
|
for bb in arrb-2 to -2 step -2 {
|
|
|
|
txt.print_b(bb)
|
|
|
|
txt.chrout(',')
|
|
|
|
}
|
|
|
|
txt.chrout('\n')
|
|
|
|
|
2020-11-20 21:54:24 +00:00
|
|
|
; for ww in arrw-2 to -2 step -2 {
|
|
|
|
; txt.print_w(ww)
|
|
|
|
; txt.chrout(',')
|
|
|
|
; }
|
|
|
|
; txt.chrout('\n')
|
2020-11-20 21:15:14 +00:00
|
|
|
|
|
|
|
test_stack.test()
|
|
|
|
txt.chrout('\n')
|
2020-09-16 21:04:18 +00:00
|
|
|
}
|
2020-08-27 17:47:50 +00:00
|
|
|
}
|