Created
October 8, 2012 12:03
-
-
Save Novakov/3852163 to your computer and use it in GitHub Desktop.
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
.nolist | |
.include "m128def.inc" | |
.list | |
.listmac | |
.DSEG | |
ram_tab: .byte 60 | |
.cseg | |
.org 0 | |
rjmp ResetProcessor ; | |
ResetProcessor : ; | |
cli ; | |
Main: | |
cbi DDRA, 0 | |
sbi PORTA, 0 | |
loop: | |
in r16, PINA | |
andi r16, 0x1 | |
cpi r16, 0x0 | |
breq Copy | |
rjmp loop | |
Copy: | |
ldi r16, 0xbd | |
sts ram_tab, r16 | |
rjmp loop | |
rom_tab: | |
.db 0x01, 0x00 , 0xffff |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment