Question: Take the code from part 2 and modify it so that for this part, your display should only output light if the digit is being
Take the code from part and modify it so that for this part, your display should
only output light if the digit is being used. This means you will have to have
some sort of check to see when you read a for a hex digit, if there are any
digits to the left of those four s if there is display a hex if not, turn off all the
LEDs for that display. For example, if the generated answer is supposed to be
FB it should display only those four digits, it should show neither FB
nor F B just FB This is part "SEGMENT: byte
SEVEN: byte
text
global start
start:
LDR Rxffpushbutton
LDR Rxffswitches
LDR RSEVEN LUT
LDR RSEGMENT
LOOP: LDRB RxF
LDR Rxffseven segment through
LDR R
LDR R
LDRB RRLOADING VALUE OF PUSH BUTTONS
LDRB RRLOADING VALUE OF SWITCHES
B MASK
MASK:
LSL R R R
AND R R R
LDRB RR R
STRB RR
MASK: LSR R #
AND R R R
LSL R #
LDRB RR R
STRB RR #
MASK: LSR R #
AND R R R
LSL R #
LDRB RR R
STRB RR #
MASK: LSR R #
AND R R R
LDRB RR R
STRB RR #
MASK: LDR RSEGMENT
LSR R #
AND R R R
LDRB RR R
STRB RR
MASK:
LSR R #
AND R R R
LDRB RR R
STRB RR #
B DISPLAY
DISPLAY: LDR RR
STR RR
LDR Rxffsecond set of segments and
LDR RR
STR RR
B LOOP
DEAD: B DEAD
end"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
