Write the program in machine language to sum five numbers

Assignment Help Electrical Engineering
Reference no: EM132727876

Chapter 3:

Exercises:
1) Check the internet to see the differences among the terms simulation, emulation, and imitation as related to computer projects.
2) Modify listing 3.1 and change the inputs from switches to keys. The KEYs and LEDRs must be [1:0].
3) Modify listing 3.1 and change the outputs from LEDS to seven-segment hex display 2. The range for both the SW and HEX2 must be [7:0] on the DE10-Lite

Chapter 4:

Exercises:
1) Logical operations such as a two-input AND gate can be described by a four-row truth table. Using a case statement as shown in listing 4.5, create an AND function and test it with switches and an LED output. Likewise implement the other gates: XOR, OR, NAND, and NOR. The NOT inverter can be implemented with a single if and else.
2) Use an eight-row truth able to implement a three-input OR gate. Instead of entering all eight lines of the case statement, enter the one for all three inputs being zero and then use "others" to represent the remaining seven cases which have the same result.
3) Use the gates from the first two exercises to implement a half adder and a full adder.
4) Use the above exercise to implement a 4-bit adder

Chapter 7:

Exercises:
1) Use the calculator from listing 7.3 to add the sequence: 5, 13, 17 and 22. Of course, you had to convert those numbers from decimal to binary before entering them
2) Again, using the calculator, add the numbers 30 and 35. What is wrong with the answer? Why are no errors detected?

Exercises:
1) Write the program in machine language to sum five numbers. Convert it to the hexadecimal code and enter it as a replacement for lines 52-57 in listing 8.5. Compile this new listing 8.5 code , download it, and run the program.
2) Write another program as was done in the previous exercise, but this time calculate the vertical parity of 5 numbers, this can be done by doing an exclusive (EOR) on each of the numbers

Exercises:
1) In chapter 8, instructions were entered in hexadecimal, so it was very convenient to have fields line up on 4-bit boundaries. Temporarily modify the code in listing 9.3 so that the immediate bit is adjacent to the second operand.
2) Modify the code to use an integer variable named IP, so each instruction will look like progMod[IP] <= ‘MOV R1,0,R2. Three changes will be necessary:
a) Variable IP must be defined before it is used (integer IP;)
b) The number in brackets (such as [0],[1]) for each assembly language type statement must all be changed to [IP]
c) The IP must then be incremented after each statement by IP=IP+1;

Chapter 10:

Exercises:
1) Modify the ARM program on lines 237 - 242 of listing 10.2 to calculate the AND operation and compare it to a calculated value
2) Modify the same lines from listing 10.2 to write a short ARM program to sum a series of numbers such as 1+2+3+...
a) Initialize R0 to 0, and R1 to 1 using two MOV instructions
b) The third instruction will ADD the contents of R1 to R0
c) The fourth instruction will ADD the immediate value of 1 to register R1
d) The fifth instruction will load an immediate value of 2 into register R15 (the PC). This will force the instruction to be executed to be the one that adds the contents of R1 to R0.

Reference no: EM132727876

Questions Cloud

Administrative agencies presentation : Visit the websites of any three state or federal administrative agencies: for example National Labor Relations Board (NLRB),
Find and calculate cost of goods sold and ending inventory : Company Z records transactions using a perpetual system. Calculate the cost of goods sold and ending inventory using average cost
Provisions of the Sarbanes-Oxley Act : How does the decision in this case impact the validity of the Board and other provisions of the Sarbanes-Oxley Act?
What is the exercise value of the call option : A call option on the stock with a $35 strike price currently sells for $21. What is the exercise value of the call option? What is the time value
Write the program in machine language to sum five numbers : Write the program in machine language to sum five numbers. Convert it to the hexadecimal code and enter it as a replacement for lines
Obstacles or barriers to implementing EBP in nursing : What are some of the obstacles or barriers to implementing EBP in nursing?
Demonstrate how garner arrive at order-filling cost per unit : The $464.00 selling price per unit includes 16% markup to cover administrative costs. Demonstrate how Garner arrives at the $49.60 order-filling cost per unit.
Identify the weakness in signet corporation internal control : Identify the weakness in Signet Corporation's internal control. Explain several audit procedures that might disclose the fraudulent disbursement
What is impact of decision on short-term operating profit : Special Order; Relevant Costs; Opportunity Cost Sharman,What is the impact of this decision on short-term operating profit, rounded to the nearest whole dollar?

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Lithium ion battery technology

The paper includes Lithium ion battery technology with its advantages and disadvantages. The paper discusses about the Lithium air battery in which detailed reactions of Lithium with air including nonaqueous as well as aqueous are given.

  Power transformers and tariffs

Construction of different types of power transformer, significant energy savings

  Paper on orthogonal frequency-division multiplexing

This document is shown a paper on Orthogonal frequency-division multiplexing with advantages, disadvantages and uses.

  Function of the hmi in a scada system

This assignment contains electronics engineering questions like State the commonly found components of a SCADA (Supervisory control and data acquisition) system. and decribe the function of the HMI in a SCADA system.

  Resultant waveform of the odd harmonic series

Prepare an Excel graph showing the individual components and summated resultant waveform of the odd harmonic series resulting in an approximate square wave.

  Explain scada system

Explain the function of the HMI in a SCADA system.

  Design a 2-digit 24 second shot-clock

Design a 2-digit 24 second "shot-clock" countdown timer with pushbutton controller.

  Model a discrete-time system

To understand di erent signal models To be able to model a discrete-time system and design simple signal processing algorithms.

  Draw a relay construction diagram

Draw a relay construction diagram and briefly explain the operation of a relay.

  Frequency division multiplexing

Write a short technical report on Frequency Division Multiplexing

  Impact of electron energy

Briefly discuss the impact of electron energy, electron current and target on the Bremsstrahlung generated.

  Traffic light controller

The schematic of the traffic light controller

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd