Jump to content


Photo

JSW1 Unused address trimmer


  • Please log in to reply
3 replies to this topic

#1 Spider

Spider

    DEC (HL)

  • Administrator
  • 3,961 posts

Posted 02 March 2016 - 12:45 PM

Please note I've not tested this to any extent (read that as tested at all) ;) :)

 

This is a simple Basic program to 'trim' the unused addresses as per SkoolKids's disassembly of JSW:

 

jsw_trimmer_1.png

 

Listing and output:

 

jsw_trimmer_2.png jsw_trimmer_3.png

 

Last but not least, the file itself:

 

Attached File  jsw_trimmer.tap   532bytes   92 downloads


Changing order to chaos since 1984

#2 Spider

Spider

    DEC (HL)

  • Administrator
  • 3,961 posts

Posted 04 March 2016 - 04:45 PM

I thought (when writing this) to include removal of the 'dead' routine in-between the loops specifically 35345 to 35365 as this is never ran. Forcing to run by POKE 35343, 32 (this changes the JR Z to JR NZ) but I have not really tried it properly.

 

missthisout.png

 

It was left 'in place' as authors may either modify it so it is used (in which case the 'trimmer would 'eat' it) or use the space for something else although the primary reason was simply as it was not listed in the disassembly itself so I considered it not 100% 'safe' to remove. Having said that the 'trimmer' should only really be ran on a fresh file or one without any code modifications...

 

 

 

 


Changing order to chaos since 1984

#3 IRF

IRF

    Advanced Member

  • Contributor
  • 4,274 posts

Posted 04 March 2016 - 04:49 PM

There are probably a few other bits that are 'spare' but which aren't listed in the disassembly 'index'.



#4 Spider

Spider

    DEC (HL)

  • Administrator
  • 3,961 posts

Posted 30 September 2016 - 12:22 PM

I've re-written this from scratch although I've not quite finished.

 

It now offers more locations to 'trim' although it will ask for confirmation too. I plan to include a descriptor field for each 'area' where appropriate too.

 

The question I have is should use the user be presented with choices, working though a set of yes/no questions and then at the end it will 'trim' or should it be trimmed at each question ?

 

The latter is easier to do although unless I do it is assembly the larger chunks will be slow. The 'set of questions' may seem easier to follow however it will be more work to do this... :unsure:


Changing order to chaos since 1984




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users