Prev: D4A7 Up: Map Next: D4EF
D4CC: Routine at D4CC
Used by the routines at D102, D4A7, D526 and DC6C.
D4CC PUSH IX Stash IX, IY, HL and BC on the stack.
D4CE PUSH IY
D4D0 PUSH HL
D4D1 PUSH BC
D4D2 CALL AdjustObjectTableForSum Call AdjustObjectTableForSum.
D4D5 LD B,$00 B=00.
D4D7 LD C,A C=A.
D4D8 CALL FetchNextObject Call FetchNextObject.
D4DB JR Z,$D4E6 Jump to D4E6 if the terminator character was reached (FF).
D4DD LD A,C A=C.
D4DE CALL $D4EF Call D4EF.
D4E1 JR NC,$D4D8 Jump to D4D8 if A is greater than or equal to 00.
D4E3 INC B Increment B by one.
D4E4 JR $D4D8 Jump to D4D8.
D4E6 LD A,B A=B.
D4E7 AND A Set flags.
D4E8 POP BC Restore BC, HL, IY and IX from the stack.
D4E9 POP HL
D4EA POP IY
D4EC POP IX
D4EE RET Return.
Prev: D4A7 Up: Map Next: D4EF