Program (starting at address $4000) to find the average

Assignment Help Assembly Language
Reference no: EM13168388

Write a program (starting at address $4000) to find the average of four 16-bit

unsigned integers stored at locations $5000, $5002, $5004 and $5006 and store

the 16-bit result at location $5010. Round your result to the nearest integer. (You

can assume that the sum of the four integers is not greater than 64K). Initialize

your four numbers to be 302, 420, 1000 and 1529 (decimal). Enter your program

into the MiniIDE and assemble it. Load your assembled code into the simulator

and check that it operates correctly. In your report, show your code and show a

screen shot of the simulator after your program has completed with the memory

display window set to show addresses starting at $5000

 

 

Reference no: EM13168388

Questions Cloud

Can we offer an example of a query : Can we offer an example of a Query in which we can use a parentheses to affect the order of execution in which the WHERE Clause has both AND and OR Logical Operators?
Explain the difference between a fluorescence emission spect : Explain the difference between a fluorescence emission spectrum and a fluorescence excitation spectrum. Which more closely resembles an absorption spectrum?Why do some absorbing compounds fluoresce but others do not?
What is the purpose of adding sodium sulfate to the organic : What is the purpose of adding sodium sulfate to the organic layer after all of the extractions are complete?
Only letters are affected : You are to write a ROT13 (for "rotate 13") decoder to translate a secret message from its encoded state to something readable. In a ROT13 code, 'a' is shifted 13 letters to 'n', 'B' to 'O', 'c' to 'p', 'D' to 'Q', ..., 'N' to 'A', 'o' to 'b', 'P' ..
Program (starting at address $4000) to find the average : Write a program (starting at address $4000) to find the average of four 16-bit
How many moles of each product are formed : If the average human body discharges 925.0g CO2 per day, how many moles of NaOHare needed each day for each person in the spacecraft?( 42.04 mol NaOH)
Prove by contradiction that if n is a perfect square : Let n > 1 be an integer. Prove by contradiction that if n is a perfect square, then n + 3 cannot be a perfect square.
What is the energy of a photon of this wavelength : one type of sunburn occurs on exposure to UV light of wavelength in the vicinity of 325nm.
Draw concerning structures of species containing : What conclusions can you draw concerning structures of species containing the same number of atoms and the same number of valence electrons?

Reviews

Write a Review

Assembly Language Questions & Answers

  Create a assembly language subroutine

Create a assembly language subroutine MULSUM that takes an array named A containing n bytes of positive numbers, and fills two arrays, array B containing n words and array C containing n long words

  Write a function in linux assembly

Write a function in Linux assembly

  Analog measurements

Prepare an assembly program for the correctly measures the wind direction

  Design a simple digital clock

Design a simple digital clock

  Write an assembly program

Prepare an Assembly program that reads in a number of cents.

  Write an assembly language program

Write an assembly language program for encrypting alphabates of a string

  Greatest common divisor of integers-masm assembly language

Must be done in MASM assembly language: Greatest common divisor of two integers is largest integer which will evenly divide both integers. GCD algorithm involves integer division in a loop.

  Write assembly program-find right admission price to movie

Write the Assembly program to find correct admission price to movie. Price of admission to a movie is $7 for kids (under 12) and $9 for adults.

  Create simple 8-bit alu using add-subtract-shift functions

Create a simple 8-bit ALU. Requirements:The eight functions that you will implement are: add, subtract, and, or, shift left logical, less than, shift right logical.

  Write assembly program print binary representation-integers

Write the assembly program called hw6_ex1, stored in file hw6_ex1.asm. This program must prompt user to enter signed 32-bit integer. Program must print out binary representation of the integer.

  Allot op-codes and add microcode to microprogram

Allot op-codes and add microcode to microprogram of Mic-1 to implement following instructions which are then included with IJVM instruction set.

  Write mips assembly program to read two non-negative numbers

Write MIPS assembly program to repeatedly read two non-negative integers and print integer product and quotient without using multiplication and division instructions.

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