Prev: 42749 Up: Map Next: 42873
42751: Routine at A6FF
Used by the routines at 41600, Handler_ScenicEvents, 44284 and ChangeRoom.
42751 PUSH HL Stash HL, DE and BC on the stack.
42752 PUSH DE
42753 PUSH BC
42754 LD HL,42749 HL=42749.
42757 LD (HL),64 Write 64 to *HL.
42759 INC HL Increment HL by one.
42760 LD (HL),255 Write 255 to *HL.
42762 LD E,(IX+0) E=*IX+0.
42765 PUSH IX Stash IX on the stack.
42767 LD IX,42885 IX=42885.
42771 CALL GetTableEntry Call GetTableEntry.
42774 POP IX Restore IX from the stack.
42776 JP (HL) Jump to *HL.
42777 INC IX Increment IX by one.
This entry point is used by the routines at 43106, 43121, 43160, 43186, 43391 and 43408.
42779 INC IX Increment IX by one.
This entry point is used by the routines at 43019, 43031, 43046, 43058, 43073, 43085, 43094, 43139, 43151, 43215, 43224, 43236, 43245, 43257, 43277, 43300, 43335, 43370, 43379, 43428, 43440 and 43467.
42781 INC IX Increment IX by one.
This entry point is used by the routine at 43015.
42783 INC IX Increment IX by one.
42785 PUSH AF BC=AF (using the stack).
42786 POP BC
42787 LD A,(42750) Compare *42750 with 254...
42790 CP 254
42792 LD A,(42749) A=*42749.
42795 JR NZ,42800 Jump to 42800 if *42750 is not equal to 254.
42797 OR C Set the bits from C.
42798 JR 42801 Jump to 42801.
42800 AND C Merge the bits from C.
42801 LD (42749),A Write A to *42749.
42804 LD A,(IX+0) A=*IX+0.
42807 CP 254 Jump to 42820 if A is less than 254.
42809 JR C,42820
42811 LD (42750),A Write A to *42750.
42814 INC IX Increment IX by one.
42816 JR 42762 Jump to 42762.
42818 INC IX Increment IX by one.
42820 LD E,(IX+0) E=*IX+0.
42823 PUSH IX Stash IX on the stack.
42825 LD IX,42945 IX=42945.
42829 CALL GetTableEntry Call GetTableEntry.
42832 POP IX Restore IX from the stack.
42834 LD A,(42749) C=*42749.
42837 LD C,A
42838 PUSH BC AF=BC (using the stack).
42839 POP AF
42840 JP (HL) Jump to *HL.
42841 INC IX Increment IX by one.
This entry point is used by the routines at 43482, 43497, 43528, 43543, 43558, 43592, 43831 and 43891.
42843 INC IX Increment IX by one.
This entry point is used by the routines at 43577, 43615, Handler_PickUpItem, Handler_DropItem, 43688, 43700, 43712, 43724, 43736, 43748, 43790, 43810, 43850, 43870, 43953 and 44008.
42845 INC IX Increment IX by one.
This entry point is used by the routines at 43520, 43763, 43770, 43780, 43915, 43924, 43933, 43944, 43965 and 43999.
42847 INC IX Increment IX by one.
This entry point is used by the routines at 43482, 43497 and 43520.
42849 LD A,(IX+0) A=*IX+0.
42852 CP 255 Jump to 42818 if A is equal to 255.
42854 JR Z,42818
42856 JR 42754 Jump to 42754.
This entry point is used by the routines at 43031, 43058, 43094, 43121, 43139, 43186, 43224, 43245, 43277, 43300, 43335, 43379, 43408, 43440 and 43467.
42858 JR NZ,42864 Jump to 42864 if A is not equal to 255.
42860 LD A,1 A=1.
42862 AND A Set flags.
42863 RET Return.
42864 XOR A A=0.
42865 RET Return.
This entry point is used by the routines at 43019, 43031, 43046, 43058, 43073, 43106, 43121, 43428, 43440, 43467, 43558, 43577, 43592, 43615, Handler_PickUpItem, Handler_DropItem and 43748.
42866 CP 255 Return if A is not equal to 255.
42868 RET NZ
42869 LD A,(43013) A=*43013.
42872 RET Return.
Prev: 42749 Up: Map Next: 42873