; Multiplication without overflow
ORG 0000H
MOV A,#08H
MOV B,#06H
MUL AB
MOV R4,A
HERE: SJMP HERE
END

; Multiplication with overflow
ORG 0000H
MOV A,#28H
MOV B,#14H
MUL AB
MOV R5,A
MOV R6,B
HERE: SJMP HERE
END

; Division without remainder
ORG 0000H
MOV A,#40H
MOV B,#08H
DIV AB
MOV R7,A
HERE: SJMP HERE
END

; Division with remainder
ORG 0000H
MOV A,#3BH
MOV B,#08H
DIV AB
MOV R0,A
MOV R1,B
HERE: SJMP HERE
END
