Prev: A6FD Up: Map Next: A779
A6FF: Routine at A6FF
Used by the routines at A280, Handler_ScenicEvents, ACFC and ChangeRoom.
A6FF PUSH HL Stash HL, DE and BC on the stack.
A700 PUSH DE
A701 PUSH BC
A702 LD HL,$A6FD HL=A6FD.
A705 LD (HL),$40 Write 40 to *HL.
A707 INC HL Increment HL by one.
A708 LD (HL),$FF Write FF to *HL.
A70A LD E,(IX+$00) E=*IX+00.
A70D PUSH IX Stash IX on the stack.
A70F LD IX,$A785 IX=A785.
A713 CALL GetTableEntry Call GetTableEntry.
A716 POP IX Restore IX from the stack.
A718 JP (HL) Jump to *HL.
A719 INC IX Increment IX by one.
This entry point is used by the routines at A862, A871, A898, A8B2, A97F and A990.
A71B INC IX Increment IX by one.
This entry point is used by the routines at A80B, A817, A826, A832, A841, A84D, A856, A883, A88F, A8CF, A8D8, A8E4, A8ED, A8F9, A90D, A924, A947, A96A, A973, A9A4, A9B0 and A9CB.
A71D INC IX Increment IX by one.
This entry point is used by the routine at A807.
A71F INC IX Increment IX by one.
A721 PUSH AF BC=AF (using the stack).
A722 POP BC
A723 LD A,($A6FE) Compare *A6FE with FE...
A726 CP $FE
A728 LD A,($A6FD) A=*A6FD.
A72B JR NZ,$A730 Jump to A730 if *A6FE is not equal to FE.
A72D OR C Set the bits from C.
A72E JR $A731 Jump to A731.
A730 AND C Merge the bits from C.
A731 LD ($A6FD),A Write A to *A6FD.
A734 LD A,(IX+$00) A=*IX+00.
A737 CP $FE Jump to A744 if A is less than FE.
A739 JR C,$A744
A73B LD ($A6FE),A Write A to *A6FE.
A73E INC IX Increment IX by one.
A740 JR $A70A Jump to A70A.
A742 INC IX Increment IX by one.
A744 LD E,(IX+$00) E=*IX+00.
A747 PUSH IX Stash IX on the stack.
A749 LD IX,$A7C1 IX=A7C1.
A74D CALL GetTableEntry Call GetTableEntry.
A750 POP IX Restore IX from the stack.
A752 LD A,($A6FD) C=*A6FD.
A755 LD C,A
A756 PUSH BC AF=BC (using the stack).
A757 POP AF
A758 JP (HL) Jump to *HL.
A759 INC IX Increment IX by one.
This entry point is used by the routines at A9DA, A9E9, AA08, AA17, AA26, AA48, AB37 and AB73.
A75B INC IX Increment IX by one.
This entry point is used by the routines at AA39, AA5F, Handler_PickUpItem, Handler_DropItem, AAA8, AAB4, AAC0, AACC, AAD8, AAE4, AB0E, AB22, AB4A, AB5E, ABB1 and ABE8.
A75D INC IX Increment IX by one.
This entry point is used by the routines at AA00, AAF3, AAFA, AB04, AB8B, AB94, AB9D, ABA8, ABBD and ABDF.
A75F INC IX Increment IX by one.
This entry point is used by the routines at A9DA, A9E9 and AA00.
A761 LD A,(IX+$00) A=*IX+00.
A764 CP $FF Jump to A742 if A is equal to FF.
A766 JR Z,$A742
A768 JR $A702 Jump to A702.
This entry point is used by the routines at A817, A832, A856, A871, A883, A8B2, A8D8, A8ED, A90D, A924, A947, A973, A990, A9B0 and A9CB.
A76A JR NZ,$A770 Jump to A770 if A is not equal to FF.
A76C LD A,$01 A=01.
A76E AND A Set flags.
A76F RET Return.
A770 XOR A A=00.
A771 RET Return.
This entry point is used by the routines at A80B, A817, A826, A832, A841, A862, A871, A9A4, A9B0, A9CB, AA26, AA39, AA48, AA5F, Handler_PickUpItem, Handler_DropItem and AAE4.
A772 CP $FF Return if A is not equal to FF.
A774 RET NZ
A775 LD A,($A805) A=*A805.
A778 RET Return.
Prev: A6FD Up: Map Next: A779