198 Commits

Author SHA1 Message Date
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
37d97da586 Disable mario song activation if mario song is removed 2021-09-25 22:07:02 -07:00
Brian Pugh
54fb0f8b62 make image indexing functions a little more powerful 2021-09-25 18:01:07 -07:00
Brian Pugh
3c2cd9ff1f Add option to override tileset 2021-09-25 14:58:03 -07:00
Brian Pugh
6c4e42d1b2 Reworked tilemap_to_bytes to actually work 2021-09-25 11:48:25 -07:00
Brian Pugh
d7b78a5ad7 initial tilemap_to_bytes implementation; it remaps a few colors wrong though 2021-09-25 11:06:33 -07:00
Brian Pugh
d8ec92030c remove matplotlib dependency 2021-09-25 10:24:25 -07:00
Brian Pugh
6c57205ad7 linting 2021-09-24 17:39:46 -07:00
Brian Pugh
3b246d2f51 dump iconset 2021-09-24 17:37:15 -07:00
Brian Pugh
ac7e242b6d Dump tileset during build 2021-09-24 17:37:13 -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
7c459c6b44 Add SMB2 dumping support 2021-09-24 16:35:30 -07:00
Brian Pugh
89560357d2 Add NES header to smb1 dump for easier usage 2021-09-24 10:58:08 -07:00
Brian Pugh
2f7322b22b Add ability to override smb1 2021-09-24 10:49:40 -07:00
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