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 22:10:20 +00:00
|
|
|
%zeropage kernalsafe
|
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 22:10:20 +00:00
|
|
|
%asm {{
|
|
|
|
sei
|
|
|
|
ldy #0
|
|
|
|
sty $1
|
|
|
|
lda #0
|
|
|
|
- sta $f000,y
|
|
|
|
iny
|
|
|
|
bne -
|
|
|
|
- lda $f000,y
|
|
|
|
sta $0400,y
|
|
|
|
iny
|
|
|
|
bne -
|
|
|
|
}}
|
|
|
|
|
|
|
|
repeat 60000 {
|
|
|
|
ubyte a = sin (3)
|
|
|
|
a++
|
2020-09-14 20:06:40 +00:00
|
|
|
}
|
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
|
|
|
}
|