P#43919 2017-09-04 14:39 ( Edited 2017-09-07 03:52)
P#43825 2017-09-01 02:23 ( Edited 2017-09-21 05:33)
P#43402 2017-08-18 13:51 ( Edited 2017-08-20 15:26)
I can never resist an opportunity to mess around with regular expressions, so here's my attempt at a code minimizing script.
If you already have perl installed, you just need to run 'perl minimize.pl yourcode.p8'. It will output the minimized code to 'yourcode_min.p8". Token mappings are also saved as 'yourcode tokens.txt' to make debugging easier. I've only tested it with my game and a few random carts. Let me know if it doesn't work on your code, I'm sure there are a couple obscure reserved words and odd failure conditions I've missed.