Advertisement
hamaXD

program 5

Jan 23rd, 2019
109
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,2
  21.         ldi var_c,4
  22.         mul var_b,var_c
  23.         mov var_a,R0
  24. END: rjmp END
  25. .dseg
  26. .eseg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement