Clear screen grafic the correct way

This commit is contained in:
hugova 2025-04-03 00:18:09 +02:00
parent c288254f1f
commit 0fd76b862a
2 changed files with 7 additions and 11 deletions

View file

@ -50,11 +50,13 @@ end:
B_end = $FEFF
VIC_bank = $4000
VIC_bank_end = VIC_bank + $3FFF
;;Paint the bitmap black. More bitmap: https://www.c64-wiki.com/wiki/53272, https://www.c64-wiki.com/wiki/Screen_RAM#Moving_of_screen_RAM
Mov_16 >B_start, <B_start, #<VIC_bank, #>VIC_bank
Mov_16 >B_end, <B_end, #<$5f3f, #>$5f3f
LDA #$00
jsr memset
LDA #$00
STA X_pos_
LDA #$60

View file

@ -37,19 +37,13 @@ end__:
B_end = $FEFF
VIC_bank = $4000
VIC_bank_end = VIC_bank + $3FFF
LDA #>VIC_bank
STA $FC
LDA #<VIC_bank
STA $FB
LDA #>$5f3f
STA $FE
LDA #<$5f3f
STA $FD
LDA #$0
;;Paint the bitmap black. More bitmap: https://www.c64-wiki.com/wiki/53272, https://www.c64-wiki.com/wiki/Screen_RAM#Moving_of_screen_RAM
Mov_16 >B_start, <B_start, #<VIC_bank, #>VIC_bank
Mov_16 >B_end, <B_end, #<$5f3f, #>$5f3f
LDA #$00
jsr memset
jmp exit
.endscope