Machine execution cycle

Assignment Help Assembly Language
Reference no: EM13843916

Question 1:

1) Form the -ve hexadecimal number to 2's hex

hex to bin , bin to 2's , 2's to hex

Convert: -(C4)16 = (F3C)16

2) Convert 2's binary to decimal

2's - 1 , !bits , val = - (bin to dec):

Convert: (10110110)2 = (-74)10

3) Convert -ve decimal to binary

dec to bin , bin to 2's

Convert: (-217)10 = (1111111100100111)2s

4) Convert -ve decimal to hexadecimal

dec to 2's , 2's to hex

Convert: (-456)10 = (FE38)16

5) Convert -ve hexadecimal to decimal

hex to bin (2's) , 2's - 1 , !bits , val = - (bin to dec)

Convert: (5E9)16 =

Question 2:

Pay attention to the BASEs in each expression

1) (10101)2 + (1111)2 = ( )2
2) (10001)2 - (11001)2 = ( )2
3) (101)2 + (101)10 = ( )16
4) (101)10 - (101)16 = ( )2's
5) (ABC)16 + (DEF)16 = ( )16
6) (FED)16 - (DEF)16 = ( )2's

Question 3:

a. In the schematic diagram below, for each block 1 through 7, briefly explain its main function.

b. Explain the difference between the following two instructions (c++ code) as far as the machine execution cycle followed in the diagram below:

- bool x = true || false;
- float x = 1.1 + 2.2;

1979_Simplified pentium CPU block diagram.png

 

Reference no: EM13843916

Questions Cloud

Discusses location strategy : You have been asked to provide a location analysis on whether your company should expand an existing manufacturing plant or close the plant and move to a larger plant recently vacated by a bankrupt firm. Compose an email to your supervisor, Karen Sau..
Mexicos population changes after world war ii : Mexico's population changes after World War II
Multinational corporations that manufacture goods : Firm A, Firm B and Firm C are all multinational corporations that manufacture goods. Firm A operates in an industry where the pressure to reduce costs is high, but the pressure to be responsive to local markets is low. Give examples of 2 real-life fi..
Media of mass communication : Review Ch. 13 of The Media of Mass Communication, especially the "Lifestyle Effects", "Attitude Effects", "Cultural Effects", and "Behavioral Effects" sections
Machine execution cycle : Explain the difference between the two instructions as far as the machine execution cycle - Pay attention to the BASEs in each expression
How will you be able to drive customers to the site : Suppose you have a friend that either owns or works for a small business. They really don't want to spend the time or money designing and building their own website. How will you be able to drive customers to the site
What is the definition of the word presumptuous : What is the definition of the word presumptuous
What would be the optimal order quantity : A local furniture store sells beds as well as other furniture and accessory items. Their best-selling bed has an annual demand of 400 units. Each time they place an order for the beds, they incur a cost of $40.00 and the annual cost for carrying the ..
Trade-off between inventory carrying costs-ordering costs : What are ordering costs, and what is the trade-off between inventory carrying costs and ordering costs?

Reviews

Write a Review

Assembly Language Questions & Answers

  Write a program in assembly language which uses bios

write a program in assembly language which uses bios interrupt int 21 to read current system time and displays it on

  Nonrecursive factorialwrite a nonrecursive version of the

nonrecursive factorialwrite a nonrecursive version of the factorial procedure that uses a loop. a wdeonote for this

  Homework assignment on numerical representations

Create an assembly language function that displays the binary and hexadecimal representations of a 16 bit value (passed in as a parameter) on our LCD screen. Use the provided .c main file and assembly language subroutine example as a basis for you..

  Write an arm assembly program

Write an ARM assembly program that prints all the integers greater than 0 and less than 1000 that not divisible by 5.

  Program the control unit for an electronic safe

Program the control unit for an electronic safe. The 8-Segment display and LEDs will show status of the safe.

  Create a assembly language subroutine mulsum that takes an

create a assembly language subroutine mulsum that takes an array named a containing n bytes of positive numbers and

  Document the protocols for passing

You must document the protocols for passing parameters and returning the result to the subroutine and also follow the convertion of saving and restoring registers in the subroutine.

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

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

  Relative addressing mode is a special way

Relative addressing mode is a special way to specify operands. Which instructions are associated with the relative addressing mode? Why do you think it was called "relative" addressing mode? Hint: Use a search engine to find out about "portable code"

  Problems does an assembler have to overcome

What problems does an assembler have to overcome in order to produce complete binary code with only one pass over the source code? How would code written for a one-pass assembler be different from code written for a two-pass assembler?

  Write an assembly language code segment to insert

Write an assembly language code segment to insert 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

  Write a program in assembly code for the simulator

Write a program in assembly code for the simulator that will count from 107 to 14 backwards by 3 and display the counter in the output on each iteration of the loop. (Must be in R1, R2, load and add form)

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