求两个数的最大公约数


GCD.S
	AREA	GCD, CODE, READONLY
	ENTRY
 
	MOV	R0, #15
	MOV	R1, #12
 
start	
	CMP	R0, R1
	SUBGT	R0, R0, R1
	SUBLT	R1, R1, R0
	BNE	start
 
stop
	B	stop
	END