GCD of 1 to n by inaniwa

\x06
>1\xcd\x00\x80>
\xcd\x00\x80\x05 \xf3v

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

Disassemble:

	ORG	00000H

	LD B,00AH		;0000	06 0A 	. . 
	LD A,031H		;0002	3E 31 	> 1 
	CALL 08000H		;0004	CD 00 80 	. . . 
	LD A,00AH		;0007	3E 0A 	> . 
	CALL 08000H		;0009	CD 00 80 	. . . 
	DEC B			;000C	05 	. 
	JR NZ,$-11		;000D	20 F3 	  . 
	HALT			;000F	76 	V 

download

return top