Skip to content

Instantly share code, notes, and snippets.

@inkrement
Created March 18, 2012 09:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inkrement/2070147 to your computer and use it in GitHub Desktop.
Save inkrement/2070147 to your computer and use it in GitHub Desktop.
ATMEL 1280 port a leds on asm
; Christian Hotz-Behofsits 2012
; i/o example in asm (atmega 1280)
; set leds on button event
.NOLIST
.INCLUDE "m1280def.inc"
.LIST
.section .text
.org 0x0000
Reset:
rjmp main
main:
ser R16
out DDRA, R16
out PORTA, R16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment