;----------------------------------------------------------------
; LD221.ASM  Wait until bit-0 of input port 0 is set.
; C.P. Diduch, September 28, 2004.
;----------------------------------------------------------------
.ORG    0x8000          		; ROM
					; void main(void) {
M0:	LOADP   R0, 0			; do {	do {R0 = inport(0);}
	ANDL	NULL, R0, 0x0001	; 
	JMPZ	M0			; 	while ((R0 & 1) == 0)
	JMP 	M0			; 	}
					; }
