2020-09-04 22:17:58 +00:00
|
|
|
%import cx16textio
|
2020-08-27 17:47:50 +00:00
|
|
|
%zeropage basicsafe
|
|
|
|
|
|
|
|
main {
|
|
|
|
sub start() {
|
2020-08-28 23:44:20 +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-09-04 22:17:58 +00:00
|
|
|
; TODO fix var storage in ASM when declared const:
|
|
|
|
float PI = 3.141592653589793
|
|
|
|
float TWOPI = 6.283185307179586
|
|
|
|
float ZERO = 0.0
|
|
|
|
float ONE = 1.0
|
|
|
|
|
|
|
|
|
|
|
|
float @zp rz ; TODO compiler warning that float can't be in ZP?
|
|
|
|
|
|
|
|
|
2020-08-27 17:47:50 +00:00
|
|
|
}
|
2020-09-04 22:17:58 +00:00
|
|
|
|
2020-08-27 17:47:50 +00:00
|
|
|
}
|