Homebrew ARM10 Kernel Under 10.1.x

Status
Not open for further replies.

BootyBoopersRippers

Banned!
OP
Banned
Joined
Oct 6, 2015
Messages
19
Trophies
0
Age
33
XP
3
Country
United States
unsigned char handle[32];
unsigned char bmpHead[] = {
0x42, 0x4D, 0x36, 0x65, 0x04, 0x00, 0x00, 0x00,
0x00, 0x00, 0x36, 0x00, 0x00, 0x00, 0x28, 0x00,
0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0xF0, 0x00,
0x00, 0x00, 0x01, 0x00, 0x18, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x65, 0x04, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};

void memdump(wchar_t* filename, unsigned char* buf, unsigned int size){
unsigned int br = 0;
memset(&handle, 0, 32);
fopen9(&handle, filename, 6);
fwrite9(&handle, &br, buf, size);
fclose9(&handle);
for(int i = 0; i < 0x46500; i++) *(VRAM+0x1E6000 + i) = 0xFF;
}

void transpose (void * dst, const void * src, unsigned dim1, unsigned dim2, unsigned item_length) {
char * ptr_write;
const char * ptr_read;
unsigned x, y, z;
for (x = 0; x < dim1; x ++) for (y = 0; y < dim2; y ++) {
ptr_write = ((char *) dst) + item_length * (y * dim1 + x);
ptr_read = ((const char *) src) + item_length * (x * dim2 + y);
for (z = 0; z < item_length; z ++) *(ptr_write ++) = *(ptr_read ++);
}
}

void screenShot(int frame){
unsigned int br;
short width = frame == 0 ? 400 : 320;
short height = 240;
int frameOff = frame == 0 ? 0x300000 : 0; //0x1E6000 : 0x48F000; //<- Defaults
int length = frame == 0 ? 0x46500 : 0x38400;

memset(&handle, 0, 32);
fopen9(&handle, frame == 0 ? L"sdmc:/screen_top.bmp" : L"sdmc:/screen_bot.bmp", 6);
transpose(FCRAM+0xF80000, VRAM+frameOff, width, height, 3);
bmpHead[18] = frame == 0 ? 0x90 : 0x40;
fwrite9(&handle, &br, bmpHead, 0x36);
fwrite9(&handle, &br, FCRAM+0xF80000, length);
fclose9(&handle);
for(int i = 0; i < length; i++) *(VRAM+frameOff + i) = 0xFF;
}

void myThread(){
while(1){
if(getHID() & BUTTON_SELECT){
screenShot(TOP_FRAME);
screenShot(BOT_FRAME);
}
if(getHID() & BUTTON_START) memdump(L"sdmc:/VRAM.bin", VRAM, 0x00600000);
}
__asm("SVC 0x09");
}

Feel free to ask questions.
Enjoy.
 

ihaveahax

Well-Known Member
Member
Joined
Apr 20, 2015
Messages
6,070
Trophies
2
XP
7,843
Country
United States
There is no such thing as an ARM10 processor, let alone the 3DS having one. If there is one, I'd like to see.
 
Status
Not open for further replies.

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    He gets his ramming funds from onlyfans
  • BigOnYa @ BigOnYa:
    Yea but my total income is negative, lol
  • HiradeGirl @ HiradeGirl:
    I would pay for watching someone eat food from the floor.
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, stop spending the videos' budget on food
  • BigOnYa @ BigOnYa:
    No I've never even been to the site(honestly) but have heard of it
  • K3Nv2 @ K3Nv2:
    I'm half way at my savings for a new move
  • BigOnYa @ BigOnYa:
    Like a karate move? The flying dragon is cool.
  • HiradeGirl @ HiradeGirl:
    @BigOnYa if you've never been to the site how do you know about its contents?
  • Xdqwerty @ Xdqwerty:
    Can he do a shoryuken?
  • Xdqwerty @ Xdqwerty:
    @HiradeGirl, cuz of people mentioning it everywhere
    +1
  • HiradeGirl @ HiradeGirl:
    Someone here introduced me to it. Not gonna say who.
  • BigOnYa @ BigOnYa:
    Everybody knows what that site about, and you can't read normal news anymore without hearing about it
  • HiradeGirl @ HiradeGirl:
    But it's degrading and disgusting.
  • Xdqwerty @ Xdqwerty:
    @HiradeGirl, was it Juan?
  • HiradeGirl @ HiradeGirl:
    Juan who?
  • BigOnYa @ BigOnYa:
    Its just seductive pics right? I mean they don't show nudity, do they?
  • Xdqwerty @ Xdqwerty:
    @HiradeGirl, you know who is juan
  • ZeroT21 @ ZeroT21:
    isn't onlyfans just another creepy site of fake AI generated ''women''?
  • K3Nv2 @ K3Nv2:
    Not Ai women but women who's bodies are walking Atm machines
    +1
  • ZeroT21 @ ZeroT21:
    sounds like scam bait
  • ZeroT21 @ ZeroT21:
    so they collect ''donations''?
  • K3Nv2 @ K3Nv2:
    Well gofundme doesn't accept vagina they just do that off the site
  • ZeroT21 @ ZeroT21:
    guess they just sell spicy fling material
  • ZeroT21 @ ZeroT21:
    i wonder what kinda desperate depraved beings even need to go there
    +2
    Xdqwerty @ Xdqwerty: @ZeroT21, simps