Minilop Retroware

Power Desk · Guided tour

Trim the engine

Remove the parts of the MPAGD engine your game never uses and win back memory. Take a short tour of the page.

The Power Desk Engine page, showing the linked engine, the game files and the list of features to remove

Step 1 of 12

  1. Trim your engine to fit

    The Engine page lets you remove the parts of the MPAGD engine your game never uses, which frees up memory. Use Next, or the numbers, to walk round the screen.

  2. Four tabs, and Engine is the last

    Code has four tabs: Event scripts, Labels, User routines and Engine. The green dot beside Engine shows that your engine is linked.

  3. Your engine

    Change folder points the Desk at your EngineZX.asm, and Unlink lets go of it. The line below shows which file is linked, how big it is and when it was saved. Your original is kept and is the starting point for every trim.

  4. Earlier versions

    Earlier versions of your engine are listed here, so you can see what you had before.

  5. Tell it about your game

    Game files shows where the Desk looks to find what your game uses. It reads your .agd game source and your compiled .asm from the project settings, and you can load a file by hand if you prefer. The compiled game gives an exact answer, better than the .agd.

  6. Music and adventure mode

    Tick the first box if your game uses AY music (compiled with -y) and the second for adventure mode (compiled with -a), so the Desk keeps what those need.

  7. Choose what to remove

    Tick the features your game does not use. Each one has a short description of the commands it covers, and the savings are estimates for each feature on its own.

  8. Quick ticking

    Tick everything unused ticks every feature your code does not use. Clear unticks them all and Tick all ticks the lot.

  9. Features your game uses

    A green "not used" tag means your game never calls the feature. A yellow tag lists the commands your game does use, such as SOUND or GET, and the box stays unticked so you do not remove it by mistake.

  10. The cost of each feature

    The figure at the right of each row is roughly how many bytes you save by removing that feature.

  11. Keep an eye on memory

    The Free memory gauge in the side list shows the bytes free in main memory and in each 128K bank.

  12. Then build the tape

    When your choices are made, build the tape, test it in the built-in emulator or open it in your own, all without leaving the Desk.

Next tour: Labels All tours

Pick another tour