Show how the value ascii miriam is stored in memory

Assignment Help Basic Computer Science
Reference no: EM13333107

1. Show how the value ASCII "MIRIAM" is stored in memory in Big Endian format starting at location 100 hexadecimal. Assume that each memory location stored two ASCII characters.

 

Memory Location

Value Stored

100

 

101

 

102

 

 

2. A given microprocessor has words of 1 byte.  What is the smallest and largest integer that can be represented in the following representations?

            a) unsigned

 

            b) sign- magnitude

 

            c) ones complement

 

            d) twos complement

 

            e) unsigned packed decimal

 

            f) signed packet decimal

 

3. Compare zero-, one, two-, and three- address machines by writing programs to compute

                        X = (A + B x C)/(D - E x F)

for each of the four machines.  Do not modify the values of A, B, C, D, E, or F.  If necessary, use a temporary location T to store the intermediate results.

The instructions available for use are as follows:

 

0 Address

1 Address

2 Address

3 Address

PUSH M

LOAD M

MOVE (XßY)

MOVE (XßY)

POP M

STORE M

ADD (XßX + Y)

ADD (XßY + Z)

ADD

ADD M

SUB (XßX - Y)

SUB (XßY - Z)

SUB

SUB M

MUL (XßX x Y)

MUL (XßY x Z)

MUL

MUL M

DIV (XßX / Y)

DIV (XßY / Z)

DIV

DIV M

 

 

 

4. Convert the following formulas from reverse Polish to infix:

            a) AB +C + D x

            b) ABCDE + x x /

5. Convert the following formulas from infix to reverse Polish:

a) A + B + C + D + F

b) (A x B) + (C x D) + E

6. Assume a stack-oriented processor that includes the stack operations PUSH and POP.  Arithmetic operations automatically involve the top one or two stack elements.

Beginning with an empty stack, what stack elements remain after the following instructions are executed?

 

Instruction

Stack (top number on left of stack)

PUSH 4

 

PUSH 7

 

PUSH 8

 

ADD

 

PUSH 10

 

SUB

 

MUL

 

 

 

7.  Consider a processor in which a two-word instruction is stored at location 100 with its address field at location 101 as shown below.

Memory

        Registers                             Address           Content

PC =100

 

100

Load to AC;  Mode

 

 

101

Address = 600

 

R1 = 300

 

102

Next instruction

 

 

:

:

 

XR = 200

 

200

300

 

 

:

:

 

BR = 300

 

300

700

 

:

:

AC = ?

 

400

200

 

:

:

 

 

500

100

 

 

:

:

 

 

600

400

 

 

:

:

 

 

702

500

 

 

:

 

 

 

800

900

 

 

:

:

 

 

900

800

 









 

The first word of the instruction specifies the operation code and mode; the second word specifies the address part.

The values of the program counter (PC register), a general register (R1), the index register (XR), the base register (BR), and certain addresses in memory are as shown below.

 

Evaluate the effective address and the value that is loaded into the AC for the following addressing modes:

 

 

Addressing Mode

Effective address

Value of the operand loaded into the AC

a)

Immediate

 

 

b)

Direct addressing

 

 

c)

Indirect addressing

 

 

d)

Register

 

 

e)

Register indirect

 

 

f)

Relative address

 

 

g)

Base register addressing

 

 

h)

Indexed addressing

 

 

 

 

Reference no: EM13333107

Questions Cloud

Explain what is the ph of a solution that is in nh4cl : NH3 is a weak base (Kb = 1.8 x 10^-5) and so the salt NH4Cl acts as a weak acid. What is the pH of a solution that is 0.044 M in NH4CL
What is the internal resistance of the solar cell : A solar cell generates a potential difference of 0.0984 V when a 500 ? resistor is connected across it, What is the internal resistance of the solar cell
What force acts on it at this position : a particle of mass 2kg moves along axis x through the region in which its potential energy u(x) varies, what force acts on it at this position
What will clubs stock price be at the end of the first year : Genuine Producs Inc. requires a new machine. Two companies have submitted bids, and you have been assigned the task of choosing one machine.
Show how the value ascii miriam is stored in memory : Show how the value ASCII "MIRIAM" is stored in memory in Big Endian format starting at location 100 hexadecimal. Assume that each memory location stored two ASCII characters.
Operates a commercial dive boat in a state : Operates a commercial dive boat in a state
Define how many grams of hcl are in a quart of muriatic acid : How many grams of HCl are in a quart of muriatic acid? The muriatic acid density is 1.18 g/mL and is typically 36.5% HCl by mass.
What is the speed of the ball as it strikes the ground : A 0.17 kg baseball is launched from the roof of a building 12m above the ground. What is the speed of the ball as it strikes the ground
What are the monthly payments : What will Levi's salary be in five years if he gets a 5 percent raise each year and what would his salary be in five years if the annual raise is 9 percent?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Explain the four stages of the bpm process and summarize

Explain the four stages of the BPM process and summarize the activities in each.

  Writesql statement produce single column called itemlocation

Write an SQL statement to produce a single column called ItemLocation

  Who swallowed a cat, imagine that to swallow a cat.

There was an old woman who swallowed a fly. I don't know why she swallowed that fly, Perhaps she'll die. There was an old woman who swallowed a spider, That wriggled and wiggled and jiggled inside he She swallowed the spider to catch the fly, I do..

  Write a program that asks the user to enter a string

Write a program that asks the user to enter a string. Create a pointer called strPtr and print the first character, third character and fifth character from your string using this pointer.

  Explain why your technique is lossless and not lossy

Devise a way to compress the following list of last names using a lossless technique. Describe your method and show the compressed list. Explain why your technique is lossless and not lossy.

  How easy or difficult would it be initiate such advantages

More generally, to what extent do specific technologies help companies gain an edge over their competitors? How easy or difficult would it be to initiate such advantages?

  Early proof of concept

Currently our organisation has a sample running application to sell books which has been designed as an early proof of concept. The application can be found in your installation at C:glassfish3glassfishdocsjavaee-tutorialexamplescase-studiesdukes-boo..

  Describe graphical user interfaces-communications message

Describe some of the graphical user interfaces (GUIs) and communications messages that occur during operation of a microwave.

  Literature for information on position of cko

Investigate literature for information on position of CKO and find out an approximate percentage of firms with knowledge management initiatives which have CKOs.

  Explaining network attacker steal secure google cookies

Explain how a network attacker (an active attacker that can intercept or forge network packets, etc.) could steal secure google.com cookies.

  Traditional approach or a type of agile approach

When evaluating a proposal for acquisition and sourcing, are there considerations that are unique in the case of an IT project versus a non-IT project?

  Machine that has a single register and six instructions

Machine that has a single register and six 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