132 Commits

Author SHA1 Message Date
Brian Pugh
d8c9c6b08e improve argparse organization 2021-09-24 09:54:53 -07:00
Brian Pugh
afdf449237 fix smb1 and smb2 sound 2021-09-24 09:37:41 -07:00
Brian Pugh
4dc2acb636 tweak sram address 2021-09-24 09:08:22 -07:00
Brian Pugh
64ff9d523a misc 2021-09-23 10:55:48 -07:00
Brian Pugh
b42da3d60c make more moves to sram3 now that all the backup logic is put in place 2021-09-22 19:13:12 -07:00
Brian Pugh
47a0243658 fix docstrings 2021-09-22 19:05:52 -07:00
Brian Pugh
9c4ccc375f rename move_ext_extended to just move_ext 2021-09-22 19:00:03 -07:00
Brian Pugh
546ec636d2 if it can't fit in sram3, attempt to put it in internal 2021-09-22 18:55:26 -07:00
Brian Pugh
f072050f53 dynamically move to ext if int is full 2021-09-22 10:11:06 -07:00
Brian Pugh
d3e2f8d5f2 fix rounding direction 2021-09-22 09:30:16 -07:00
Brian Pugh
4f364aedce Have nested exceptions come from None to cleanup backtraces 2021-09-22 09:27:03 -07:00
Brian Pugh
18e7454788 towards dynamic section placement 2021-09-22 08:46:22 -07:00
Brian Pugh
0cdeade155 don't move to sram if below a compression ratio threshold 2021-09-21 21:01:22 -07:00
Brian Pugh
ba8f400a16 Print dynamic compression ratios when adding to sram3 2021-09-21 17:45:52 -07:00
Brian Pugh
dbadf93ef9 working SMB2 2021-09-21 16:20:03 -07:00
Brian Pugh
a0a4a6ba66 Merge branch 'more-int' into move-to-sram3 2021-09-21 15:12:15 -07:00
Brian Pugh
8751d5ea56 replace a nop with a simulated return value 2021-09-21 15:09:55 -07:00
Brian Pugh
180f23989a added a bunch of explicit sram3 references 2021-09-21 12:07:42 -07:00
Brian Pugh
6b7c7035a2 print sram data upon completion 2021-09-21 12:07:20 -07:00
Brian Pugh
9af6fd775a hijack some ram at 0x240e2b38 2021-09-21 11:35:33 -07:00
Brian Pugh
78e66fa48e Update end-of-rwdata-table pointer 2021-09-21 10:15:03 -07:00
Brian Pugh
371c3517d1 fix linker script, add __str__ method to rwdata 2021-09-21 09:33:02 -07:00
Brian Pugh
b71ead9223 misc fixes 2021-09-21 08:58:47 -07:00
Brian Pugh
08e6df012c some commmented out and re-arranged code for sram3 2021-09-21 07:58:10 -07:00
Brian Pugh
6fa60c51d0 misc fixes 2021-09-20 22:30:48 -07:00
Brian Pugh
617e9db575 fixed missing offset from compression 2021-09-20 21:40:14 -07:00
Brian Pugh
6680886c12 move rwdata to the end, shift novel code up 2021-09-20 21:35:51 -07:00
Brian Pugh
4afbb42ffa RWData initial commit to have greater control over data placement 2021-09-20 21:10:55 -07:00
Brian Pugh
32077394fb Use standard move_ext for graphic tiles; maybe revert once sram3 is all working 2021-09-20 17:23:15 -07:00
Brian Pugh
58c53d74f6 Add SRAM3 class and added it to Device 2021-09-20 17:21:09 -07:00
Brian Pugh
a134d29b76 Add comments about potential space savings of compressing (i think) images 2021-09-20 11:52:29 -07:00
Brian Pugh
e7b568d59f Add --no-smb2 flag 2021-09-20 11:47:44 -07:00
Brian Pugh
7d0518e727 bkpt method 2021-09-20 11:41:01 -07:00
Brian Pugh
4863c2b254 Cleanup the external flash when --no-save is specified. Cleanup visualization 2021-09-20 11:40:47 -07:00
Brian Pugh
ccfcec96c4 Implemented disabling nvram saving 2021-09-20 10:03:57 -07:00
Brian Pugh
4e11a1a6b7 Disable OTFDEC by default 2021-09-20 09:54:02 -07:00
Brian Pugh
64676f0112 disable nvram loading 2021-09-20 09:30:05 -07:00
Brian Pugh
085312d1c4 unconditional branch method 2021-09-20 09:17:27 -07:00
Brian Pugh
bf513aeda8 revert delete 2021-09-20 09:03:26 -07:00
Brian Pugh
af47fe0e78 two's compliment for bl 2021-09-20 08:52:50 -07:00
Brian Pugh
5bceaca30d Delete seemingly unused data; saves 2880 bytes 2021-09-20 07:41:06 -07:00
Brian Pugh
021b16ef48 improve comments 2021-09-19 21:25:23 -07:00
Brian Pugh
82f612ed05 solve rounded 4 bytes 2021-09-19 21:18:08 -07:00
Brian Pugh
f5317752b8 Add --no-save argument (not yet hooked up). Update README 2021-09-19 20:34:47 -07:00
Brian Pugh
db553357ad move last chunk, need find source of remaining 4 byte chunk 2021-09-19 14:50:30 -07:00
Brian Pugh
34bdac0f22 simplify patch branching for different configs 2021-09-19 14:46:12 -07:00
Brian Pugh
3abd7a2c93 Make an explicit exception for running out of internal space 2021-09-19 14:28:17 -07:00
Brian Pugh
b4c2f5f608 mostly done move to int 2021-09-19 14:20:17 -07:00
Brian Pugh
0704c16ad8 some cleanup 2021-09-19 11:58:05 -07:00
Brian Pugh
73fa1bea1b Print remaining internal free space 2021-09-19 11:44:54 -07:00