2020-09-12 16:53:44 +00:00
|
|
|
%import c64textio
|
2020-09-06 15:58:05 +00:00
|
|
|
;%import c64flt
|
|
|
|
;%option enable_floats
|
2020-09-14 20:06:40 +00:00
|
|
|
%zeropage basicsafe
|
2020-09-12 00:48:16 +00:00
|
|
|
; TODO system reset should also work when kernal is paged out
|
2020-09-05 00:05:28 +00:00
|
|
|
|
2020-08-27 17:47:50 +00:00
|
|
|
|
|
|
|
main {
|
2020-09-05 00:05:28 +00:00
|
|
|
|
|
|
|
|
2020-08-27 17:47:50 +00:00
|
|
|
sub start() {
|
2020-08-28 23:44:20 +00:00
|
|
|
|
2020-09-14 20:52:04 +00:00
|
|
|
uword ub1
|
|
|
|
word ww1
|
|
|
|
uword ii
|
|
|
|
|
|
|
|
for ii in 0 to 20 {
|
|
|
|
; ub1 = ii
|
|
|
|
; ub1 *= 40 ; TODO implement non-stack optimized muls
|
|
|
|
; todo a = EXPRESSION * const -> is that optimized?
|
2020-09-14 21:54:01 +00:00
|
|
|
ub1 = ii * 15
|
|
|
|
txt.print_uw(ub1)
|
|
|
|
c64.CHROUT(',')
|
|
|
|
ub1 = 1+(ii * 15)
|
2020-09-14 20:52:04 +00:00
|
|
|
txt.print_uw(ub1)
|
2020-09-14 20:06:40 +00:00
|
|
|
c64.CHROUT('\n')
|
|
|
|
}
|
2020-09-06 15:58:05 +00:00
|
|
|
|
2020-08-29 21:55:26 +00:00
|
|
|
;asmsub clear_screen (ubyte char @ A, ubyte color @ Y) clobbers(A) { ...}
|
|
|
|
; TODO dont cause name conflict if we define sub or sub with param 'color' or even a var 'color' later.
|
2020-08-28 23:44:20 +00:00
|
|
|
|
2020-08-29 21:55:26 +00:00
|
|
|
; sub color(...) {}
|
|
|
|
; sub other(ubyte color) {} ; TODO don't cause name conflict
|
2020-08-28 23:44:20 +00:00
|
|
|
|
2020-08-27 17:47:50 +00:00
|
|
|
}
|
2020-09-04 22:17:58 +00:00
|
|
|
|
2020-08-27 17:47:50 +00:00
|
|
|
}
|