
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
Pls answer this question in assembly language code. Not in pcsudo code. I am really confused and dont really understabd how to do it! Thank you so much! pls use https://wchargin.com/lc3web/ to excutue code and to test it thank you!
here is the psudeo code for help hopefully it is correct! but make the code into assembly code.
2.
.FILL i
.FILL max
for (i = 0; i < max; i++) {
R3 = R3 + 5
}
.END
3.
.FILL RO
while (RO > -10) {
RO = RO - 2
}
.END

Transcribed Image Text:2. Write a program that implements a for loop that adds 5 to R3 every iteration
a. Increment a register by 1 in every cycle of the loop to keep track of the loop iterations
b. Store the maximum amount of iterations that the loop can have in a memory location
C. Your for loop should start at 0 iterations (i.e. i = 0) and stop looping once the maximum is reached
3. Write a program that implements a while loop
Loop while(RO > -10)
a.
b.
C.
For every iteration of the loop subtract 2 from RO
RO should start at 0
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Is there a good reason why assembly language shouldn't be used for making generic programs? When do you believe it would be appropriate to utilize assembly language?arrow_forwardIf you could take a moment to explain what an assembler, a compiler, and an interpreter are, I would really appreciate it.arrow_forwardWhich of VLIW and superscalar is more challenging for compilers to implement? What kind of architecture makes it hardest for compilers to function? Why?arrow_forward
- This is COmputer Architecture! this is about hamming code PLEASE WRITE THE CODE IN MIPS ASSEMBLY LANGUAGE! Assignment for Computer Architecture The assignment is to create a MIPS programs that the determines what the ECC code should be for a given number (an 8-bit byte). ECC Hamming codes are explained on pages 420-424 in your text. The codes you create are to work for 8-bit positive numbers as these are simpler to work with than larger numbers. The program is to request the user to enter a byte of data (a positive integer in the range of 0 to 255 in decimal) and then create the 12-bit Hamming code as described in your text (see above). The program is to then output this (with an appropriate label) in hex. Requirements: Make certain that you have lots of comments in your code as this is in MIPS. Also make the code neat: line up the instruction columns, the register columns, and the comment fields For this assignment, turn in your code, a screenshot showing a working for a test…arrow_forwardFor those who want a more detailed explanation, what exactly does it mean to be a "Assembler"?arrow_forwardComputer Science Please answer this question in assembly language with .asm extension. The code given in 99Heater.asm file is: ; ===== Heater and Thermostst on Port 03 ==========================; ===== 99Heater.asm ==============================================; ===== Heater and Thermostst on Port 03 ========================== MOV AL,0 ; Code to turn the heater off OUT 03 ; Send code to the heater IN 03 ; Input from Port 03 AND AL,1 ; Mask off left seven bits JZ Cold ; If the result is zero, turn the heater on HALT ; Quit Cold: MOV AL,80 ; Code to turn the heater on OUT 03 ; Send code to the heater END; ================================================================= Fix the program 99Heater.asm so that the temperature will stay at 21 ºC. Please solve the question in assembly language. I will definitely give you THUMBS UP.arrow_forward
- Pls answer this in assemnly language code. i am really confused and dont understand it. Pls use https://wchargin.com/lc3web/ as ur machine to write and test the assembly code! Thank you!arrow_forwardASM file in x86 assembler code. must function in visual studios. Do not copy other sources as they do not function please. Need help writing/testing MASM program following the specifications below: Introduction to MASM assembly language Defining variables (integer and string) Using library procedures for I/O Integer arithmetic Program requirements: Display your name and program title on the output screen. Display instructions for the user. Prompt the user to enter three numbers (A, B, C) in strictly descending order. Calculate and display the sum and differences: (A+B, A-B, A+C, A-C, B+C, B-C, A+B+C). Display a closing message. This must include a complete header block for identification, description, and a comment outline to explain each section of code. The main procedure must be divided into the following separate and distinct logical sections: -introduction -get the data -calculate the required values -display the results -say goodbye -The results of calculations must be…arrow_forwardWrite a short program that demonstrates the use of MOV instruction in assembly language?arrow_forward
- IN ASSEMBLY CODE NOT PYTHON!!!!!!!!!!!!!!!!!!!*** ***PLEASE TEST CODE AND MAKE SURE IT WORKS PROPERLY ON REXTESTER COMPILER. https://rextester.com/l/nasm_online_compiler **** ***PLEASE PROVIDE SCREENSHOTS OF CODE INPUT/OUTPUT FROM REXTESTER . ***DONT COPY AND PASTE OTHER ANSWERS***arrow_forwardIn this article, we'll look at the differences between assemblers, compilers, and interpreters in detail.arrow_forwardIn this article, we'll look at the differences between assemblers, compilers, and interpreters in detail.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education