Homebrew ARDS code for swapping screens

froggestspirit

Aspiring Game Dev
OP
Member
Joined
Jul 28, 2011
Messages
1,281
Trophies
1
XP
1,561
Country
United States
Hi, I'm working on making a single screen DS, and was also working on making an AR code to swap which screen displays on the single screen. This can be done by the 15th bit at 0x04000304 in ARM9.
This is the code I came up with, but for some reason, it doesn't work:
94000130 FFB30000 //Is Start+Select+up pressed?
94000304 7FFF0000 //Is the 15th bit at 0x04000304 0?
D9000000 04000304 //load the 32 bit value from 0x04000304
D4000000 00008000 //add to it (basically set the 15th bit to 1)
D6000000 04000304 //store it
D2000000 00000000 //end if/clear status
94000130 FF730000 //Is Start+Select+down pressed?
94000304 7FFF8000 //Is the 15th bit at 0x04000304 1?
D9000000 04000304 //load the 32 bit value from 0x04000304
D4000000 FFFF8000 //add to it (basically set the 15th bit to 0)
D6000000 04000304 //store it
D2000000 00000000 //end if/clear status
If anyone can find an error with this code, please tell me. I tried it in Mario Kart, but it should work for any game. (If mario kart DS requires an M code, this might be the problem, because I couldn't find one)

Edit: It appears that this works in the No$GBA emulator, but not on the actual hardware (DSlite & PhatDS tested) Can anyone confirm if AR can't access this address?
 
Last edited by froggestspirit,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • S @ salazarcosplay:
    @SylverReZ youtube to mp3 some are still good, usefull when the official music video has better audio than the music in th ecd
    +1
  • Xdqwerty @ Xdqwerty:
    im back
  • Psionic Roshambo @ Psionic Roshambo:
    Find the studio rips, like a few GBs per song lol
  • Xdqwerty @ Xdqwerty:
    @Psionic Roshambo, game boys per song?
  • Psionic Roshambo @ Psionic Roshambo:
    I used to have a few of those with Direct Sound on XP and Audigy Platinum sound card with high end speakers was a glorious time for audio
  • Psionic Roshambo @ Psionic Roshambo:
    Lol no Gigabytes per song
  • K3Nv2 @ K3Nv2:
    Some websites have full studio rips of production kind of hard to find for obvious reasons
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Not sure current audio codec based sound built in to motherboards can handle the bit depth those used
  • Xdqwerty @ Xdqwerty:
    @Psionic Roshambo, I just use mp3 files of the best quality i can find
    +1
  • K3Nv2 @ K3Nv2:
    I say fuck it and open Spotify 80% of your musics already on it probably
    +1
  • Xdqwerty @ Xdqwerty:
    or just put in on yt
  • Psionic Roshambo @ Psionic Roshambo:
    Xdqwerty for most people hearing anything better than 256Kbps MP3 they cannot tell the difference
  • Xdqwerty @ Xdqwerty:
    play the songs video
  • K3Nv2 @ K3Nv2:
    Audiophiles mjs second allegation
  • Psionic Roshambo @ Psionic Roshambo:
    Pedo Audio what ever MJ was into he lost a glove
  • K3Nv2 @ K3Nv2:
    Mjs glove fit
  • Psionic Roshambo @ Psionic Roshambo:
    Billies Jeans did not
  • K3Nv2 @ K3Nv2:
    Mj you are the father
  • K3Nv2 @ K3Nv2:
    Wifi 7 routers are already out
  • The Real Jdbye @ The Real Jdbye:
    and i'm still here on wifi 5
  • The Real Jdbye @ The Real Jdbye:
    all my stuff is wired anyway
  • The Real Jdbye @ The Real Jdbye:
    what annoys me is my server has 2.5g but i have nothing else that does
  • K3Nv2 @ K3Nv2:
    No real point in 7 unless you have 5gb which no real point in it
    K3Nv2 @ K3Nv2: No real point in 7 unless you have 5gb which no real point in it