From f17b33200548530cf00e6075a913f653c2c6a896 Mon Sep 17 00:00:00 2001 From: hugova Date: Thu, 15 May 2025 17:39:43 +0200 Subject: [PATCH] optimize code, no need to set Y after overflow --- wip-hugo/routines/memory/memcpy.s | 2 +- wip-hugo/routines/memory/memset.s | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wip-hugo/routines/memory/memcpy.s b/wip-hugo/routines/memory/memcpy.s index c99a1ae..034dc0f 100644 --- a/wip-hugo/routines/memory/memcpy.s +++ b/wip-hugo/routines/memory/memcpy.s @@ -17,7 +17,7 @@ change_length: BPL loop JMP loop_end y_overflow: - LDY #$00 + ;; Y is now 0 INC B_start + 1 INC A_start + 1 diff --git a/wip-hugo/routines/memory/memset.s b/wip-hugo/routines/memory/memset.s index 03706e7..e5c5f62 100755 --- a/wip-hugo/routines/memory/memset.s +++ b/wip-hugo/routines/memory/memset.s @@ -17,7 +17,7 @@ change_length: BPL loop JMP loop_end y_overflow: - LDY #$00 + ;; Y is now 0 INC A_start + 1 jmp change_length loop_end: