; Addition without carry
ORG 0000H
CLR C
MOV A,#18H
ADD A,#25H
MOV R0,A
HERE: SJMP HERE
END

; Addition with carry
ORG 0000H
CLR C
MOV A,#0B2H
ADD A,#5AH
MOV R1,A
HERE: SJMP HERE
END

; Subtraction without borrow
ORG 0000H
CLR C
MOV A,#58H
SUBB A,#1EH
MOV R2,A
HERE: SJMP HERE
END

; Subtraction with borrow
ORG 0000H
CLR C
MOV A,#2AH
SUBB A,#45H
MOV R3,A
HERE: SJMP HERE
END
