QuestionQuestion

Transcribed TextTranscribed Text

5. (15 pts.) Abyte addressable amount memory (in MB) that 6. (30 pts.) Given the following storage allocation directives and numl: do.w 2,4,6,8,10 num2: num3: dc.b 20.22.24.28 DO: 0000 1046 Dl: FFFF FFAO AO: 0000 3116 CCR: 0100 For each of the following instructions, show the registers and/or memory location that would b changed result contents CCR (NZVC) after each one. Use the initial The numl S0000 3110 a) add.w (A0),DO #2,CCR f) neg.1 D1 7. (25pts.) Given the following function prototype int foo(int &a, byte &b) The function begins follows: $7000 foo: link A6,#-4 movem. D1/A0-A1,-(SP) In the box below show the contents ofthe stack after the movem instruction. Label the and show the size (in bytes) of everything the stack. Indicate the position of the SP. 8 (25pts.) void int &d, int e, long f) The procedure Use the registers for the parameters Retrieve them ir order first 9. (10 pts.) The data register DO should not be saved/restored in: function. Why? 10. (20pts.) Given the following function int myFunction(int &a, The function begins follows: ORG $7000 What the contents of A6 after the movem instruction: A6: 11. (20pts.) procedure swap uses storage allocation in the calling program for passing parameters. The void &a, int The code in program as follows: isr move. The procedure follows: ORG $8000 swap: link A6,#0 movem. A0/A1,-(SP) Write retrieve the parameters registers A0 and AI Don't write the whole procedure, just the instructions needed retrieve the parameters

Solution PreviewSolution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

Assembly Language Questions
    $25.00 for this solution

    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