start organizing split code into object.s based on logical patterns

Former-commit-id: 07099495cac8642f3a46d984323f144cea1ee85e [formerly c0fd1a2fe56a02b64c9ca88cc48c27559384a27d] [formerly c571bbd9bce003da023765fc32439ae711998373 [formerly 392bbaa8efc220847734bceedae9d1c5a1cb6e12]]
Former-commit-id: 60f1efe8cf3c07aaf4ce591b4f93ad930c68fcd5 [formerly cbff6ea11b17d768b6923fe6bc502f63b91b24f2]
Former-commit-id: 2f95d585a33ffbcfe5e13fbeab67b28d7d19da4a
This commit is contained in:
Larry 2017-08-27 10:58:19 -05:00
parent c67fb0479b
commit 7d8e50de04
14 changed files with 51 additions and 55 deletions

View File

@ -1 +1 @@
a8312a387ac9bb2ac46085e7e2a70838a6ae34a0
777e73b60b3d06a2fdafb45c5b640b6e0e32e548

View File

@ -1 +1 @@
b27d923e533ea6ba6b344cd48eed2c754f39d0d8
d22d04ed009eacabbbfe1e31f6739059d8579cb4

View File

@ -1,19 +0,0 @@
# 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

@ -1 +0,0 @@
90bffa1e9d892c6f2927919b8323ede9ba8c5032

View File

@ -0,0 +1 @@
538657a37cb12d5aabf8f2cb038b3268c387a1c4

View File

@ -1 +1 @@
efc7dd334bf4b84648c7f7d28beb22fd7753590b
01454d47d4d414fdc8888606e523cd916b66e720

View File

@ -1 +0,0 @@
c7052d6f6689cbafa9cda2f441790119b14b3db7

View File

@ -1,27 +0,0 @@
# 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

46
src/code/scheduler.inc Normal file
View File

@ -0,0 +1,46 @@
.section .data
stderr.enable:
#referenced by set_stderr_enable, testtodisplaystderrandupdatecount, testtodisplaystderrorevery16thframe
.word 0x00000000
stderr.activated:
#referenced by set_stderr_activated, testtodisplaystderrandupdatecount, testtodisplaystderrorevery16thframe
.word 0x00000000
stderr.permitted:
#referenced by set_stderr_permitted, testtodisplaystderrandupdatecount, testtodisplaystderrorevery16thframe
.word 0x00000000
user.compare:
#referenced by set_user_compare, testtodisplaystderrorevery16thframe
.word 0x02AEA540
currentcount:
#referenced by testtodisplaystderrandupdatecount, testtodisplaystderrorevery16thframe, storecurrentcount
.word 0x00000000
setby_DPCfill_0:
#referenced by DPCfill
.word 0x00000000
setby_DPCfill_1:
#referenced by DPCfill
.word 0x00000000
dword_800230B0:
.float 0.0
.float 1.0
.float 1.0
flt_800230BC:
.float 1.0
.float 1.0
.float 0.0
.word 0x00000000
dword_800230CC:
.word 0x00000001

View File

@ -0,0 +1 @@
5dd892c707f54af6be00cb3424d3c3b85ce01792

View File

@ -1 +0,0 @@
19c4dc09c980e6ede7334b28cd6fc44985f5602f

View File

@ -1 +0,0 @@
9fac7b6395e790a6d67d351f68333dc1d32dd48d

View File

@ -1 +0,0 @@
78a5bcfba58c5eb7d4e4584315e005da940aaa7a

View File

@ -1 +0,0 @@
698e1264a4277ec76d98b5b12cf108cbfd7a8ef9