summaryrefslogtreecommitdiff
path: root/common/word_shift_right.asm
blob: 7a76280e9ce641d60b631d2cef8a936238b64f62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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