Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;
- ; program04.asm
- ;
- ; Created: 1/24/2019 10:39:10 AM
- ; Author : 5935512030 Ismael hama
- ;
- ; Replace with your application code
- .include"m328Pdef.inc"
- .def a = R16
- .def b = R17
- .def c = R18
- .cseg
- .org 0x00
- rjmp RESET
- RESET: ldi b,24
- mov a,b
- lsl a
- lsl a
- mov c,b
- lsr c
- lsr c
- lsr c
- lsr c
- ldi zl,low(var_a)
- ldi zh,high(var_a)
- st z+,a
- st z+,b
- st z+,c
- END: rjmp END
- .dseg
- .org 0x10C
- var_a: .byte 1
- var_b: .byte 1
- var_c: .byte 1
Advertisement
Add Comment
Please, Sign In to add comment