Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This assignment requires you to write a number of LC-3 assembly language routines leading to being able to transform a string of digits (and +
This assignment requires you to write a number of LC-3 assembly language routines leading to being able to transform a string of digits (and + and - signs) into both the corresponding integer and the 16-bit floating point value
This program finds the location (i.e. the bit number) corresponding to the location of the first "1" in a number. Call the program partl.asm. Because this program doesn't take data from the keyboard you must have a label number in the code as here: number b0100000000000001 This number must be loaded into a register in the first line of your program e.g. .orig ld x3000 r0, number The program then determines the location of the first "1" in that number and prints the result to the display. The result from the value above would be: The first significant bit is 14 If you then modify the value of number to bo000000000000001 the result would be: The first significant bit is0 The markers will never enter a value of zero into number. This program finds the location (i.e. the bit number) corresponding to the location of the first "1" in a number. Call the program partl.asm. Because this program doesn't take data from the keyboard you must have a label number in the code as here: number b0100000000000001 This number must be loaded into a register in the first line of your program e.g. .orig ld x3000 r0, number The program then determines the location of the first "1" in that number and prints the result to the display. The result from the value above would be: The first significant bit is 14 If you then modify the value of number to bo000000000000001 the result would be: The first significant bit is0 The markers will never enter a value of zero into number
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started