-
Notifications
You must be signed in to change notification settings - Fork 304
Open
Description
Hi. Why is it possible to address the 7-segment displays one by one, but not in a single instruction? Is this a bug, a "limitation", or the desired behavior? Example code:
#-- 7-segment display test
.data
.eqv DISP_R 0xFFFF0010 # right display address (+1=> left display)
.eqv ON_ONE_DISPLAY 0xFF # all segments on, one display
.eqv ON_TWO_DISPLAYS 0xFFFF # all segments on, two displays
.text
li s0, DISP_R
li t0, ON_ONE_DISPLAY
li t1, ON_TWO_DISPLAYS
sb t0, 0(s0) #ok ON right display
sb zero, 0(s0) #OFF right disylay
sb t0, 1(s0) #ok ON left display
sb zero, 1(s0) #OFF left right disylay
sw t1, 0(s0) #only ON right display!
stop: b stop
Thank you.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels