​Computer Science; Write an assembly code subroutine…square root…bisection method

Write an assembly code subroutine to approximate the square root of an argument using the bisection method (see following Wikipedia article for details: http://en.wikipedia.org/wiki/Bisection_method). Your code must approximate the square root of an integer between 0 and 231-1. Using integer maths is sufficient (no floating point or fractions are required); your code will return the truncated (integer portion) of the square root.

Your code must be in an assembly language subroutine which is called by a C function for testing. Be sure to use registers according to the ARM calling convention

SAMPLE ASSIGNMENT
Powered by WordPress