Created
October 12, 2021 21:50
-
-
Save SammyOina/2f417dc91305d76de221a63e6ce25b20 to your computer and use it in GitHub Desktop.
Receives input data through pins in PORTD and does a NAND operation on the input. The results of the NAND operation are written to PORTB.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; | |
; ReadDisplay.asm | |
; | |
; Created: 10/13/2021 12:09:07 AM | |
; Author : sammy oina kerata | |
; | |
setup: | |
ldi r17, 0b00000000 | |
out ddrd, r17 | |
ldi r18, 0b11111111 | |
out ddrb, r18 | |
start: | |
in r15, pind | |
com r15 | |
mov r16, r15 | |
and r16,r15 | |
out portb, r16 | |
rjmp start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment