Question: log base 2 in assembler This is what I have so far, I'm confused on why I'm getting an error and I'm not sure if
This is what I have so far, I'm confused on why I'm getting an error and I'm not sure if my logic is correct. In need of some help please and thank youdavlpid-2704922-dt-content-rid-115 MP375001.201720IHw1 assembler. pdf 1547o81 COMP375 Computer Architecture and organization Write the following programs in Intel assembler. Upload just your .cpp source code to Blackboard. write a program that will calculate the log base 2 an integer. The log base 2 can be easily calculated by counting the number of times you have to shift a number to the right before it is one. #include kio stream> using namespace std; int main (int argn, char *argv int number, log; cout "Enter a number cin number; asm f Calculate the log2 of number and store the result in log cout The logarithm is log endli return 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
