Question

III Show RSCPU machine code bytes (in binary) for the assembly code (note that the machine code starts at memory location 0.): 0: LDAC 60 MVAC LDAC 70 SUB STAC 75 IV. Assume a 64-byte memory module connected to a CPU that has a 10-bit address bus. Show the logic to generate the CE signal for this memory module if it occupied the following range of addresses: a) 128 to 191 b) 640 to 703 c) 0 to 63

0 0
Add a comment Improve this question Transcribed image text
Answer #1

A)

Following code is used to subtract the contents of memory location 60 and 70 and then store the result in memory location 75

LDAC 60
Loads the content from memory location 60 into CPU's Accumulator (AC)

< OP CODE >   < 16 Bit memory address >
0000 0001 0000 0000 0000 0000 0000 0110 0000 0000

MVAC
Copies the content of AC (Accumulator) to Register R

< OP CODE >  
0000 0011

LDAC 70
Loads the content from memory location 70 into CPU's Accumulator (AC)

< OP CODE >   < 16 Bit memory address >
0000 0001 0000 0000 0000 0000 0000 0111 0000 0000

SUB
Subtract the contents of AC (Accumulator) and R (R Register) i.e. AC = AC - R, if (AC - R = 0) then Z = 1, else Z = 0

< OP CODE >
0000 1001

STAC 75
Store the Contents of Accumulator (AC) in memory location 75

< OP CODE > < 16 Bit memory address >
0000 0010 0000 0000 0000 0000 0000 0111 0000 0101

Add a comment
Know the answer?
Add Answer to:
III Show RSCPU machine code bytes (in binary) for the assembly code (note that the machine...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • What is the machine code that corresponds to the AVR Assembly Language Instruction sub r24, r15 E...

    What is the machine code that corresponds to the AVR Assembly Language Instruction sub r24, r15 Enter your answer as a 16 bit binary number. There must be no spaces or punctuation marks - just enter sixteen 1's or O's.) What is the machine code that corresponds to the AVR Assembly Language Instruction sub r24, r15 Enter your answer as a 16 bit binary number. There must be no spaces or punctuation marks - just enter sixteen 1's or O's.)

  • A byte-addressable memory system contains four memory modules each of which is 32 bits wide by...

    A byte-addressable memory system contains four memory modules each of which is 32 bits wide by 2^28 cells deep. The system employs a 1 MB 2-way set associative cache with 128-byte cache lines. It also uses a 32-bit CPU-to-memory data bus as well as 32-bit physical addresses. Each memory module requires 4 clock cycles to perform either a read or a write operation. a) Assuming that the memory system is low order interleaved, show the proper 32-bit format for physical...

  • Binary and hexadecimal numbers and ASCII code: Write the binary and hexadecimal equivalent of the decimal...

    Binary and hexadecimal numbers and ASCII code: Write the binary and hexadecimal equivalent of the decimal numbers below: Decimal Binary Hexadecimal 6 __________                __________ __________ 15   __________                __________ __________ 39   __________                __________ __________ 170   __________                __________ __________ Write the binary and decimal equivalent of the following hexadecimal numbers:    Hexadecimal                Binary             Decimal 08                    __________                        __________ 0B                   __________                        __________ 15                    __________                        __________ F3                    __________                        __________ Write the two digit hexadecimal sequence of...

  • Q1. Suppose we have a virtual memory of size 2 Terabytes (2048GB, or 241 bytes), where...

    Q1. Suppose we have a virtual memory of size 2 Terabytes (2048GB, or 241 bytes), where pages are 8KB (213 bytes) each, and the machine has 4GB (232 bytes) of physical memory.                      a) Compute the number of page table entries needed if all the pages are being used.                       b) Compute the size of the page table if each page table entry also required 4 additional bits (valid, protection, dirty, use). Q2. For this problem, you are given a...

  • CASE II AziTech is considering the design of a new CPU for its new model of...

    CASE II AziTech is considering the design of a new CPU for its new model of computer systems for 2021. It is considering choosing between two (2) CPU (CPUA and CPUB) implementations based on their performance. Both CPU are expected to have the same instruction set architecture. CPUA has a clock cycle time of 60 ns and CPUB has a clock cycle time of 75 ns. The same number of a particular instruction type is expected to be executed on...

  • Note: All assembly code should be well commented-similar level of detail to samples. 7. Write ARM...

    Note: All assembly code should be well commented-similar level of detail to samples. 7. Write ARM code that decodes the immediate value in an instruction-takes the last 12 bits and turns it into the value it represents a. Start by loading r1 with the value E3A01CFA (machine code for a move immediate into register) b. Isolate bits 0-7 (the rightmost 8 bits) the 8-bit binary number - into r2 c. Isolate bits 8-11 d. Multiply r3 by 2 to get...

  • *Java* Given the attached Question class and quiz text, write a driver program to input the...

    *Java* Given the attached Question class and quiz text, write a driver program to input the questions from the text file, print each quiz question, input the character for the answer, and, after all questions, report the results. Write a Quiz class for the driver, with a main method. There should be a Scanner field for the input file, a field for the array of Questions (initialized to 100 possible questions), and an int field for the actual number of...

  • X86 Assembly Language Help to implement the CipherChar Procedure at the end of the given code...

    X86 Assembly Language Help to implement the CipherChar Procedure at the end of the given code INCLUDE Irvine32.inc         .data       KeyPrompt BYTE "Enter the passphrase: ",0       TextPrompt BYTE "Enter the plaintest: ",0           str1 BYTE "The passphrase has length:",0           str2 BYTE "The plaintest has length:",0       KeyIs BYTE "The passphrase: ",0       PlainTextIs BYTE "The plaintext: ",0       CipherTextIs BYTE "The ciphertext: ",0       KMAX = 64                        ; passphrase buffer maximum size       BMAX = 128                       ; test...

  • computer analysis

    Questions1.  The function L is defined as L(1) = 2,L(2) = 1,L(3) = 3,L(4) = 4 and for n ≥ 4,L(n + 1) = L(n) + L(n − 1) + L(n − 2)L(n − 3)i.e., the (n + 1)-th value is given by the sum of the n-th, n − 1-th and n − 2-th values divided by the n − 3-th value.(a)  Write an assembly program for computing the k-th value L(k), where k is an integer bigger than...

  • Python Project

    AssignmentBitmap files map three 8-bit (1-byte) color channels per pixel. A pixel is a light-emitting "dot" on your screen. Whenever you buy a new monitor, you will see the pixel configuration by its width and height, such as 1920 x 1080 (1080p) or 3840x2160 (4K). This tells us that we have 1080 rows (height), and each row has 1920 (width) pixels.The bitmap file format is fairly straight forward where we tell the file what our width and height are. When...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT