Question

Problem: Write the instructions to add the value $16 and SCD. Place the result in register A Problem: Show the contents of RAM locations for the code: LDY #$9245 STY $804 Y register has $9245 store Y register values in location $804 and $805

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

1) code for addition of $16 and $CD is

Add A, $16,$CD

The addition data will be stored in register A.

2)RAM locatio

LDY. #$9245. Stores the data in first page or zero page where Y register consist of $9245

STY $804. Saves the upper 16 bits of partial products

Add a comment
Know the answer?
Add Answer to:
Problem: Write the instructions to add the value $16 and SCD. Place the result in register...
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
  • Show all steps. Write a program to clear Register B, and then add the number three...

    Show all steps. Write a program to clear Register B, and then add the number three to B seven times. Use the BNE instruction with DECA HTML Edito Paragraph 0 words Write a program to clear Register A, add five to Register A 10 times, and place the result in RAM Location $2000. Use a RAM location for holding the counter HTML Editor Paragraph ▼ ▼ 0 words

  • PCSrc Add ALU Add result Shift left 2 Read register 1Read Read register 2 Write register Write da...

    PCSrc Add ALU Add result Shift left 2 Read register 1Read Read register 2 Write register Write data RegWrite Read ALU operation MemWrite data 1 MemtoReg Zero ALU ALUAddresS data Instruction Registers Read Read Instruction MI IMI memory WriteData data memory 16 Sign- MemRead extend 3, (4 points) For question#2, in the datapath as shown in Fig. 1, assume that one of the following control signals has a stuch-at-0 fault, meaning that the signal is always 0, regardless of its...

  • Write a sequence of MIPS instructions to find the absolute value of the value in register...

    Write a sequence of MIPS instructions to find the absolute value of the value in register $s0 and store it into register $t0. Assume you do not have access to multiplication instructions. Use as few instructions as possible. You do not have to assemble your code for this question, but you may do so to validate that it works.

  • (ii) f = g - A[C[16) + B[321) (iii) A[i] 4B[8i-811 + 4C[32i+321 Problem 2. Consider...

    (ii) f = g - A[C[16) + B[321) (iii) A[i] 4B[8i-811 + 4C[32i+321 Problem 2. Consider the following code (again, assume a 64-bit machine) ld x6, 0 (x7) sd x6, 8(x7) Assume that the register x7 contains the address 0x1000000000000000 and the data at address is 0x112233445566778899 AABBCCDDEEFF. a. What value is stored in 0x100000000000000F on a bigendian machine? b. What value is stored in 0x100000000000000F on a littleendian machine? Problem 1. Write down the RISC V code for the...

  • You can find the detailed description of the instructions for S12 in the reference manual “S12CPUV2.pdf"....

    You can find the detailed description of the instructions for S12 in the reference manual “S12CPUV2.pdf". This document is available in the lab. 1. Example: The following program (1) clear register A, then (2) add 3 to A ten times. It uses the zero flag and BNE with DECB ; this program adds value 3 to register A ten times ; A=0 COUNT EQU 10 ; use 10 for counter LDAB #COUNT ; load the counter CLRA AGAIN ADDA #3...

  • 1. Write a code segment that adds the immediate values $29 and $42, with the final...

    1. Write a code segment that adds the immediate values $29 and $42, with the final result located in register A. Determine the value of the result. 2. Write a code segment that uses one instruction to add 1 to register B. 3. Write a code segment that uses one instruction to subtract 1 from register X. 4. Write a code segment that loads the value $1234 into register D. 5. Write a code segment that loads S54 into B,...

  • The AVR provides a rich instruction set to support high-level languages. The AVR address- ing modes...

    The AVR provides a rich instruction set to support high-level languages. The AVR address- ing modes also simplify the access of complex data structures. The AVR has a version of the ADD instruction that includes the C flag as one of the source operands, which enables multiple- precision addition operation. The AVR also has a version of the SUB instruction that includes the C flag as one of source operands and hence is used to perform multiprecision subtraction operation. The...

  • MARIE Assembly Code Problem For the following problem, please create new MARIE instructions by pr...

    MARIE Assembly Code Problem For the following problem, please create new MARIE instructions by providing the full MARIE RTN (register transfer notation) for the described operation. Your answer should include the fetch, decode, operand fetch (if necessary), execution and store result (if necessary) stages. When you see X in these instructions, this is a main memory address (the last 12 bits of the 16-bit instruction) – refer to this as IR[11..0] and not X. Problem: ClearIndirect X – X is...

  • MARIE Assembly Code Problem For the following problem, please create new MARIE instructions by providing the...

    MARIE Assembly Code Problem For the following problem, please create new MARIE instructions by providing the full MARIE RTN (register transfer notation) for the described operation. Your answer should include the fetch, decode, operand fetch (if necessary), execution and store result (if necessary) stages. When you see X in these instructions, this is a main memory address (the last 12 bits of the 16-bit instruction) – refer to this as IR[11..0] and not X. Problem: ClearIndirect X – X is...

  • 3. Assume the processor data path show below. XE30 Add Add ALU result Shift left 2...

    3. Assume the processor data path show below. XE30 Add Add ALU result Shift left 2 RegDst Branch MemRead Instruction (31-26] RegSrc Control ALUOP Mem Write ALUSrc RegWrite PC Instruction (25-21) Read address Instruction (20-16] Instruction [31-0) Instruction instruction (15-11) memory Read register 1 Read data 1 Read register 2 Write Read register data 2 Write data Registers Zero ALU ALU result Read Address data OX OX3) 3x) Write Data data memory Instruction [15-0) 16 32 Sign- extend ALU control...

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
Active Questions
ADVERTISEMENT