![]() |
Routines |
| Prev: B936 | Up: Map | Next: B9FA |
|
Used by the routine at ProcessScriptDisplay.
Reads the saved character record and copies the link ahead of it into the object attribute.
|
||||
| CopyLinkAhead | B9CA | LD IX,($B866) | Read the saved character record. | |
| CopyLinkAhead_StoreLink | B9CE | LD L,(IY-$02) | Read the link word stored before the record at IY. | |
| B9D1 | LD H,(IY-$01) | |||
| B9D4 | LD (IX+$05),L | Store the low byte of the link at offset 05. | ||
| B9D7 | LD (IX+$06),H | Store the high byte of the link at offset 06 and keep IX. | ||
| B9DA | PUSH IX | |||
| B9DC | PUSH IY | Copy the memory-link record from IY into IX. | ||
| B9DE | POP IX | |||
| B9E0 | CALL ProcessMemoryEntry | Call ProcessMemoryEntry to follow this memory link. | ||
| B9E3 | POP IX | |||
| B9E5 | LD A,L | Jump ahead to CopyLinkAhead_ClearAndReturn if the pointer is 0000. | ||
| B9E6 | OR H | |||
| B9E7 | JR Z,CopyLinkAhead_ClearAndReturn | |||
| B9E9 | PUSH HL | Point IY at HL and jump to CopyLinkAhead_StoreLink if bit 6 of IY+01 is set. | ||
| B9EA | POP IY | |||
| B9EC | BIT 6,(IY+$01) | |||
| B9F0 | JR NZ,CopyLinkAhead_StoreLink | |||
| B9F2 | OR %00000001 | Reset the zero flag. | ||
| B9F4 | RET | Return. | ||
|
Copies the pointer and clears the result.
|
||||
| CopyLinkAhead_ClearAndReturn | B9F5 | CALL CopyPointerToStack | Call CopyPointerToStack to copy pointer to stack. | |
| B9F8 | XOR A | Clear A. | ||
| B9F9 | RET | Return. | ||
| Prev: B936 | Up: Map | Next: B9FA |