Skip to content

Instantly share code, notes, and snippets.

@SammyOina
Created October 12, 2021 21:50
Show Gist options
  • Save SammyOina/2f417dc91305d76de221a63e6ce25b20 to your computer and use it in GitHub Desktop.
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.
;
; 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