



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




.include "../include/system.inc" .include "../include/mymacros.inc" .text .global _start _start: br PROGRAM_START
.org 0x
PROGRAM_START:
movia r4,0x call SEG7_Set
loop: call get_index # SWITCHES.s mov r4,r mov r17,r call disp_index # LEDG.s
call get_newhex # SWITCHES.s mov r4,r mov r16,r call show_newhex # LEDR.s
call get_set # BUTTONS.s beq r2,r0,loop
mov r4,r mov r5,r call SEG7_Set_Digit # SEG7.s br loop loop_end: END: break br END .end