summaryrefslogtreecommitdiff
path: root/progress.py
diff options
context:
space:
mode:
authorRoman971 <romanlasnier@hotmail.com>2020-03-23 23:16:05 +0100
committerRoman971 <romanlasnier@hotmail.com>2020-03-23 23:20:34 +0100
commitbd9dff6b7272082cdad20ba99e5c9ec540070c89 (patch)
tree00fca820704739cf1108a3250442763923d4867a /progress.py
parentda151300f74b13c8046e86cebf23112237627e1b (diff)
Update progress script to account for boot handwritten asm
Diffstat (limited to 'progress.py')
-rw-r--r--progress.py24
1 files changed, 7 insertions, 17 deletions
diff --git a/progress.py b/progress.py
index 62d201c85..2da97b2e3 100644
--- a/progress.py
+++ b/progress.py
@@ -88,28 +88,18 @@ nonMatchingASMBoot = GetNonMatchingSize("asm/non_matchings/boot")
nonMatchingASMCode = GetNonMatchingSize("asm/non_matchings/code") + GetNonMatchingSize("asm/non_matchings/libultra_code")
nonMatchingASMOvl = GetNonMatchingSize("asm/non_matchings/overlays")
-codeSize = 1004128 # 1.00mb
-bootSize = 36752
-#ovlSize = 3727584 # 3.727mb
-ovlSize = 2812000 # .text section only
-libultraSize = 40816 # This is temp
-audioSize = 0 # This is temp
-handwritten = 0 # This is temp
-
src -= nonMatchingASM
code -= nonMatchingASMCode
boot -= nonMatchingASMBoot
ovl -= nonMatchingASMOvl
asm += nonMatchingASM
-#print(nonMatchingASM)
-
-#asm = asm - (libultra_size + audio_size + handwritten - boot_size - code_size - ovl_size)
-#asm = asm - (libultra_size + audio_size + handwritten)
-#asm = -(libultra_size + audio_size + handwritten - boot_size - code_size - ovl_size)
-#asm += codeSize
-#asm += bootSize
-#asm += ovlSize
-#asm -= src
+
+bootSize = 30704 # decompilable code only
+codeSize = 1004128 # .text section except rsp bins (1.00mb)
+ovlSize = 2812000 # .text sections
+handwritten = 5840 # boot only
+
+asm -= handwritten
total = src + asm
srcPct = 100 * src / total