Prev: 47900 Up: Map Next: 50049
49920: Scan Object Slots
Used by the routine at Dispatch_Phase.
Clears the slot marks, then walks the index at Scan_Index.
Scan_Object_Slots 49920 CALL Scan_Object_Slots_7 Call Scan_Object_Slots_7.
49923 CALL Scan_Object_Slots_1 Call Scan_Object_Slots_1.
49926 LD HL,61175 Point HL at Scan_Index.
Scan_Object_Slots_0 49929 LD E,(HL) LD E,(HL).
49930 INC (HL) INC (HL).
49931 RET Z Return if zero.
49932 LD D,228 Set D to 228.
49934 PUSH DE Stash DE on the stack.
49935 POP IX Restore IX from the stack.
49937 PUSH HL Stash the pointer on the stack.
49938 CALL Find_Empty_Slot_77 Call Find_Empty_Slot_77.
49941 POP HL Restore HL from the stack.
49942 INC L Advance the low byte by one.
49943 JR Scan_Object_Slots_0 Jump to Scan_Object_Slots_0.
This entry point is used by the routine at Reset_Scan_Index.
Scan_Object_Slots_1 49945 CALL Scan_Object_Slots_2 Call Scan_Object_Slots_2.
49948 LD (HL),255 LD (HL),$FF.
49950 RET Return.
Scan_Object_Slots_2 49951 CALL Scan_Object_Slots_7 Call Scan_Object_Slots_7.
49954 LD HL,61175 Point HL at Scan_Index.
Scan_Object_Slots_3 49957 PUSH HL Stash the pointer on the stack.
49958 CALL Scan_Object_Slots_4 Call Scan_Object_Slots_4.
49961 POP HL Restore HL from the stack.
49962 INC A Increment A by one.
49963 RET Z Return if zero.
49964 SUB 2 SUB $02.
49966 CPL Invert A.
49967 AND %00000111 AND $07.
49969 ADD A,A ADD A,A.
49970 ADD A,A ADD A,A.
49971 ADD A,A ADD A,A.
49972 ADD A,A ADD A,A.
49973 ADD A,128 ADD A,$80.
49975 LD (HL),A LD (HL),A.
49976 INC L Advance the low byte by one.
49977 ADD A,15 ADD A,$0F.
49979 LD E,A LD E,A.
49980 LD D,228 Set D to 228.
49982 LD A,A LD A,A.
49983 LD (DE),A LD (DE),A.
49984 JR Scan_Object_Slots_3 Jump to Scan_Object_Slots_3.
Scan_Object_Slots_4 49986 LD IX,58496 Point IX at Long_Object_Slots.
49990 LD A,255 Set A to 255.
49992 PUSH AF Stash AF on the stack.
49993 LD A,8 Set A to 8.
49995 LD BC,16 Set BC to 16.
49998 LD DE,0 Set DE to 0.
Scan_Object_Slots_5 50001 BIT 0,(IX+0) BIT 0,(IX+$00).
50005 JR Z,Scan_Object_Slots_6 Jump to Scan_Object_Slots_6 if zero.
50007 BIT 0,(IX+15) BIT 0,(IX+$0F).
50011 JR NZ,Scan_Object_Slots_6 Jump to Scan_Object_Slots_6 if non-zero.
50013 LD L,(IX+5) LD L,(IX+$05).
50016 LD H,(IX+6) LD H,(IX+$06).
50019 AND A Clear carry.
50020 SBC HL,DE Subtract DE.
50022 JR C,Scan_Object_Slots_6 Jump to Scan_Object_Slots_6 if carry is set.
50024 ADD HL,DE Add DE.
50025 EX DE,HL Swap DE with HL.
50026 POP HL Restore HL from the stack.
50027 PUSH AF Stash AF on the stack.
Scan_Object_Slots_6 50028 ADD IX,BC Advance IX by BC.
50030 DEC A Decrease A by one.
50031 JR NZ,Scan_Object_Slots_5 Jump to Scan_Object_Slots_5 if non-zero.
50033 POP AF Restore AF from the stack.
50034 RET Return.
This entry point is used by the routine at Reset_Scan_Index.
Scan_Object_Slots_7 50035 XOR A Clear A.
50036 LD HL,58511 Point HL at Slot_Mark.
50039 LD DE,16 Set DE to 16.
50042 LD B,8 Set the counter to 8 in B.
Scan_Object_Slots_8 50044 LD (HL),A Write 0.
50045 ADD HL,DE Add DE.
50046 DJNZ Scan_Object_Slots_8 Decrease the counter by one and loop back to Scan_Object_Slots_8 until it is zero.
50048 RET Return.
Prev: 47900 Up: Map Next: 50049