.ORG 0X00
LDI R16,0XFF
LDI R17,0XFF
LDI R18,0XFF
LDI R19,0XFF

LDI R20,0X00
LDI R21,0X00
LDI R22,0X00
LDI R23,0X10

LDI R24,0
LDI R25,0
LDI R26,0
LDI R27,0
LDI R28,0
LDI R29,0
LDI R30,0
LDI R31,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:
MUL R16,R20
CLC
MOV R24,R0
MOV R25,R1
MUL R16,R21
CLC
ADD R25,R0
ADC R26,R1
MUL R16,R22
CLC
ADD R26,R0
ADC R27,R1
MUL R16,R23
CLC
ADD R27,R0
ADC R28,R1

MUL R17,R20
CLC
ADD R25,R0
ADC R26,R1
MUL R17,R21
CLC
ADD R26,R0
ADC R27,R1
MUL R17,R22
CLC
ADD R27,R0
ADC R28,R1
MUL R17,R23
CLC
ADD R28,R0
ADC R29,R1

MUL R18,R20
CLC
ADD R26,R0
ADC R27,R1
MUL R18,R21
CLC
ADD R27,R0
ADC R28,R1
MUL R18,R22
CLC
ADD R28,R0
ADC R29,R1
MUL R18,R23
CLC
ADD R29,R0
ADC R30,R1

MUL R19,R20
CLC
ADD R27,R0
ADC R28,R1
MUL R19,R21
CLC
ADD R28,R0
ADC R29,R1
MUL R19,R22
CLC
ADD R29,R0
ADC R30,R1
MUL R19,R23
CLC
ADD R30,R0
ADC R31,R1
JMP END 


END:
JMP END

