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: