hamaXD

program 4

Jan 23rd, 2019
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;
  2. ; program04.asm
  3. ;
  4. ; Created: 1/24/2019 10:39:10 AM
  5. ; Author : 5935512030 Ismael hama
  6. ;
  7.  
  8.  
  9. ; Replace with your application code
  10. .include"m328Pdef.inc"
  11.  
  12. .def var_a = R16
  13. .def var_b = R17
  14. .def var_c = R18
  15.  
  16. .cseg
  17. .org 0x00
  18.     rjmp RESET
  19.  
  20. RESET:  ldi var_b,24
  21.         mov var_a,var_b
  22.         lsl var_a
  23.         lsl var_a
  24.         mov var_c,var_b
  25.         lsr var_c
  26.         lsr var_c
  27.         lsr var_c
  28.         lsr var_c
  29. END: rjmp END
  30. .dseg
  31. .eseg
Advertisement
Add Comment
Please, Sign In to add comment