46495: Graphic layout routine: (249) Jump to time-weighted, randomly selected graphic layout data address in list
46495 |
PUSH IX |
46497 |
LD A,(IX+1) |
46500 |
ADD A,A |
46501 |
ADD A,A |
46502 |
ADD A,2 |
46504 |
LD C,A |
46505 |
LD B,0 |
46507 |
ADD IX,BC |
46509 |
DEC (IX+0) |
46512 |
JR NZ,46544 |
46514 |
POP IX |
46516 |
LD A,(IX+0) |
46519 |
CALL 54222 |
46522 |
LD (IX+1),A |
46525 |
ADD A,A |
46526 |
ADD A,A |
46527 |
ADD A,2 |
46529 |
LD C,A |
46530 |
ADD IX,BC |
46532 |
LD A,(IX+1) |
46535 |
CALL 54222 |
46538 |
INC A |
46539 |
LD (IX+0),A |
46542 |
JR 46545 |
46544 |
POP BC |
46545 |
LD C,(IX+2) |
46548 |
LD B,(IX+3) |
46551 |
PUSH BC |
46552 |
POP IX |
46554 |
LD B,0 |
46556 |
JP 46003 |