RUBYSAPPHIREDLC/SOURCE/common/word_shift_right.asm
2023-04-27 10:47:41 -04:00

15 lines
166 B
NASM

WordShiftRight:
; this function shifts HL by B bits to the right
inc b
.asm_1B93
dec b
ret z
and a
ld a, h
rra
ld h, a
ld a, l
rra
ld l, a
jp .asm_1B93