Prev: 54439 Up: Map Next: 54511
54476: Routine at D4CC
Used by the routines at 53506, 54439, 54566 and 56428.
54476 PUSH IX Stash IX, IY, HL and BC on the stack.
54478 PUSH IY
54480 PUSH HL
54481 PUSH BC
54482 CALL AdjustObjectTableForSum Call AdjustObjectTableForSum.
54485 LD B,0 B=0.
54487 LD C,A C=A.
54488 CALL FetchNextObject Call FetchNextObject.
54491 JR Z,54502 Jump to 54502 if the terminator character was reached (255).
54493 LD A,C A=C.
54494 CALL 54511 Call 54511.
54497 JR NC,54488 Jump to 54488 if A is greater than or equal to 0.
54499 INC B Increment B by one.
54500 JR 54488 Jump to 54488.
54502 LD A,B A=B.
54503 AND A Set flags.
54504 POP BC Restore BC, HL, IY and IX from the stack.
54505 POP HL
54506 POP IY
54508 POP IX
54510 RET Return.
Prev: 54439 Up: Map Next: 54511