<<< SBB Instruction, Cont     Index    >>>

20. Assignment: Adding 64-bit and Subtracting 96-bit Integers


  1. Given:

        .DATA
        op1   QWORD 0A2B2A40675981234h ; first 64-bit operand for addition
        op2   QWORD 08010870001234502h ; second 64-bit operand for addition
        sum   DWORD 3 dup(?)           ; 96-bit sum = ????????????????????????h
        op3   DWORD 3 dup(2)           ; 96-bit oper to sub  20000000200000002h
                                       ; Result sum = ????????????????????????h
    
  2. Write an assembly program to compute

  3. Every CPU instruction in your program must have a brief comment!
    The penalty for not following this rule is 15 pts deduction...

  4. Enter computation results by replacing corresponding question marks in the program comments.

  5. Things to consider:

  6. Optional (25 xtra pts.) Improve the program by having it display both sum and diff in hexadecimal format on the screen.

  7. What to submit:

     


<<< SBB Instruction, Cont     Index    >>>