Prev: 28807 Up: Map Next: 28829
28808: Routine at 7088
Used by the routine at 25770.
28808 CALL GetRandomNumber Call GetRandomNumber.
28811 LD E,A E=A.
28812 LD A,H A=H.
28813 CP 159 Jump to 28827 if A is lower than 159.
28815 JR C,28827
28817 JR Z,28823 Jump to 28823 if A is equal to 159.
28819 SUB 5 A-=5.
28821 JR 28813 Jump to 28813.
28823 LD A,E A=E.
28824 AND %00000001 Keep only bit 0.
28826 RET Return.
28827 LD A,E A=E.
28828 RET Return.
Prev: 28807 Up: Map Next: 28829