Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;
- ; Lab8.asm
- ;
- ; Created: 10/23/2018 3:09:33 PM
- ; Author : Alex
- ;
- ;Activity 1
- ;load data set from FLASH to SRAM
- ldi ZH, high(Set1<<1)
- ldi ZL, low(Set1<<1)
- ldi XH, high(0x0100)
- ldi XL, low(0x0100)
- ldi r20, 25
- load_sram:
- lpm r16, Z+ ; load into register what is pointed to by program memory - then increment z reg
- st X+, r16
- dec r20
- brne load_sram
- here: jmp here
- ; Store data set in flash
- .ORG 0x0020
- Set1: .db $12, $36, $83, $A5, $5D, $29
- Set2: .db 'T','E','M','P','L','E'
- Set3: .db "Engineering"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement