1Random_:: 2; Generate a random 16-bit value. 3 ldh a, [rDIV] 4 ld b, a 5 ldh a, [hRandomAdd] 6 adc b 7 ldh [hRandomAdd], a 8 ldh a, [rDIV] 9 ld b, a 10 ldh a, [hRandomSub] 11 sbc b 12 ldh [hRandomSub], a 13 ret 14 15