Starting from:

$30

CSC3210–Assignment 5 Solved

A. Write a recursive procedure in assembly language that take a 16-bit unsigned integer, n as input, and computer the following series: 

1 +2+3+ .. + n 

For example, if n = 4, the procedure computes 1 + 2 + 3 + 4   -    The procedure stores the result in EAX register.  

-          Use stack frame to implement the procedure.  

-          Run your program using the debugger to verify your answers. 

§  Use Step Into instead of Step Over to keep track of the stack, ESP, EBP, EIP during debugging. 

More products