Question

Problem 7 (15pts) Convert this following pseudo-code in high level language into a piece of an assembly code (NIOS 2). In the
blem 8 (25pts): We need to use interrupt to create a program that will blink all of the LEDS on/off every 1s. (a) Please comp
.section .exceptions, ax global EXCEPTION_HANDLER push_all rdctl et, ipending bne et, ), )/*determine if there is an interruthird photo is problem 8 pt 2. anything would help please
0 0
Add a comment Improve this question Transcribed image text
Answer #1

7)

S1 t r2 r4 r5

Sgt r3 r5 r6

and r2 r2 r3

bne r2 1 skip

add r10 r10 1

skip: sub r10 r10 1

Add a comment
Know the answer?
Add Answer to:
third photo is problem 8 pt 2. anything would help please Problem 7 (15pts) Convert this...
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
  • Problem 5 (15pts): Describe what the following program is doing (Do not need to explain each line of instruction....

    Problem 5 (15pts): Describe what the following program is doing (Do not need to explain each line of instruction. Just show me the purpose of this code). .equ LEDS, Ox100000 10 # define LEDS Ox10000010 .text global start #base address of LEDS on DEO-Nano start: movia r2, LEDS movi r3, 0b00000001 movi r4, OX7FFF slli r4, r4, 3 add r4, r4, r4 load: movi r5, 0b10000000 loop: stw rs, o(r2) mov r6, ro count: addi r6, r6, 1 bne r6,...

  • Section B - ARM Assembly Language (25 marks) An ARM instruction set summary is provided at...

    Section B - ARM Assembly Language (25 marks) An ARM instruction set summary is provided at the end of this paper 1. (5 marks) Consider the following assembly instruction STMFD r13!, (r5-6} Before executing this instruction, registers hold the following values: Register Value Register r9 Value r4 0x00400040 0x00000000 r5 r10 0x11223344 0x00800080 r6 0x55667788 r11 0x10001000 r7 0x99aabbcc r12 0x20002000 r8 exddeeff00 r13 ex40004000 What memory locations are affected after executing the above instruction? In a table, with a...

  • Compute the correct CPU computations and actions. Write the final updated values for each memory, register...

    Compute the correct CPU computations and actions. Write the final updated values for each memory, register and flags after the given instruction executes in the space provided. There are multiple parts of this problem. Endianness: Check for endianness in case of loads and stores, in each part of the question. If the question does not specify the endianness, you can assume little-endian. MOVT R3, #OxBD34 Orig. Updated Data Updated Data R6 Memory Address Ox84F0 0x84F1 0x8452 Ox84F3 Ox8454 Ox84F5 Ox84F6...

  • ARM assembly language Write the final updated values for each memory and register after the given...

    ARM assembly language Write the final updated values for each memory and register after the given instruction executes in the space provided.There are multiple parts of this problem. Note Only write the change values if the values didn't change. Leave the updated cell blank. please explain (as simple as possible ) whats going on after the given command is executed . Q.5.4 Bring to class LSL R6, R6, #3 Updated Data Updated Data Memory Address Ox84F0 Ox 841 Ox84F2 Ox843...

  • Consider a VEX-executing VLIW machine with the following characteristics: The machine supports 4 slots (4-wide machine)...

    Consider a VEX-executing VLIW machine with the following characteristics: The machine supports 4 slots (4-wide machine) with the following resources: 2 memory units each with a load latency of 3 cycles 2 integer-add/sub functional units with a latency of 2 cycle 1 integer-multiply functional unit with a latency of 4 cycles Each functional unit in the machine is pipelined and can be issued a new operation at each cycle. However, the results of an operation are only available after the...

  • please help with problems 7 and 8, I am extremely confused! Part 2: Kirchhoff's Rules For...

    please help with problems 7 and 8, I am extremely confused! Part 2: Kirchhoff's Rules For the circuit shown below, the directions of the currents through the circuit elements has been chosen arbitrarily. Using Kirchhoff's rules, you will determine the actual currents through the circuit elements. (Yes, this circuit could be analyzed using equivalent resistance, but don't do it that way.) R1: 752 Kirchhoff's Junction Rule 4) Start by choosing a junction. Write Kirchhoft's Junction rule for that junction below...

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