Prev: 41244 Up: Map Next: 41391
41354: Store That Byte In The Link Ahead
Used by the routine at AllocateMemory.
Store that byte in the link ahead of this record, then exchange the source with the pointer.
StoreThatByteLinkAhead 41354 LD (IX-2),L Store the pointer in the previous memory entry.
41357 LD (IX-1),H
41360 EX DE,HL
41361 ADD IX,DE Step to the next memory entry.
This entry point is used by the routine at AllocateMemory.
StoreThatByteLinkAhead_TestBytePreviousMemory 41363 INC IX Store this byte in the previous memory entry and take its address.
41365 LD (IX-3),C
41368 PUSH IX
41370 POP HL
41371 DEC HL Point HL at the two bytes before this record.
41372 DEC HL
41373 LD B,C Copy the count into B.
41374 DEC B Drop one from that count.
41375 XOR A Clear A so the following loop writes zeros.
StoreThatByteLinkAhead_CountEntryRepeat 41376 LD (HL),A Count the next entry and repeat from StoreThatByteLinkAhead_CountEntryRepeat.
41377 INC HL
41378 DJNZ StoreThatByteLinkAhead_CountEntryRepeat
41380 OR 1 Reset the zero flag.
41382 POP BC Restore the saved registers from the stack.
41383 POP DE
41384 POP HL
41385 POP IY
41387 RET Return.
This entry point is used by the routine at AllocateMemory.
Join the next step.
StoreThatByteLinkAhead_JoinStep 41388 JP Error_OutOfMemory Jump to Error_OutOfMemory, the out of memory.
Prev: 41244 Up: Map Next: 41391