QuestionQuestion

Transcribed TextTranscribed Text

Problem 1: Show work Represent each of the following decimal numbers in each of the following binary representations using 8-bits: 1. signed magnitude 2. one's complement 3. TWO' S complement A.82 B.-17 C. Add the two's complement of A and B above and then convert the result to decimal. Problem 2: Show work Using the 14-bit floating point model, what is the signed Magnitude Representation -normalized & biased for: -100.375 A. What is the representation of the sign? B. What is the representation of the Exponent ? C. What is the representation of the Significant? D. What is the entire 14-bit representation? Problem 3: Show work Complete the chart below for the following questions for the Pep/8 machine language instructions given. Each Instruction starts from the original Content (i.e. each instruction is independent and is not based on the previous instruction) You will need to jump ahead to Chapter 6 to determine (D) for one of the instructions. A: Accumulator X: Index Register Mem[0A3F]: Contents of Memory OA3F Mem[2A41]: Contents of Memory 0a41 A. What does the instruction do? (DO) B. Which register does it specify? (Register) C. Which addressing mode does it specify? (Mode) D. Given the original content, what is the content after the execution of the following instructions: Do Register Mode A x Mem [0A3C] Hem [2A42] Original Content 1086 FE25 0a41 OA3F Instruction 792A42 E12A42 A90A3C c22a42 Problem 4: (Show your work) Determine the output of the following machine-language program by running it in Pep/8. The left column in each part is the memory address of the first byte on the line: Instructio Address Description n 0000 c10000 0003 18 0004 F1000B 0007 51000B 000A 00 000s 00 000c FFDA A. Submit the code with comments describing each line. B. What is the output of the program? C. The instruction at address 0003 is a unary instruction. What does that mean? D. What is the instruction at 0003 doing? Give the binary value of the accumulator before and after the command. Problem 5: Write a machine-language program to output your first name on the output device. Write it in a format suitable for the loader and execute it on the PEP/8 simulator. You may only use instructions in Fig 4.6. You shall submit A. A written algorithm B. Your commented program similar to the Machine Language (hex) of Fig 4.35 C. The hexadecimal program suitable for the Pep/8 loader. (Cut & paste the text into your document so I can check your code) D. A screenshot of your program output screen Problem 6: Write a machine-language program to add the three numbers 6, -7 and 4 and output the sum on the output device. Note-the inputs can be hard coded in data storage at the end of your code. The accumulator holds 16 bits so use 16 bit TWO': Complement for the -7 and do not use the subtract instruction. Write it in a format suitable for the loader and execute it on the PEP/8 simulator. You may only use instructions in Fig 4.6. (Use the Fig 4.6 revised found with the HW2 assignment) You shall submit: A. A written algorithm B. Your commented program similar to the Machine Language (hex) of Fig 4.35 c. The hexadecimal program suitable for the Pep/8 loader. (Cut & paste the text into your document so I can check your code) D. A screenshot of your program output screen E. Explain the range of numbers that this will work correctly

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

    By purchasing this solution you'll be able to access the following files:
    Solution.docx.

    $45.00
    for this solution

    or FREE if you
    register a new account!

    PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

    Find A Tutor

    View available Assembly Language Programming Tutors

    Get College Homework Help.

    Are you sure you don't want to upload any files?

    Fast tutor response requires as much info as possible.

    Decision:
    Upload a file
    Continue without uploading

    SUBMIT YOUR HOMEWORK
    We couldn't find that subject.
    Please select the best match from the list below.

    We'll send you an email right away. If it's not in your inbox, check your spam folder.

    • 1
    • 2
    • 3
    Live Chats