From 5a35ead4dd233fadccd0139e847cc039ff09716c Mon Sep 17 00:00:00 2001 From: hugova Date: Sun, 13 Jul 2025 22:06:31 +0200 Subject: [PATCH] cleanup test utch that they can run cleanly after each other --- wip-hugo/routines/line/line_test.s | 12 +++++++--- wip-hugo/routines/pixel/pixel_test.s | 34 +++++++++++++++------------- wip-hugo/source.s | 2 +- 3 files changed, 28 insertions(+), 20 deletions(-) diff --git a/wip-hugo/routines/line/line_test.s b/wip-hugo/routines/line/line_test.s index 84876e9..fa1f68a 100644 --- a/wip-hugo/routines/line/line_test.s +++ b/wip-hugo/routines/line/line_test.s @@ -74,7 +74,13 @@ end: INC Y_end LDA Y_end CMP #$bb - BEQ end_ - jmp @loop -end_: + BNE @loop + + ;;Lets clear bitmap + ;;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 A_start, A_start + 1, #VIC_bank + Mov_16 length, length + 1, #<$1f40, #>$1f40 + LDA #$00 + jsr memset + .endscope diff --git a/wip-hugo/routines/pixel/pixel_test.s b/wip-hugo/routines/pixel/pixel_test.s index 489a9b4..b701f7b 100644 --- a/wip-hugo/routines/pixel/pixel_test.s +++ b/wip-hugo/routines/pixel/pixel_test.s @@ -8,14 +8,15 @@ STA Y_pos test_x: - NOP - NOP - NOP - NOP - DEY - BNE test_x - DEX - BNE test_x +;; delay +;; NOP +;; NOP +;; NOP +;; NOP +;; DEY +;; BNE test_x +;; DEX +;; BNE test_x jsr pixel_draw LDX #$20 @@ -30,14 +31,15 @@ end_test_x: LDA #$50 STA Y_pos test_y: - NOP - NOP - NOP - NOP - DEY - BNE test_y - DEX - BNE test_y +;;delay +; NOP +; NOP +; NOP +; NOP +; DEY +; BNE test_y +; DEX +; BNE test_y jsr pixel_draw LDX #$20 diff --git a/wip-hugo/source.s b/wip-hugo/source.s index 1f19dfc..11cc962 100644 --- a/wip-hugo/source.s +++ b/wip-hugo/source.s @@ -18,7 +18,7 @@ .include "routines/pixel/pixel_test.s" .include "routines/memory/memcpy_test.s" .include "routines/memory/memset_test.s" -.include "routines/triangle/triangle_test.s" +;.include "routines/triangle/triangle_test.s" exit: JMP exit .include "../wip-duuqnd/public.inc"