
Basic Data Operation

This is a basic data operation. It represents a fundamental action on a basic data type.
You may see other such operations in the Basic Data Operations category, or:


Integer Operations
Arithmetic |
Comparison
Boolean Operations
Bitwise |
Logical
String Operations
Concatenation |
Interpolation |
Comparison |
Matching
Memory Operations
Pointers & references |
Addresses


Task

Get two integers from the user,   and then (for those two integers), display their:

   sum 
   difference 
   product 
   integer quotient
   remainder 
   exponentiation   (if the operator exists) 


Don't include error handling.

For quotient, indicate how it rounds   (e.g. towards zero, towards negative infinity, etc.).

For remainder, indicate whether its sign matches the sign of the first operand or of the second operand, if they are different.




arithm: mov      cx,          a
        mov      bx,          b
        xor      dx,          dx
 
        mov      ax,          cx
        add      ax,          bx
        mov      sum,         ax
 
        mov      ax,          cx
        imul     bx
        mov      product,     ax
 
        mov      ax,          cx
        sub      ax,          bx
        mov      difference,  ax
 
        mov      ax,          cx
        idiv     bx
        mov      quotient,    ax
        mov      remainder,   dx
 
        ret