Routines |
Prev: 851E | Up: Map | Next: 8568 |
853D | LD L,A | L=A. | ||
853E | SUB $40 | A-=40. | ||
8540 | CP $08 | Is A now less than 08? | ||
8542 | LD H,$00 | H=00. | ||
8544 | JR C,$8560 | If A was less than 08 jump to 8560. | ||
8546 | SUB $08 | A-=08. | ||
8548 | LD H,$08 | H=08. | ||
854A | CP $08 | If A is now less than 08 jump to 8560. | ||
854C | JR C,$8560 | |||
854E | SUB $40 | A-=40. | ||
8550 | CP $08 | |||
8552 | LD H,$10 | H=10. | ||
8554 | JR C,$8560 | |||
8556 | SUB $28 | |||
8558 | CP $06 | |||
855A | LD H,$18 | H=18. | ||
855C | JR C,$8560 | |||
855E | LD A,L | A=L. | ||
855F | RET | Return. | ||
8560 | AND %00000111 | Keep only bits 0-2. | ||
8562 | ADD A,H | A+=H. | ||
8563 | INC A | Increment A by one. | ||
8564 | LD BC,$EE7A | BC=EE7A. | ||
8567 | RET | Return. |
Prev: 851E | Up: Map | Next: 8568 |