Question
Recall that in the project we had the following data section: .data sequence: .byte 0,0,0,0 count: .word 4 And had access to the following pollDpad
Recall that in the project we had the following data section:
.data sequence: .byte 0,0,0,0 count: .word 4
And had access to the following pollDpad function:
# Polls the d-pad input until a button is pressed, then # returns a number representing the button that was # pressed in a0. Uses t registers -- but no s registers. pollDpad:
Write a loop in assembly that checks the d-pad input against the sequence at the address sequence. If a difference is detected, the code at label INCORRECT should be executed. If all four items in the sequence match, then the code at label CORRECT should be executed. Neither label is defined below, and you do not need to define them. Just branch to them when it is appropriate to do so.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started