Credits to @Tequila and @7443 for providing me with the offset where this is calculated.
Code is at
0xB5238; r4 = price of item, at the end of the block, r4 should have the marked up price.
Default code is as such:
lsr r0, r4, #0x1F add r0, r4, r0 asr r0, r0, #0x1 add r4, r4, r0
This is easy enough to change, for instance, to mark up by 25% instead of 50%, as so:
lsr r0, r4, #0x1E add r0, r4, r0 asr r0, r0, #0x2 add r4, r4, r0
I’m using this for VBA2, and here’s the code I’m using to install it:
ORG 0xB5238 //Change a division by 2 (markup by 1/2) to by 4 (markup by 1/4) SHORT 0x0FA0 0x1820 0x1080 POP