Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Machine Performance Modeling Methodologies And Evaluation Strategies Lncs 257

Authors: Francesca Cesarini ,Silvio Salza

1st Edition

3540179429, 978-3540179429

More Books

Students also viewed these Databases questions

Question

3. The group answers the questions.

Answered: 1 week ago