Prev: D327 Up: Map Next: D354
D347: 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 D347 CALL SubtractFromBounty Take the price from the bounty.
D34A RET NC Return if there was enough.
D34B LD HL,$A257 Point HL at Bounty.
D34E LD BC,$0003 Set the number of bytes to three.
D351 JP FillMemory Jump to FillMemory.
Prev: D327 Up: Map Next: D354