TirNaNog | Routines |
Prev: 6D49 | Up: Map | Next: 6DA3 |
Remove link from unused link list and insert at beginning of Actions list.
|
||||
Actions_NewLink | 6D76 | LD A,($DFBC) | Make sure there is a link in the unused list. | |
6D79 | AND A | |||
6D7A | RET Z | |||
6D7B | LD IX,(UnusedLinkListPtr) | Take link and clear it. | ||
6D7F | LD DE,(UnusedLinkListPtr) | |||
6D83 | LD L,(IX+$00) | |||
6D86 | LD H,(IX+$01) | |||
6D89 | LD (UnusedLinkListPtr),HL | |||
6D8C | LD HL,Zeros | |||
6D8F | LD BC,$0014 | |||
6D92 | LDIR | |||
6D94 | OR H | |||
6D95 | LD HL,(ActionsLinkListPtr) | Add new link to begining of Actions list. | ||
6D98 | LD (IX+$00),L | |||
6D9B | LD (IX+$01),H | |||
6D9E | LD (ActionsLinkListPtr),IX | |||
6DA2 | RET |
Prev: 6D49 | Up: Map | Next: 6DA3 |