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 var_a = R16
- .def var_b = R17
- .def var_c = R18
- .cseg
- .org 0x00
- rjmp RESET
- RESET: ldi var_b,24
- mov var_a,var_b
- lsl var_a
- lsl var_a
- mov var_c,var_b
- lsr var_c
- lsr var_c
- lsr var_c
- lsr var_c
- END: rjmp END
- .dseg
- .eseg
Advertisement
Add Comment
Please, Sign In to add comment