Create new assembly code file

Assignment Help Basic Computer Science
Reference no: EM133265768

Create new assembly code file (you can use the template file from lab 1) and paste the following line in the .data segment: array BYTE

0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 These lines create new array of bytes called simply "array" with 32 elements, the numbers 0-31. For this lab assignment, you need to create n assembly code program that switches the order of every pair of array elements. In other words, you need to swap the order of 0 and 1, 2 and 3, 4 and 5, etc. When your program is complete the elements of the array should be: 1, 0, 3, 2, 5, 4, 7, 6, 9, 8, 11, 10, 13, 12, 15, 14, 17, 16, 19, 18, 21, 20, 23, 22, 25, 24, 27, 26, 29, 28, 31, 30 Your program must perform this task using data transfer instructions and loops. This means: You can't create second array and copy the values over in the correct order. The value switching must happen inside the original array. You can't fake the switching process by just overwriting new values into the array. You must actually switch the order of the existing values. You can't manually code each swap into your program. You must use a loop to perform swaps on the entire array.

Reference no: EM133265768

Questions Cloud

Define liberty, equality, and fraternity : Define Liberty, Equality, and Fraternity Define Deontological Ethics. Is it representative of Moral Objectivity or Relative Morality?
What were the researchers aims in conducting the study : What were the researchers' aims in conducting the study? Summary of the main findings and What alternative design would you recommend under the same situation
What will be the final encrypted message : Consider cipher block chaining of the binary message 1011011011001010 using the key 1010. What will be the final encrypted message?
Reflect on your own culture : Identify and explain how your upbringing and/or significant events in your family's past have influenced your cultural identity. Give 3 examples.
Create new assembly code file : Create new assembly code file (you can use the template file from lab 1) and paste the following line in the .data segment: array BYTE
How has this law changed the way hospitals handle indigent : Discuss EMTALA was enacted in 1986. How has this law changed the way hospitals handle indigent patients? Include practical examples in your discussion
Turing machine tape was limited in one direction : If a Turing machine's tape was limited in one direction
Explain play fair chiper : Explain Play Fair Chiper. How to Encrypt with a plain text example of your own.
What are key performance indicators : What are key performance indicators (KPIs)? Identify three KPIs that might be used in doctor's or dentist's office to measure patient office visit experience.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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