![]() |
Routines |
| Prev: 47414 | Up: Map | Next: 47610 |
|
Used by the routine at ProcessScriptDisplay.
Reads the saved character record and copies the link ahead of it into the object attribute.
|
||||
| CopyLinkAhead | 47562 | LD IX,(47206) | Read the saved character record. | |
| CopyLinkAhead_StoreLink | 47566 | LD L,(IY-2) | Read the link word stored before the record at IY. | |
| 47569 | LD H,(IY-1) | |||
| 47572 | LD (IX+5),L | Store the low byte of the link at offset 5. | ||
| 47575 | LD (IX+6),H | Store the high byte of the link at offset 6 and keep IX. | ||
| 47578 | PUSH IX | |||
| 47580 | PUSH IY | Copy the memory-link record from IY into IX. | ||
| 47582 | POP IX | |||
| 47584 | CALL ProcessMemoryEntry | Call ProcessMemoryEntry to follow this memory link. | ||
| 47587 | POP IX | |||
| 47589 | LD A,L | Jump ahead to CopyLinkAhead_ClearAndReturn if the pointer is 0000. | ||
| 47590 | OR H | |||
| 47591 | JR Z,CopyLinkAhead_ClearAndReturn | |||
| 47593 | PUSH HL | Point IY at HL and jump to CopyLinkAhead_StoreLink if bit 6 of IY+1 is set. | ||
| 47594 | POP IY | |||
| 47596 | BIT 6,(IY+1) | |||
| 47600 | JR NZ,CopyLinkAhead_StoreLink | |||
| 47602 | OR %00000001 | Reset the zero flag. | ||
| 47604 | RET | Return. | ||
|
Copies the pointer and clears the result.
|
||||
| CopyLinkAhead_ClearAndReturn | 47605 | CALL CopyPointerToStack | Call CopyPointerToStack to copy pointer to stack. | |
| 47608 | XOR A | Clear A. | ||
| 47609 | RET | Return. | ||
| Prev: 47414 | Up: Map | Next: 47610 |