Skip to content

Commit

Permalink
Merge remote-tracking branch 'pret/master' into RHH/pr/pretmerge_2022…
Browse files Browse the repository at this point in the history
…0909
  • Loading branch information
AsparagusEduardo committed Sep 13, 2022
2 parents de32940 + c1dfd3c commit c68ca72
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 20 deletions.
6 changes: 2 additions & 4 deletions src/crt0.s
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
.arm

.align 2, 0
.global Init
Init:
Init::
mov r0, #PSR_IRQ_MODE
msr cpsr_cf, r0
ldr sp, sp_irq
Expand All @@ -33,8 +32,7 @@ sp_irq: .word IWRAM_END - 0x60

.arm
.align 2, 0
.global IntrMain
IntrMain:
IntrMain::
mov r3, #REG_BASE
add r3, r3, #OFFSET_REG_IE
ldr r2, [r3]
Expand Down
2 changes: 0 additions & 2 deletions src/item.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
#include "constants/items.h"
#include "constants/hold_effects.h"

extern u16 gUnknown_0203CF30[];

// this file's functions
static bool8 CheckPyramidBagHasItem(u16 itemId, u16 count);
static bool8 CheckPyramidBagHasSpace(u16 itemId, u16 count);
Expand Down
21 changes: 7 additions & 14 deletions src/rom_header.s
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
@ Note: ROM header data is empty space here.
@ It's populated by gbafix using data provided in the Makefile.

.global Start
Start:
Start::
b Init

.global RomHeaderNintendoLogo
RomHeaderNintendoLogo:
RomHeaderNintendoLogo::
.space 156

RomHeaderGameTitle:
.space 12

.global RomHeaderGameCode
RomHeaderGameCode:
RomHeaderGameCode::
.space 4

RomHeaderMakerCode:
Expand All @@ -31,8 +28,7 @@ RomHeaderDeviceType:
RomHeaderReserved1:
.space 7

.global RomHeaderSoftwareVersion
RomHeaderSoftwareVersion:
RomHeaderSoftwareVersion::
.byte 0

RomHeaderChecksum:
Expand All @@ -43,16 +39,13 @@ RomHeaderReserved2:

.word 0

.global GPIOPortData
GPIOPortData:
GPIOPortData::
.2byte 0

.global GPIOPortDirection
GPIOPortDirection:
GPIOPortDirection::
.2byte 0

.global GPIOPortReadEnable
GPIOPortReadEnable:
GPIOPortReadEnable::
.2byte 0

.2byte 0
Expand Down

0 comments on commit c68ca72

Please sign in to comment.