numof 1 bits in 0 to 255 by kodera

a>0)\x8d\x10\xfc\xff\x0c \xf5v

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

Disassemble:

	ORG	00000H

	LD H,C			;0000	61 	A 
	LD A,030H		;0001	3E 30 	> 0 
	ADD HL,HL			;0003	29 	) 
	ADC A,L			;0004	8D 	. 
	DJNZ $-2		;0005	10 FC 	. . 
	RST 38H			;0007	FF 	. 
	INC C			;0008	0C 	. 
	JR NZ,$-9		;0009	20 F5 	  . 
	HALT			;000B	76 	V 

download

return to the top page