IN A
IN B

; MOV D 0
; CMP B D
; JNZ 

IN D
MOV E 1
CMP D E
JZ 26

IN E
IN F
IN G

LOAD E H 
ADD H G
STORE E H
MOV H 1
ADD E H
CMP E F
JNZ 17
JZ 40

IN E
IN F

MOV A 0

LOAD E G
ADD A G
MOV H 1
ADD E H
CMP E F
JNZ 31

OUT A

MOV E 1
SUB B E
MOV D 0
CMP B D
JZ 8

RETURN






















