Prev: D237 Up: Map Next: D26C
D249: Process Object Location Recursively
Used by the routines at DD0B and DD35.
Input
A Object ID
B Location ID
ProcessObjectLocationRecursively D249 PUSH IY Stash IY and IX on the stack.
D24B PUSH IX
D24D CALL AdjustObjectTableForSum Call AdjustObjectTableForSum.
ProcessObjectLocationRecursively_0 D250 CALL FetchNextObjectWithID Call FetchNextObjectWithID.
D253 JR Z,ProcessObjectLocationRecursively_1 Jump to ProcessObjectLocationRecursively_1 if ?? is equal to 00.
D255 CP (IY+$01) Jump to ProcessObjectLocationRecursively_0 if A is not equal to *IY+01.
D258 JR NZ,ProcessObjectLocationRecursively_0
D25A LD (IY+$0F),B Write B to *IY+0F.
D25D PUSH AF Stash AF on the stack.
D25E LD A,(IX+$00) A=*IX+00.
D261 CALL ProcessObjectLocationRecursively Call ProcessObjectLocationRecursively.
D264 POP AF Restore AF from the stack.
D265 JR ProcessObjectLocationRecursively_0 Jump to ProcessObjectLocationRecursively_0.
ProcessObjectLocationRecursively_1 D267 POP IX Restore IX and IY from the stack.
D269 POP IY
D26B RET Return.
Prev: D237 Up: Map Next: D26C