From 0fd76b862a212955ae2e44624659948fec231765 Mon Sep 17 00:00:00 2001 From: hugova Date: Thu, 3 Apr 2025 00:18:09 +0200 Subject: [PATCH] Clear screen grafic the correct way --- wip-hugo/routines/line/line_test.s | 2 ++ wip-hugo/routines/line/line_test_time.s | 16 +++++----------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/wip-hugo/routines/line/line_test.s b/wip-hugo/routines/line/line_test.s index 67e67f3..f8e0466 100644 --- a/wip-hugo/routines/line/line_test.s +++ b/wip-hugo/routines/line/line_test.s @@ -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, VIC_bank Mov_16 >B_end, $5f3f LDA #$00 jsr memset + LDA #$00 STA X_pos_ LDA #$60 diff --git a/wip-hugo/routines/line/line_test_time.s b/wip-hugo/routines/line/line_test_time.s index 87b56db..7006dde 100644 --- a/wip-hugo/routines/line/line_test_time.s +++ b/wip-hugo/routines/line/line_test_time.s @@ -37,19 +37,13 @@ end__: B_end = $FEFF VIC_bank = $4000 VIC_bank_end = VIC_bank + $3FFF - LDA #>VIC_bank - STA $FC - 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, VIC_bank + Mov_16 >B_end, $5f3f + LDA #$00 jsr memset + jmp exit .endscope