
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
Write Assembly Language
The largest and smallest number from an array present in the memory locations 0401-040A and store the Largest number in 040B(Largest No) and 040C(Smallest No).
Note: numbers in the array are storied in Hexadecimal = [67H,32H,6FH,57H,22H,16H,08H,49H,78H,1DH].
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 3 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
- Translate the following C code into MIPS Assembly code, assuming h is in Ss0 and base of Array A is in $s4 A[0] = h * (A[4] – 1) ;arrow_forwardWrite an Assembly Language code that takes an input ARRAY and passes the array values and address to a MACRO. Now produce the summation of odd digits and even digits as output. Input: 31451687 Output: ODD Digits: 17 EVEN Digits: 18arrow_forwardConvert this Java Program to MIPS assembly int find42(int array[], int size){ for(int i=0;i<size;i++){ if(array[i] == 42){ return i; } } return -1; } The function should return the index number of the first array entry that holds the value 42.If no array entry is 42, it should return the value -1.Convert the high-level function into MIPS assembly code, using a minimal number ofMIPS assembly instructions. Assign your favorite numbers to the arguments that will passto the function parameters. Simulate and test your MIPS assembly code in the MARSsimulator.arrow_forward
- Please your code should be in mips assembly languagearrow_forwardWrite the ARM code to do C = AB and D = BA with these arrays: You can have the input arrays, output array, and scalar in either memory or registers. Please help me thanks.arrow_forwardComment on each snippet with what the snippet does. Assume that there is an array, int arr [6] = {3, 1, 4, 1, 5, 9}, which starts at memory address 0xBFFFFF00. You may assume that each integer is stored in 4 bytes. Register a0 contains arr's address lw t0, 0(a0) lw t1, 8(a0) add t2, t0, t1 sw t2, 4(a0) 2. add t0, x0, x0 loop: slti t1, t0, 6 beq t1, x0, end slli t2, t0, 2 add t3, a0, t2 lw t4, 0(t3) sub t4, x0, t4 sw t4, 0(t3) addi t0, t0, 1 j loop end: pseudo-instructions are not allowedarrow_forward
- Write the following C code in MIPS assembly, assume that all of result, in1 and in2 arrays are of double type, also assume var is a double type constant. for( i=0, i<100, i++) result[i] = in1[i]*in2[i] + var; %3D Also explain it well . Thank you!!arrow_forwardConsider two integer arrays B and D of 100 elements. Let X2 and X3 contain the base address of array "B" and "D", respectively, and the index į is in X0, h is in X10. Write LEGV8 code to perform the following operations: (a) Get B[15] from memory and put it in register X5. (b) Put the value 132 in D[6]. (c) Translate the following C code into LEGv8 instructions int j = 50, h; do { D[2*j] = (B[j] + B[j+2])*9 - h; j^j -2; while {j >0}; DO NOT use multiply instruction in your code, use shift instruction for multiplication instead! (d)How many instructions are executed during the running of the code in (c), and how many memory data references are made during executio'n?arrow_forwardDesign an Algorithm using pseudocode to eventually be implemented in Assembly that accomplishes the following: Find the mean value of an n-element array within memory that contains numerical values. From the original array, sort all values that are lower than the mean, in sequential order from lowest to highest in a new array From the original array, sort all values that are greater than or equal to the mean, in sequential order from highest to lowest in another new array.Output all the original array and both of the new arrays to the screen.arrow_forward
arrow_back_ios
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