
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
Concept explainers
Question
Using Assembly code in (emu8086) Write program that display your decimal number then add Number four 4 to your decimal number?
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 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
- write a python code that decodes the coloured bands on a resistor.Each colour band printed on a resistor has a corresponding numeric value, as shown in the table below: Colour Numeric value black 0 brown 1 red 2 orange 3 yellow 4 green 5 blue 6 violet 7 grey 8 white 9 To calculate the total resistance value, the following formula should be used: resistance=(10a+b)⋅10^c where a, b, and c are the numeric values of the first, second, and third colour bands respectively. For example, let's say that the colour bands on a resistor are red-green-orange. In this case, a=2, b=5, and c=3 (using the table). Hence the resistance value is 25000 ohms: resistance=(10*2+5) x 10^3=25000 ohms Your task is to write a program which asks the user to input the three colour bands. The program should then calculate and output the resistance value indicated by the bands. As part of your solution, you must define and use a function named colour_to_number. This function should take…arrow_forwardUse the program below: Modify the program that will test whether or not the expression evaluates to a negative or positive number. This is in MIPS Assembly Language Sample OUTPUT: The output is 14 output is positive. THIS DOES NOT SHOW IN CODE #Evaluate the expression: 4x^2 - 8x + 2 .data prompt: .asciiz "Enter an input for x to evaluate 4x^2 - 8x + 2: " output: .asciiz "The output is " .text main: li$v0,4#output the prompt for user la$a0,prompt syscall li$v0,5#input the number and save it to $s0 syscall move $s0,$v0 #square the input #lw$t0, ($s0) mul$t0, $s0, $s0 #multiply by 4 mul$t0, $t0, 4 #multiply input by -8 #lw $t2, ($s0) mul $t2, $s0, -8 #add it all add$t0, $t0, $t2 add$t0, $t0, 2 li$v0,4#print the output label la$a0,output syscall li$v0,1#output the number that was entered move$a0,$t0#could also use lw $a0, $s0. Pseudo code syscall li$v0, 0xB #print newline, 0xB = 11 #which is the system call to print a single character la$a0, 0xA#0xA is the newline…arrow_forwardThere are three single precision floating point numbers, numA, numB and numC. Write a piece of code in MIPS assembly language that compares two numbers numA and numb, if numB is greater than numA, add them and save the result in numC. Otherwise save 0 in numC.arrow_forward
- I need help the lab 03 LC#3 of Day of Week of CSE 2130 Machine Organization. Write a program in LC-3 assembly language that keeps prompting for an integer in the range0-6, and each time it outputs the corresponding name of the day. If a key other than ’0’ through’6’ is pressed, the program exits.arrow_forwardin mips Write a program that asks the user to enter a signed number and read it. Then display the content of multiplying this number by 37.25. Note1: Only the shift instructions are allowed (No mul/div) in this task. Note2: Anything after decimal point in the result is ignored. foucs on notes pleasearrow_forwardWrite an assembly function that uses a for loop to multiply all the numbers from 1 through and including N. Return the result. Print the returned value. Hello I was hoping someone could run through this code step by step as I am new to Assembly language, thank you!arrow_forward
- Using c++ Write the program to calculate the day of the week of birth. This program should use a SWITCH instruction. The day, month and year of birth should be input. Based on these inputs the day of the week of birth is calculated as follows: a. Divide the last two digits of the birth year by 4. Put the quotient (ignoring the remainder) in TOTAL. For example, if the person was born in 83, divide 83 by 4 and store 20 in TOTAL.b. Add the last two digits of the birth year to TOTAL. TOTAL now contains 103.c. Add the last two digits of the birth date to TOTAL. If born on May 10, add 10. TOTAL now contains 113.d. Using the following table, find the "month number" and add to TOTAL. January = 1 February = 4 March = 4 April = 0 May = 2 June = 5 July = 0 August = 3 September = 6 October = 1 November = 4 December = 6 In our example: TOTAL now contains 115.e. If the year is leap year and if the month you…arrow_forwardPlease help write this in verilogarrow_forwardCan you use Python programming language to wirte this code? Thank you very much!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