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-27 22:46:01 +00:00
|
|
|
ubyte[] ubarray = [100,200]
|
2020-11-27 23:44:38 +00:00
|
|
|
uword[] uwarray = [1000, 2000]
|
2020-11-22 16:16:07 +00:00
|
|
|
|
2020-11-27 22:46:01 +00:00
|
|
|
ubyte index = 0
|
|
|
|
ubarray[index+1] += 13
|
|
|
|
ubarray[index+1] += 13
|
|
|
|
ubarray[index+1] += 13
|
2020-11-27 23:44:38 +00:00
|
|
|
; ubarray[index+2] += 13
|
2020-11-23 21:14:45 +00:00
|
|
|
|
2020-11-27 22:46:01 +00:00
|
|
|
txt.print_ub(ubarray[1])
|
|
|
|
txt.chrout('\n')
|
2020-11-27 23:44:38 +00:00
|
|
|
|
|
|
|
uwarray[index+1] += 13
|
|
|
|
uwarray[index+1] += 13
|
|
|
|
uwarray[index+1] += 13
|
|
|
|
; uwarray[index+2] += 13
|
|
|
|
|
|
|
|
txt.print_uw(uwarray[1])
|
|
|
|
txt.chrout('\n')
|
2020-11-23 21:14:45 +00:00
|
|
|
}
|
2020-11-26 18:21:07 +00:00
|
|
|
|
2020-11-27 22:46:01 +00:00
|
|
|
; sub start222() {
|
|
|
|
;
|
|
|
|
; ubyte[] ubarray = [100,200]
|
|
|
|
; uword[] uwarray = [1000,2000]
|
|
|
|
; float[] flarray = [100.1, 200.2]
|
|
|
|
;
|
|
|
|
; ubyte index = 1
|
|
|
|
;
|
|
|
|
; ubarray[1] += 3
|
|
|
|
; txt.print_ub(ubarray[1])
|
|
|
|
; txt.chrout('\n')
|
|
|
|
; ubarray[index] += 3
|
|
|
|
; txt.print_ub(ubarray[1])
|
|
|
|
; txt.chrout('\n')
|
|
|
|
; index = 0
|
|
|
|
; ubarray[index*99+1] += 3
|
|
|
|
; txt.print_ub(ubarray[1])
|
|
|
|
; txt.chrout('\n')
|
|
|
|
; txt.chrout('\n')
|
|
|
|
;
|
|
|
|
; index = 1
|
|
|
|
; uwarray[1] += 3
|
|
|
|
; txt.print_uw(uwarray[1])
|
|
|
|
; txt.chrout('\n')
|
|
|
|
; uwarray[index] += 3
|
|
|
|
; txt.print_uw(uwarray[1])
|
|
|
|
; txt.chrout('\n')
|
|
|
|
; index = 0
|
|
|
|
; uwarray[index*99+1] += 3
|
|
|
|
; txt.print_uw(uwarray[1])
|
|
|
|
; txt.chrout('\n')
|
|
|
|
; txt.chrout('\n')
|
|
|
|
;
|
|
|
|
; index=1
|
|
|
|
; flarray[1] += 3.0
|
|
|
|
; floats.print_f(flarray[1])
|
|
|
|
; txt.chrout('\n')
|
|
|
|
; flarray[index] += 3.0
|
|
|
|
; floats.print_f(flarray[1])
|
|
|
|
; txt.chrout('\n')
|
|
|
|
; index = 0
|
|
|
|
; flarray[index*99+1] += 3.0
|
|
|
|
; floats.print_f(flarray[1])
|
|
|
|
; txt.chrout('\n')
|
|
|
|
;
|
|
|
|
; test_stack.test()
|
|
|
|
;
|
|
|
|
; }
|
|
|
|
;
|
|
|
|
; sub name() -> str {
|
|
|
|
; return "irmen"
|
|
|
|
; }
|
2020-08-27 17:47:50 +00:00
|
|
|
}
|