Skip to content

Commit

Permalink
Add third location for ChipID
Browse files Browse the repository at this point in the history
This merges the change from this commit of the master fork of NitroHax
that this version is based on:

chishm@1dacaf2
  • Loading branch information
ApacheThunder committed Apr 4, 2018
1 parent 940f257 commit 8796775
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions BootLoader/source/main.arm7.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ int arm7_loadBinary (void) {
// Set memory values expected by loaded NDS
*((u32*)0x027ff800) = chipID; // CurrentCardID
*((u32*)0x027ff804) = chipID; // Command10CardID
*((u32*)0x027ffc00) = chipID; // 3rd chip ID
*((u16*)0x027ff808) = ndsHeader->headerCRC16; // Header Checksum, CRC-16 of [000h-15Dh]
*((u16*)0x027ff80a) = ndsHeader->secureCRC16; // Secure Area Checksum, CRC-16 of [ [20h]..7FFFh]
*((u16*)0x027ffc40) = 0x1; // Booted from card -- EXTREMELY IMPORTANT!!! Thanks to cReDiAr
Expand Down

0 comments on commit 8796775

Please sign in to comment.