Skip to content

Digital Sim tool 7-segment displays simultaneous addressing #231

@javierMaciasGMAIL

Description

@javierMaciasGMAIL

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions