some more relocating and organizing

Former-commit-id: 40c8e3b1f61657beed0e85997a03f74c5b9df55b [formerly c3a5f327d56d54099b571ad88fa8a149722563ae] [formerly b9923abd132bbe03d1e02d9b9364db0a94b1cd22 [formerly 92cbbcbe1ccb67a944b9b6cd4a1164871ea4e630]]
Former-commit-id: 62152bb061650114b0d680f86f356e1f81bb72af [formerly 23b4df45a46403e4f5b19a98752d539ebd426b80]
Former-commit-id: 63f052a34b9687c6ba2106206299c9cd2852c528
This commit is contained in:
Larry 2017-08-22 14:38:56 -05:00
parent c8f4fb29d4
commit 8b1c985dd9
10 changed files with 60 additions and 7 deletions

View File

@ -1 +1 @@
f152cabb358f1f30a11c91eae696c50e73b75331
c607faba13d9512fc4892f08b5e58a001365fdfd

View File

@ -9,8 +9,13 @@
.include "macros.inc"
.include "src/header.s"
#.include "src/tlbcode.s"
.section .c_data, "a"
.global Compressedrodata
Compressedrodata:
# make a hole for when we compress .data segment
.space 0x11C00
.global Compressedrodata_end
Compressedrodata_end:
.include "bin/romfiles.s"
.include "ramrom/ramrom.s"
.include "font/font.s"

View File

@ -1 +1 @@
a6cb47f91f3414691c15db2f3d9ad3daf6af6457
23614fc4bdeacc7dbb7b5463820b04bb22a0205b

View File

@ -1 +1 @@
803b7bf99f7d861163f214fbf39e0d9d936664e2
4f49ef899d8d377eb799f5f159f25570f065812a

19
src/code/grow_stack.s Normal file
View File

@ -0,0 +1,19 @@
# assembler directives
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
.section .text, "ax"
/*
int __cdecl grow_stack(int baseaddress, int stacksize)
*/
.global grow_stack
grow_stack:
.equ baseaddress, $a0
.equ stacksize, $a1
/* 0012F0 700006F0 00851021 */ addu $v0, baseaddress, stacksize
/* 0012F4 700006F4 03E00008 */ jr $ra
/* 0012F8 700006F8 2442FFF8 */ addiu $v0, $v0, -8
# end grow_stack

View File

@ -0,0 +1 @@
90bffa1e9d892c6f2927919b8323ede9ba8c5032

View File

@ -0,0 +1 @@
efc7dd334bf4b84648c7f7d28beb22fd7753590b

27
src/code/proc_700006FC.s Normal file
View File

@ -0,0 +1,27 @@
# assembler directives
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
.section .text, "ax"
.global proc_700006FC
proc_700006FC:
/* 0012FC 700006FC 240E0001 */ addiu $t6, $zero, 1
/* 001300 70000700 3C018002 */ lui $at, %hi(unknown_init_val)
/* 001304 70000704 AC2E3044 */ sw $t6, %lo(unknown_init_val)($at) # $t6, 0x3044($at)
/* 001308 70000708 3C018002 */ lui $at, %hi(cart_hw_address)
/* 00130C 7000070C 3C0F1000 */ lui $t7, %hi(0x10000000)
/* 001310 70000710 03E00008 */ jr $ra
/* 001314 70000714 AC2F3048 */ sw $t7, %lo(cart_hw_address)($at) # $t7, 0x3048($at)
# end proc_700006FC
.section .data
#referenced by proc_700006FC
unknown_init_val:
.word 0x00000002
#referenced by proc_700006FC
cart_hw_address:
.word 0x10000000

View File

@ -1 +1 @@
8f820b5e749cf8540f22b2ed5348b7f5815d3a6a
88321bf3724bb50e80bd708c05c8ac29ac2cd3b6

View File

@ -1 +1 @@
0b62f42271eb5d000d9071af811aa9b880f75451
cc1766ece673ab106b99bf22605398a2448aea33