    .equ SLIDERS, 0xff200040
    .equ LIGHTS, 0xff200000
    .equ SEGMENTS, 0xff200020
    .global _start
    .text
_start:
    li a0, SLIDERS
    li a1, LIGHTS
    li a2, SEGMENTS
refresh:
    lw a3, 0(a0)
    andi a3, a3, 1023
    sw a3, 0(a1)
    sw zero, 0(a2)  # TODO: send the switch word to the displays.
    j refresh
