From 6102d396468ae4f20e88ad8044fd4f2720e367af Mon Sep 17 00:00:00 2001 From: Sha0den <119825539+Sha0den@users.noreply.github.com> Date: Wed, 14 Aug 2024 09:19:21 -0400 Subject: [PATCH] ClearMemory Adjustments --- src/engine/input_name.asm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/engine/input_name.asm b/src/engine/input_name.asm index 44ee8024..e6f765ea 100644 --- a/src/engine/input_name.asm +++ b/src/engine/input_name.asm @@ -22,12 +22,14 @@ Deck4Data: textitem 14, 1, DeckText db $ff -; zeroes b bytes starting from hl. +; zeroes a bytes starting from hl. +; this function is identical to 'ClearNBytesFromHL' in Bank $2, +; as well as ClearMemory_Bank5' and 'ClearMemory_Bank8'. ; preserves all registers ; input: -; b = number of bytes to clear +; a = number of bytes to clear ; hl = where to begin erasing -ClearMemory: +ClearMemory_Bank6: push af push bc push hl @@ -174,7 +176,7 @@ InitializeInputName: ; clear the name buffer. ld a, NAMING_SCREEN_BUFFER_LENGTH ld hl, wNamingScreenBuffer - call ClearMemory + call ClearMemory_Bank6 ld hl, wNamingScreenBuffer ld a, [wNamingScreenBufferMaxLength] ld b, a