This commit is contained in:
Lokathor 2018-12-16 15:20:07 -07:00
parent 09b936262f
commit 74d50b9218

View file

@ -65,7 +65,7 @@ pub unsafe fn soft_reset() -> ! {
/// the `soft_reset` function). /// the `soft_reset` function).
/// 2) Clears all Palette data. /// 2) Clears all Palette data.
/// 3) Clears all VRAM. /// 3) Clears all VRAM.
/// 4) Clears all OAM (reminder: a zeroed obj isn't disabled!) /// 4) Clears all OAM (reminder: a zeroed object isn't disabled!)
/// 5) Reset SIO registers (resets them to general purpose mode) /// 5) Reset SIO registers (resets them to general purpose mode)
/// 6) Reset Sound registers /// 6) Reset Sound registers
/// 7) Reset all IO registers _other than_ SIO and Sound /// 7) Reset all IO registers _other than_ SIO and Sound
@ -76,8 +76,8 @@ pub unsafe fn soft_reset() -> ! {
/// ## Safety /// ## Safety
/// ///
/// It is generally a safe operation to suddenly clear any part of the GBA's /// It is generally a safe operation to suddenly clear any part of the GBA's
/// memory, except in the case that you were executing out of IWRAM and clear /// memory, except in the case that you were executing out of EWRAM and clear
/// that. If you do that you return to nothing and have a bad time. /// that. If you do then you return to nothing and have a bad time.
#[inline(always)] #[inline(always)]
pub unsafe fn register_ram_reset(flags: u8) { pub unsafe fn register_ram_reset(flags: u8) {
asm!(/* ASM */ "swi 0x01" asm!(/* ASM */ "swi 0x01"