diff --git a/agb/src/save/asm_routines.s b/agb/src/save/asm_routines.s index f257a524..91128bf4 100644 --- a/agb/src/save/asm_routines.s +++ b/agb/src/save/asm_routines.s @@ -36,14 +36,14 @@ agb_thumb_end agb_rs__WramVerifyBuf @ -@ void WramXferBuf(const char* source, char* dest, int count); +@ void WramTransferBuf(const char* source, char* dest, int count); @ @ A routine that copies one buffer into another. @ -agb_thumb_func agb_rs__WramXferBuf +agb_thumb_func agb_rs__WramTransferBuf 0: sub r2, #1 ldrb r3, [r0,r2] strb r3, [r1,r2] bne 0b bx lr -agb_thumb_end agb_rs__WramXferBuf +agb_thumb_end agb_rs__WramTransferBuf diff --git a/agb/src/save/asm_utils.rs b/agb/src/save/asm_utils.rs index 577d99f0..e5c85c58 100644 --- a/agb/src/save/asm_utils.rs +++ b/agb/src/save/asm_utils.rs @@ -3,7 +3,7 @@ //! performed via code in WRAM and cannot be accessed by DMA. extern "C" { - fn agb_rs__WramXferBuf(src: *const u8, dst: *mut u8, count: usize); + fn agb_rs__WramTransferBuf(src: *const u8, dst: *mut u8, count: usize); fn agb_rs__WramReadByte(src: *const u8) -> u8; fn agb_rs__WramVerifyBuf(buf1: *const u8, buf2: *const u8, count: usize) -> bool; } @@ -18,7 +18,7 @@ extern "C" { #[inline(always)] pub unsafe fn read_raw_buf(dst: &mut [u8], src: usize) { if !dst.is_empty() { - agb_rs__WramXferBuf(src as _, dst.as_mut_ptr(), dst.len()); + agb_rs__WramTransferBuf(src as _, dst.as_mut_ptr(), dst.len()); } } @@ -31,7 +31,7 @@ pub unsafe fn read_raw_buf(dst: &mut [u8], src: usize) { #[inline(always)] pub unsafe fn write_raw_buf(dst: usize, src: &[u8]) { if !src.is_empty() { - agb_rs__WramXferBuf(src.as_ptr(), dst as _, src.len()); + agb_rs__WramTransferBuf(src.as_ptr(), dst as _, src.len()); } }