![]() |
Routines |
| Prev: BB1C | Up: Map | Next: C381 |
|
Used by the routine at Dispatch_Phase.
Clears the slot marks, then walks the index at Scan_Index.
|
||||
| Scan_Object_Slots | C300 | CALL Scan_Object_Slots_7 | Call Scan_Object_Slots_7. | |
| C303 | CALL Scan_Object_Slots_1 | Call Scan_Object_Slots_1. | ||
| C306 | LD HL,$EEF7 | Point HL at Scan_Index. | ||
| Scan_Object_Slots_0 | C309 | LD E,(HL) | LD E,(HL). | |
| C30A | INC (HL) | INC (HL). | ||
| C30B | RET Z | Return if zero. | ||
| C30C | LD D,$E4 | Set D to E4. | ||
| C30E | PUSH DE | Stash DE on the stack. | ||
| C30F | POP IX | Restore IX from the stack. | ||
| C311 | PUSH HL | Stash the pointer on the stack. | ||
| C312 | CALL Find_Empty_Slot_77 | Call Find_Empty_Slot_77. | ||
| C315 | POP HL | Restore HL from the stack. | ||
| C316 | INC L | Advance the low byte by one. | ||
| C317 | 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 | C319 | CALL Scan_Object_Slots_2 | Call Scan_Object_Slots_2. | |
| C31C | LD (HL),$FF | LD (HL),$FF. | ||
| C31E | RET | Return. | ||
| Scan_Object_Slots_2 | C31F | CALL Scan_Object_Slots_7 | Call Scan_Object_Slots_7. | |
| C322 | LD HL,$EEF7 | Point HL at Scan_Index. | ||
| Scan_Object_Slots_3 | C325 | PUSH HL | Stash the pointer on the stack. | |
| C326 | CALL Scan_Object_Slots_4 | Call Scan_Object_Slots_4. | ||
| C329 | POP HL | Restore HL from the stack. | ||
| C32A | INC A | Increment A by one. | ||
| C32B | RET Z | Return if zero. | ||
| C32C | SUB $02 | SUB $02. | ||
| C32E | CPL | Invert A. | ||
| C32F | AND %00000111 | AND $07. | ||
| C331 | ADD A,A | ADD A,A. | ||
| C332 | ADD A,A | ADD A,A. | ||
| C333 | ADD A,A | ADD A,A. | ||
| C334 | ADD A,A | ADD A,A. | ||
| C335 | ADD A,$80 | ADD A,$80. | ||
| C337 | LD (HL),A | LD (HL),A. | ||
| C338 | INC L | Advance the low byte by one. | ||
| C339 | ADD A,$0F | ADD A,$0F. | ||
| C33B | LD E,A | LD E,A. | ||
| C33C | LD D,$E4 | Set D to E4. | ||
| C33E | LD A,A | LD A,A. | ||
| C33F | LD (DE),A | LD (DE),A. | ||
| C340 | JR Scan_Object_Slots_3 | Jump to Scan_Object_Slots_3. | ||
| Scan_Object_Slots_4 | C342 | LD IX,$E480 | Point IX at Long_Object_Slots. | |
| C346 | LD A,$FF | Set A to FF. | ||
| C348 | PUSH AF | Stash AF on the stack. | ||
| C349 | LD A,$08 | Set A to 08. | ||
| C34B | LD BC,$0010 | Set BC to 10. | ||
| C34E | LD DE,$0000 | Set DE to 00. | ||
| Scan_Object_Slots_5 | C351 | BIT 0,(IX+$00) | BIT 0,(IX+$00). | |
| C355 | JR Z,Scan_Object_Slots_6 | Jump to Scan_Object_Slots_6 if zero. | ||
| C357 | BIT 0,(IX+$0F) | BIT 0,(IX+$0F). | ||
| C35B | JR NZ,Scan_Object_Slots_6 | Jump to Scan_Object_Slots_6 if non-zero. | ||
| C35D | LD L,(IX+$05) | LD L,(IX+$05). | ||
| C360 | LD H,(IX+$06) | LD H,(IX+$06). | ||
| C363 | AND A | Clear carry. | ||
| C364 | SBC HL,DE | Subtract DE. | ||
| C366 | JR C,Scan_Object_Slots_6 | Jump to Scan_Object_Slots_6 if carry is set. | ||
| C368 | ADD HL,DE | Add DE. | ||
| C369 | EX DE,HL | Swap DE with HL. | ||
| C36A | POP HL | Restore HL from the stack. | ||
| C36B | PUSH AF | Stash AF on the stack. | ||
| Scan_Object_Slots_6 | C36C | ADD IX,BC | Advance IX by BC. | |
| C36E | DEC A | Decrease A by one. | ||
| C36F | JR NZ,Scan_Object_Slots_5 | Jump to Scan_Object_Slots_5 if non-zero. | ||
| C371 | POP AF | Restore AF from the stack. | ||
| C372 | RET | Return. | ||
|
This entry point is used by the routine at Reset_Scan_Index.
|
||||
| Scan_Object_Slots_7 | C373 | XOR A | Clear A. | |
| C374 | LD HL,$E48F | Point HL at Slot_Mark. | ||
| C377 | LD DE,$0010 | Set DE to 10. | ||
| C37A | LD B,$08 | Set the counter to 08 in B. | ||
| Scan_Object_Slots_8 | C37C | LD (HL),A | Write 00. | |
| C37D | ADD HL,DE | Add DE. | ||
| C37E | DJNZ Scan_Object_Slots_8 | Decrease the counter by one and loop back to Scan_Object_Slots_8 until it is zero. | ||
| C380 | RET | Return. | ||
| Prev: BB1C | Up: Map | Next: C381 |