Routines |
Prev: 6400 | Up: Map | Next: 6424 |
Used by the routine at InitialiseGame.
|
||||
SetRandomNumberSeed | 6414 | LD HL,($5C78) | HL=*FRAMES. | |
6417 | LD A,H | H=random number between 79-7B. | ||
6418 | AND %00000011 | |||
641A | JR NZ,SkipNonZero | |||
641C | INC A | |||
SkipNonZero | 641D | ADD A,$78 | ||
641F | LD H,A | |||
6420 | LD ($781E),HL | Write HL to *RandomNumberSeed. | ||
6423 | RET | Return. |
Prev: 6400 | Up: Map | Next: 6424 |