View difference between Paste ID: PW9KM9A0 and fewL9YaR
SHOW: | | - or go back to the newest paste.
1
SumBits:
2-
	ld	e,a
2+
	and	%00001111
3-
	xor	a
3+
	ld	hl,SumBits_LUT
4-
	ld	d,a
4+
	add	a,l
5-
	rl	e
5+
	ld	l,a
6-
	adc	a,d
6+
	ld	a,(hl)
7-
	rl	e
7+
	ret	nc
8-
	adc	a,d
8+
	inc	h
9-
	rl	e
9+
	ld	a,(hl)
10-
	adc	a,d
10+
	ret
11-
	rl	e
11+
12-
	adc	a,d
12+
SumBits_LUT:
13-
	rl	e
13+
	.db	0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4