Prev: 9A05 Up: Map Next: 9A3D
9A13: Action: Print The Sale Remark
Prints the sale remark when both character-state marks are set. Otherwise it clears the action marks and prints the other line.
Bit 1 of the state byte at 994D+29 is clear?
ActionPrintSaleRemark 9A13 LD A,($9976) Jump to ActionPrintSaleRemark_ResetActionBits if bit 1 of the state byte at 994D+29 is clear.
9A16 AND $02
9A18 JR Z,ActionPrintSaleRemark_ResetActionBits
Bit 1 of the state byte at 994D+37 is clear?
9A1A LD A,($9984) Jump to ActionPrintSaleRemark_ResetActionBits if bit 1 of the state byte at 994D+37 is clear.
9A1D AND $02
9A1F JR Z,ActionPrintSaleRemark_ResetActionBits
Mark action taken.
9A21 CALL MarkActionTaken Call MarkActionTaken to mark the action taken.
9A24 LD HL,$99B2 Set bit 1 of the character state at 99A9+09 and take the message at 6D9A+02FF.
9A27 SET 1,(HL)
9A29 LD HL,$7099
9A2C JP PrintTextAndHandleControlCharacters Jump ahead to PrintTextAndHandleControlCharacters to print this message.
Clears bits 0 and 1 of the action flags and prints the token at 7265.
ActionPrintSaleRemark_ResetActionBits 9A2F RES 1,(IX+$03) Clear the action-taken flag and clear the action-pending flag.
9A33 RES 0,(IX+$03)
9A37 LD HL,$7265 Jump ahead to PrintTextAndHandleControlCharacters to print this message.
9A3A JP PrintTextAndHandleControlCharacters
Prev: 9A05 Up: Map Next: 9A3D