IN H
IN G
MOV H 1
IN D
IN A
IN B

CMP D H
JZ 22

IN E
MOV F A

LOAD F H
ADD H E
STORE F H

ADD F H
CMP B F
JZ 13

MOV F A
MOV H 0

LOAD F E
ADD H E
ADD F H
CMP B F
JZ 23

ADD C H
CMP G C
JZ 3

RETURN
