Write an assembly program

Assignment Help Assembly Language
Reference no: EM132117179

This question is about converting a high-level program to the assembly level. Please use the ISA discussed in class as your reference.

a) Write an assembly program that performs the same tasks as the following high-level program code. (Using MARIE)

b) Run your program using decimal 5 as input for x. Provide a screenshot showing the result of program execution in decimal. (In the screenshot, please include some unique features, such as a path with a username or a wallpaper, that could help identify you as the owner. Please do not merely write/type your name on the screenshot.)

int x=0;

x = Integer.parseInt(in.readLine());

x=x-8;

System.out.println(x);

Reference no: EM132117179

Questions Cloud

Create another class and named savingaccount : Create a class and name it Person, this class should include the following data members:
What approximate annual rate of return would : If your investment doubles in 6? 3/4 years, what approximate annual rate of return would you have? earned?
Create a default constructor that increments numstudents : Create student1 Object by calling the overloaded constructor for the student Jack Willson. Set the grades array with the values {4, 2, 3, 3}.
What price would an investor be expected to pay : If the current price of the stock is $ 17.20?, and the equity cost of capital for the company that released the shares is 6.9?%
Write an assembly program : Run your program using decimal 5 as input for x. Provide a screenshot showing the result of program execution in decimal.
Write a regular expression describing l : Write a regular expression describing L. Prove the correctness of your construction.
How is polymorphism like a switch statement : How is Polymorphism like a Switch statement? Explain what are the key characteristics of Big O.
What is the covariance between stock a and the market : Assuming a standard deviation of the market of 20%, what is the covariance between stock A and the market?
How many items you sold per month approximately : When did you start to use this system, if yes, how long have you been using this? How many Items you sold per month approximately?

Reviews

Write a Review

Assembly Language Questions & Answers

  Write assembley langusge program to evalute

Write Assembley Langusge program to evalute: 3A+ (B + 5C) 4 +C where A=25, B=30, C=10

  Write a function to convert a given function

Write a function to convert a given function from infix to postfix in assembly. The basic structure of the function is given in the attached assembly language file.

  Wrote a new value into the Timer or Counter register

ECE 375: Computer Organization and Assembly Language Programming Lab - Timer/Counters. In this lab, you used the Fast PWM mode of both 8-bit Timer/Counters

  Give the initial value of the control register

Assume 8255’s PA=out, PB=in, PCL(PC0-PC3)=in, and PCU(PC4-PC7)=out, the port address of A,B,C and the Control Register are 300H-303H respectively. Now if we want to get data from the port B and send it to port A, and get data from PCL then send it ou..

  Design and develop an embedded system

Assembly language program to control the operation of the embedded system and thorough testing to ensure correct operation of system

  Part a clockuse a timer interrupt to design a simple

part a clockuse a timer interrupt to design a simple digital clock. this clock will count only minutes and seconds

  Pseudo-code in assembly language

Implement the following pseudo-code in assembly language (assume unsigned numbers). Declare Apple and Pear as byte sized variables.

  The arm assembly language routine

For the ARM assembly language routine below, what function does it perform for the calling program?

  Write a mips assembly language program to count

Write a MIPS assembly language program to count the number of 1s in a 32-bit word. Use assembly directives to initialize meaningful test data, make room for the result and use variable names within the code.

  Create a procedure named validatepin that receives a pointer

Create a procedure named ValidatePIN that receives a pointer to an array of bytes containing a 5-digit PIN from your main proc. You are required to use the four byte arrays samplePin_1, samplePin_2,samplePin_3 and samplePin_4 declared below.

  Write an assembly program to read an integer

Write an assembly program to read an integer and count the number of ‘1' bits in it's binary representation. Label and print the output.

  Carefully comment each line of the assembly program

The assembly language code segment below is to be inserted into the main.asm file that takes an input controlled by a potentionmeter, converts that input to a digital value, and displays that value on the LEDs according to the following

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