Sherlock: annotated disassembly

Routines

Prev: D275 Up: Map Next: D2A4
D29D: A random number from 1 to 100
D2A4 with A = 99 (0 to 99), plus one: a percentage roll. Seven callers ($BA93, $BA9E, $BB1E, $E687, ...).
Output
A 1-100
D29D LD A,$63 Load A with $63 - Random number 0 to 99 (D2A4)...
D29F CALL $D2A4 Call the routine "A random number from 0 to A" (D2A4)
D2A2 INC A Add one to A - ...plus one: 1 to 100
D2A3 RET Return to the caller
Prev: D275 Up: Map Next: D2A4