Routines |
Prev: 62056 | Up: Map | Next: 62089 |
Used by the routine at 62102.
|
||||
The code sheet is referenced with a letter (A-P) and a set number (0-41), but these are stored as two numbers, from 0-15 and 0-41 respectively.
|
||||
62068 | CALL 61982 | Call hashing routine to obfuscate data at 61974 | ||
62071 | AND 15 | The A register is returned with a hashed/randomized value - the 4th byte of the data set at 61974. Keep bits 0-3 (values 0-15) |
||
62073 | LD (62049),A | Store as first part of code from code sheet (this will signify the letter, A-P) | ||
62076 | CALL 61982 | Call hashing routine again | ||
Get the number in the range 0-41 as this is the number of code sheet rows:
|
||||
62079 | SUB 42 | Subtract 42 | ||
62081 | JR NC,62079 | Still positive (>=0)? If so, keep subtracting | ||
62083 | ADD A,42 | Add 42 to get the number in the range 0 to (+)41 | ||
62085 | LD (62048),A | Store as second part of code from the code sheet (number) | ||
62088 | RET |
Prev: 62056 | Up: Map | Next: 62089 |