.ORG 0X00
LDI R16,0XFF
LDI R17,0XFF
LDI R18,0XFF
LDI R19,0XFF
LDI R25,1

LDI R20,0
LDI R21,0
LDI R22,0
LDI R23,0


CPI R16,0
BRBS 001,END
CPI R17,0
BRBS 001,END
CPI R18,0
BRBS 001,END
CPI R19,0
BRBS 001,END

START:

CPI R18,0
BRBS 001, DALEJ2
COS:
DEC R18
ADD R20,R16
BRCC DALEJ
CLC
ADD R21,R25
BRCC DALEJ
CLC
ADD R22,R25
BRCC DALEJ
CLC
ADD R23,R25

DALEJ:
ADD R21,R17
BRCC START
CLC
ADD R22,R25
BRCC START
CLC
ADD R23,R25
JMP START

DALEJ2:
CPI R19,0
BRBS 001,END
DEC R19
JMP COS


END:
NOP
JMP END
