54 Commits

Author SHA1 Message Date
Brian Pugh
832fddc162 Add 0x4 magic into metadata to differentiate itself from code. 2025-02-19 15:51:39 -05:00
Brian Pugh
20325606be store firmware metadata in vector table 2025-02-19 13:52:54 -05:00
Brian Pugh
f9a8fac380 fix rwdata table end reference 2021-11-25 19:41:35 -08:00
Brian Pugh
c43a0fa014 device-specific linker config 2021-11-25 19:41:35 -08:00
Brian Pugh
c9bb39bcf3 disable rwdata tweaks on zelda until we find some RAM 2021-11-15 12:36:34 -08:00
Brian Pugh
fedb41b647 more zelda prep 2021-11-15 12:36:34 -08:00
Brian Pugh
c0e1519d99 give better name to rwdata indices 2021-11-14 09:21:20 -08:00
Brian Pugh
bad9aa6c48 set RWDATA_IDX as a class variable 2021-11-14 09:21:20 -08:00
Brian Pugh
1a29b8e6ec transform move_to_compressed_memory into a method 2021-11-14 09:21:20 -08:00
Brian Pugh
7f3c508ea2 transform move_ext into a method 2021-11-14 09:21:20 -08:00
Brian Pugh
5206dc823e transform move_ext_external into a method 2021-11-14 09:21:20 -08:00
Brian Pugh
07445faf3d transform move_to_int into a method 2021-11-14 09:21:20 -08:00
Brian Pugh
b1df0574fd transform rwdata_erase into a method 2021-11-14 09:21:20 -08:00
Brian Pugh
ee3cbe3f3f transform rwdata_lookup into method 2021-11-14 09:21:20 -08:00
Brian Pugh
78820b3f2d transform compressed_memory_free_space into a property 2021-11-14 09:21:20 -08:00
Brian Pugh
8a07eeb034 transform int_free_space into a property 2021-11-14 09:21:20 -08:00
Brian Pugh
e17050023b transform compressed_memory_compressed_len into a method 2021-11-14 09:21:20 -08:00
Brian Pugh
ea84bef32b renamed compressed_memory_pos -> self.compressed_memory_pos 2021-11-14 09:21:20 -08:00
Brian Pugh
574563b000 rename int_pos -> self.int_pos and __call__ -> patch 2021-11-14 09:21:20 -08:00
Brian Pugh
48cbce0e23 rename offset -> self.ext_offset 2021-11-14 09:21:20 -08:00
Brian Pugh
239ad8967d get rid of DevicePatchMixin 2021-11-14 09:21:20 -08:00
Brian Pugh
c1c2a6bbd8 give sram3 a more generic name 2021-11-14 09:21:20 -08:00
Brian Pugh
49d48aa9b0 automatic registry for devices 2021-11-14 09:21:20 -08:00
Brian Pugh
1b89eba61d massive reorganization; still needs cleanup 2021-11-14 09:21:20 -08:00
Brian Pugh
b352960468 Disable smb1-graphics mod macro if no mods are specified 2021-09-29 08:53:43 -07:00
Brian Pugh
696011e464 progress in having dynamically loadable rom graphics 2021-09-26 17:37:23 -07:00
Brian Pugh
5e28daa57c properly initialize custom rwdata 2021-09-26 14:52:27 -07:00
Brian Pugh
e5136c25dc linting 2021-09-24 17:25:01 -07:00
Brian Pugh
b417498ec7 Black linting 2021-09-24 17:14:06 -07:00
Brian Pugh
4dc2acb636 tweak sram address 2021-09-24 09:08:22 -07:00
Brian Pugh
f072050f53 dynamically move to ext if int is full 2021-09-22 10:11:06 -07:00
Brian Pugh
4f364aedce Have nested exceptions come from None to cleanup backtraces 2021-09-22 09:27:03 -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
8751d5ea56 replace a nop with a simulated return value 2021-09-21 15:09:55 -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
6fa60c51d0 misc fixes 2021-09-20 22:30:48 -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
58c53d74f6 Add SRAM3 class and added it to Device 2021-09-20 17:21:09 -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
3abd7a2c93 Make an explicit exception for running out of internal space 2021-09-19 14:28:17 -07:00
Brian Pugh
8368284af3 Use lookup dictionary for references instead of just add-math. Tighten up some program packing 2021-09-19 11:38:53 -07:00
Brian Pugh
ebad8b2778 Lookup class for colorized outputs 2021-09-19 09:32:37 -07:00
Brian Pugh
1369f50b11 wip 2021-09-19 09:17:38 -07:00
Brian Pugh
5911bc3825 more progress moving stuff to internal firmware 2021-09-17 10:05:33 -07:00