From cdd4a3d1098b51ba21a6dc357057f989eaa9dd80 Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Tue, 8 Jan 2019 17:23:11 -0700 Subject: [PATCH] Fix addresses for BG1HOFS and BG1VOFS --- src/io/background.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/io/background.rs b/src/io/background.rs index 493fb59..09748ea 100644 --- a/src/io/background.rs +++ b/src/io/background.rs @@ -71,9 +71,9 @@ pub const BG0HOFS: VolAddress = unsafe { VolAddress::new_unchecked(0x400_00 pub const BG0VOFS: VolAddress = unsafe { VolAddress::new_unchecked(0x400_0012) }; /// BG1 X-Offset. Write only. Text mode only. 9 bits. -pub const BG1HOFS: VolAddress = unsafe { VolAddress::new_unchecked(0x400_0012) }; +pub const BG1HOFS: VolAddress = unsafe { VolAddress::new_unchecked(0x400_0014) }; /// BG1 Y-Offset. Write only. Text mode only. 9 bits. -pub const BG1VOFS: VolAddress = unsafe { VolAddress::new_unchecked(0x400_0012) }; +pub const BG1VOFS: VolAddress = unsafe { VolAddress::new_unchecked(0x400_0016) }; /// BG2 X-Offset. Write only. Text mode only. 9 bits. pub const BG2HOFS: VolAddress = unsafe { VolAddress::new_unchecked(0x400_0018) };