Count diamonds level 1 by xsd

\xdd\xe5\x0e
\x1e4\xcd\x03\x800\x01v\xfe* \x01\x19\xd6-\xc0\xbc\xc8|\x918\x04g>1\xff|\xc60\xffy`h

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

Disassemble:

	ORG	00000H

	PUSH IX		;0000	DD E5 	. . 
	LD C,00AH		;0002	0E 0A 	. . 
	LD E,034H		;0004	1E 34 	. 4 
	CALL 08003H		;0006	CD 03 80 	. . . 
	JR NC,$+3		;0009	30 01 	0 . 
	HALT			;000B	76 	V 
	CP 02AH		;000C	FE 2A 	. * 
	JR NZ,$+3		;000E	20 01 	  . 
	ADD HL,DE			;0010	19 	. 
	SUB 02DH		;0011	D6 2D 	. - 
	RET NZ			;0013	C0 	. 
	CP H			;0014	BC 	. 
	RET Z			;0015	C8 	. 
	LD A,H			;0016	7C 	| 
	SUB C			;0017	91 	. 
	JR C,$+6		;0018	38 04 	8 . 
	LD H,A			;001A	67 	G 
	LD A,031H		;001B	3E 31 	> 1 
	RST 38H			;001D	FF 	. 
	LD A,H			;001E	7C 	| 
	ADD A,030H		;001F	C6 30 	. 0 
	RST 38H			;0021	FF 	. 
	LD A,C			;0022	79 	Y 
	LD H,B			;0023	60 	` 
	LD L,B			;0024	68 	H 

download

return top