Assembly language programming | Addition and subtraction
ORG 100h
MOV AX, 2h ; move the value 2 to the register AX
MOV DX, 3h ; move the value 3 to the register DX//
ADD AX, DX ; Add DX value with AX value and stores the result in AX//
END
ORG 100h
MOV AX, 12h ; move the value 12 to the register AX//
MOV DX, 10h ; move the value 10 to the register DX//
SUB AX, DX ; Subtract DX value from AX value and stores the result in AX//
END