Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. ;-------------------------------------------------------------------------------
  2. ; MSP430 Assembler Code Template for use with TI Code Composer Studio
  3. ;
  4. ;
  5. ;-------------------------------------------------------------------------------
  6. .cdecls C,LIST,"msp430.h" ; Include device header file
  7. CodeSeg .equ 0x4400
  8. DataSeg .set 0x3400
  9.  
  10. .data
  11. Vdata .byte 3
  12. Wdata .word 10, -1
  13. Xdata .space 2
  14. Ydata .string "BA", "BY"
  15. Zdata .word 99h
  16.  
  17. .text
  18. RESET1 mov.w #10,R4
  19. Copy mov.w #Vdata,R10
  20. mov.w #DataSeg,R11
  21. Loop dec.b R4
  22. jne Loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement