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:
Aurora
2016-04-02 17:58:06 +02:00
parent 6b64a10362
commit 3475cfe1e6
21 changed files with 333 additions and 186 deletions

View File

@@ -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

View File

@@ -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)();
}

View File

@@ -5,7 +5,4 @@ _start:
@ Disable interrupts
CPSID aif
bl main
.die:
b .die
b main