Execute the command in hex and print the command

Assignment Help Assembly Language
Reference no: EM131959171

Assignemnt: Assembly Lab

You will submit 1 .txt file to blackboard containing the source code (assembly code) with your sample runs at the bottom

"main" method (pseudo code) [ .code]

For each of the following commands, first execute the command in hex and print the command and the result. Then execute it again in binary and print it.

• SHL, SHR, SAL, SAR (binary only)

• ROL, ROR, RCL, RCR (binary only)

• SHLD, SHRD (hex only)

Note: Give the register an initial value of 10001101. The count you shift/rotate should be 2. Each time you execute another command, reset the value of the register. You can play around with other values, but what you submit to me in the lab should execute these values or I will not grade it.

See example output below.

• Run one example each of the IMUL and IDIV commands and print the results. You can use dumpregs after each operation. Play around and try different numbers to see what you get. Check your carry and overflow flags.

Reference no: EM131959171

Questions Cloud

What is the post-ipo equity value : A company is planning to go public. Currently, the pre-IPO value of the firm's equity is $95 million, the number of outstanding shares is 3.5 million.
What neutral noble-gas atom : (a) What neutral noble-gas atom has the same electron configuration? (b) What is the monatomic ion with a 1- charge that has this configuration?
What is the cost of debt to the company : A company plans to float $25 million in bonds and $10 million in preferred stock. The current price of it's preferred stock is $50 and it pays $2.60.
Write a procedure to draw a line by dda algorithm : Write a procedure to draw a line by DDA algorithm. That procedure accept as input the endpoint pixel positions.
Execute the command in hex and print the command : For each of the following commands, first execute the command in hex and print the command and the result. Then execute it again in binary and print it.
Generate the current level of earnings per share : Your company's existing operations are expected to generate the current level of earnings per share in the future. Assume that the return on new investments.
Literature review on a company using accounting software : HI5019 STRATEGIC INFORMATION SYSTEMS T1 2018 - Describes and prepare a system flowchart of the sales procedures for the chosen organisation
Consideration in investigations using selective electrodes : This is an important consideration in investigations using selective electrodes. What is the ionic strength (I) of a solution that contains 0.0280 M (NH4)2SO4
Determine the consequences of the transaction : Your company received a $7 million order on the last day of the year. You filled the order with $3 million worth of inventory.

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