I did a few tricks to save on space when I was writing my sound engine, granted 8KB is more than 4KB so not as tight But might be some avenues to explore.   If you have a lot of MOVEI instructions, have a think for ways to reduce their number, a regular JRISC instruction is 16bit, but a movei is 48bit due to the address. If you are setting up pointers to RAM it MIGHT be possible to get there using a single movei and then addq and shifts to add on offsets. Fair amount of faff but can save
    • Like
    5