1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-09-29 03:56:15 +00:00

Bitmap mode

This commit is contained in:
FlightControl 2021-01-19 22:36:08 +01:00
parent 6b690f860b
commit 6c8654fbc8
2 changed files with 10 additions and 8 deletions

View File

@ -4704,3 +4704,12 @@ tay
lda {c1} lda {c1}
ora {c2},y ora {c2},y
tay tay
//FRAGMENT vwuz1_lt_vwuc1_then_la1
lda {z1}+1
cmp #>{c1}
bcc {la1}
bne !+
lda {z1}
cmp #<{c1}
bcc {la1}
!:

View File

@ -26,14 +26,7 @@ void bitmap_init(word bitmap_address) {
// Clear all graphics on the bitmap // Clear all graphics on the bitmap
void bitmap_clear() { void bitmap_clear() {
word bitmap_address = bitmap; memset_vram(0,bitmap,0,80*60*8);
for( word y: 0..600 ) {
for( word x: 0..40 ) {
vera_vram_bank_offset(0,(word)bitmap_address,VERA_INC_0);
*VERA_DATA0 = 0;
bitmap_address++;
}
}
} }
void bitmap_plot(word x, word y) { void bitmap_plot(word x, word y) {