![]() |
Routines |
| Prev: A11C | Up: Map | Next: A1AF |
|
Used by the routine at AllocateMemory.
Store that byte in the link ahead of this record, then exchange the source with the pointer.
|
||||
| StoreThatByteLinkAhead | A18A | LD (IX-$02),L | Store the pointer in the previous memory entry. | |
| A18D | LD (IX-$01),H | |||
| A190 | EX DE,HL | |||
| A191 | ADD IX,DE | Step to the next memory entry. | ||
|
This entry point is used by the routine at AllocateMemory.
|
||||
| StoreThatByteLinkAhead_TestBytePreviousMemory | A193 | INC IX | Store this byte in the previous memory entry and take its address. | |
| A195 | LD (IX-$03),C | |||
| A198 | PUSH IX | |||
| A19A | POP HL | |||
| A19B | DEC HL | Point HL at the two bytes before this record. | ||
| A19C | DEC HL | |||
| A19D | LD B,C | Copy the count into B. | ||
| A19E | DEC B | Drop one from that count. | ||
| A19F | XOR A | Clear A so the following loop writes zeros. | ||
| StoreThatByteLinkAhead_CountEntryRepeat | A1A0 | LD (HL),A | Count the next entry and repeat from StoreThatByteLinkAhead_CountEntryRepeat. | |
| A1A1 | INC HL | |||
| A1A2 | DJNZ StoreThatByteLinkAhead_CountEntryRepeat | |||
| A1A4 | OR $01 | Reset the zero flag. | ||
| A1A6 | POP BC | Restore the saved registers from the stack. | ||
| A1A7 | POP DE | |||
| A1A8 | POP HL | |||
| A1A9 | POP IY | |||
| A1AB | RET | Return. | ||
|
This entry point is used by the routine at AllocateMemory.
Join the next step.
|
||||
| StoreThatByteLinkAhead_JoinStep | A1AC | JP Error_OutOfMemory | Jump to Error_OutOfMemory, the out of memory. | |
| Prev: A11C | Up: Map | Next: A1AF |