Are you, in fact, a pregnant lady who lives in the apartment next door to Superdeath's parents? - Commodore

Create an account  

 
Disassembly questions

alright, thx. you have been a great help. for now, jumping over the calls was enough, i made some room.

[Image: 9UKGidU.png?1]

change function at 5e5cf to return strings for up to 10 powers and ignore descriptions:
5e5d7: 8b 7e 08 -> xx xx 0a
5e5f1: ba 28 00 -> xx 14 xx
5e606: 83 7e fe 05 -> xx xx xx 0a
5eac8: 59 59 -> eb 1d
5e6a0, 5e724, 5e7a8, 5e831, 5e8b5, 5e939, 5e9c0, 5eaf3, 5eaf8: 83 fe 05 -> xx xx 0a
5eafd: be 05 00 -> xx 0a xx

display function at 617fc:
use large font for up to 8 powers in display
618bb: 83 7e fc 05 -> xx xx xx 09

display strings and icons in new locations and use the new pointer to the strings:
replace code block from 61937 to 619be with

C6 46 ED 00 C7 46 EB 00 00 BB 0B 00 3B 76 FC 7D
72 EB 2C XX XX XX XX XX 83 C4 08 57 8B C6 BA 14
00 F7 EA 8D 96 C8 FE 03 C2 50 8B 46 E9 8B 56 F8
03 D0 52 8B 46 EF 90 50 XX XX XX XX XX EB 3D 8B
46 EB F7 6E FA 89 46 E9 80 7E ED 01 7D 04 EB 0E
XX XX BB 80 00 FF 46 EB C6 46 ED 00 EB 04 C6 46
ED 01 8B C3 05 09 00 89 46 EF FF 76 0A 57 8B 46
E9 05 22 00 50 53 E9 9A FF 90 XX XX 46 83 C4 08
E9 86 FF 90 90 90 90 90

the X are the far call locations.

there is some room for optimization, and removing the description code frees up some space in the area that is currently unsused.
Reply



Messages In This Thread
Disassembly questions - by MrBiscuits - October 26th, 2015, 09:04
RE: Disassembly questions - by MrBiscuits - October 26th, 2015, 09:05
RE: Disassembly questions - by MrBiscuits - October 26th, 2015, 09:14
RE: Disassembly questions - by Seravy - October 26th, 2015, 09:56
RE: Disassembly questions - by I like Serena - October 26th, 2015, 14:00
RE: Disassembly questions - by Seravy - October 26th, 2015, 14:50
RE: Disassembly questions - by Seravy - October 26th, 2015, 14:54
RE: Disassembly questions - by I like Serena - October 26th, 2015, 14:59
RE: Disassembly questions - by Seravy - October 26th, 2015, 15:02
RE: Disassembly questions - by Bogus - May 29th, 2016, 08:01
RE: Disassembly questions - by Seravy - May 29th, 2016, 10:28
RE: Disassembly questions - by Bogus - May 29th, 2016, 11:07
RE: Disassembly questions - by Seravy - May 29th, 2016, 16:27
RE: Disassembly questions - by Bogus - May 29th, 2016, 16:46
RE: Disassembly questions - by Seravy - May 30th, 2016, 03:27
RE: Disassembly questions - by Bogus - May 30th, 2016, 07:21

Forum Jump: