Thread: [Tutorial] GBA ASM Programming
View Single Post
  #30    
Old November 9th, 2010, 03:41 PM
Shiny Quagsire's Avatar
Shiny Quagsire
どないやねん, ヤドン
 
Join Date: May 2009
Location: Hoenn Safari Zone
Age: 16
Gender: Male
Nature: Jolly
Quote:
Originally Posted by 0m3GA ARS3NAL View Post
I like it, though I have a question.

About that sleep bit loading, how can one CHANGE the bits like the sleep bits, to induce sleep?
I've had to set bits, and I've found that the best way to do it is:
  1. Shift the bits right to ensure there isn't any sleep bits already there
  2. Add a number (Let's say, 3) to the amount
  3. Store that value back into the RAM with strb
__________________



Reply With Quote