Prev: 65a8 Up: Map Next: 65e9
65db: Calculate column on which to drop a new collectible item/fuel pod.
Used by the routines at 65a8 and 65f9.
Output
A Column position.
65db ld hl,$65e9 HL=item drop position table
65de ld a,($5dce) A=random number
65e1 and $0f
65e3 ld c,a BC = byte offset (0-15)
65e4 ld b,$00
65e6 add hl,bc Add offset
65e7 ld a,(hl) Set A to position
65e8 ret
Prev: 65a8 Up: Map Next: 65e9