Thread: [Tutorial] GBA ASM Programming
View Single Post
  #30    
Old November 9th, 2010 (3:41 PM).
Shiny Quagsire's Avatar
Shiny Quagsire Shiny Quagsire is offline
I'm Still Alive, Elsewhere
     
    Join Date: May 2009
    Location: Hoenn Safari Zone
    Age: 19
    Gender: Male
    Nature: Jolly
    Posts: 700

    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