Changed indentation style across the code to make it more readable, added newlines before comments, moved patches to separate functions, made memory operations slightly faster by compiling them with O3 (thanks TuxSH!)
This commit is contained in:
@@ -16,7 +16,7 @@ include $(DEVKITARM)/3ds_rules
|
||||
# INCLUDES is a list of directories containing header files
|
||||
# SPECS is the directory containing the important build and link files
|
||||
#---------------------------------------------------------------------------------
|
||||
export TARGET := $(shell basename $(CURDIR))
|
||||
export TARGET := $(shell basename $(CURDIR))
|
||||
BUILD := build
|
||||
SOURCES := source
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "types.h"
|
||||
|
||||
void main(void){
|
||||
void main(void)
|
||||
{
|
||||
vu32 *const arm11 = (u32 *)0x1FFFFFF8;
|
||||
|
||||
*(vu32 *)0x10141200 = 0x1007F;
|
||||
@@ -96,6 +97,7 @@ void main(void){
|
||||
|
||||
//Wait for the entry to be set
|
||||
while(!*arm11);
|
||||
|
||||
//Jump to it
|
||||
((void (*)())*arm11)();
|
||||
}
|
||||
@@ -5,7 +5,4 @@ _start:
|
||||
@ Disable interrupts
|
||||
CPSID aif
|
||||
|
||||
bl main
|
||||
|
||||
.die:
|
||||
b .die
|
||||
b main
|
||||
|
||||
Reference in New Issue
Block a user