Mpassign2 Khayam
Mpassign2 Khayam
ASSIGNMENT : 02
Class BEE-5B
Code
; Define constants
; Main program
RESET:
; Check the input value and use the lookup table to control the LEDs
breq INPUT_00
breq INPUT_01
cpi r16, 0b10
breq INPUT_10
breq INPUT_11
DEFAULT:
rjmp DEFAULT
INPUT_00:
rjmp END
INPUT_01:
rjmp END
INPUT_10:
INPUT_11:
rjmp END
; End of program
END:
rjmp END