Prev: 54055 Up: Map Next: 54100
54087: Take From Bounty
Used by the routines at HandleHorse and TakeFine.
Takes a price from the bounty, and sets the bounty to zero if it is more than the bounty.
Input
BC The price, as four binary coded decimal digits
TakeFromBounty 54087 CALL SubtractFromBounty Take the price from the bounty.
54090 RET NC Return if there was enough.
54091 LD HL,41559 Point HL at Bounty.
54094 LD BC,3 Set the number of bytes to three.
54097 JP FillMemory Jump to FillMemory.
Prev: 54055 Up: Map Next: 54100