SHARE
TWEET

CMPN 330 Lab3_2

a guest Feb 21st, 2020 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;330_lab3_2.asm - Codewarrior -
  2. main:
  3.      XDEF Entry, main
  4.      XREF __SEG_END_SSTACK  ; symbol defined by linker for end of stack
  5.  
  6. RAM_Data: SECTION
  7.  
  8.    ORG $1100
  9. T1  dc.b 1,2,3,4,5,6,7,8,9,$A
  10.  
  11.   ORG $1110
  12. T2 dc.b 0
  13.  
  14.  Code:   Section
  15.  
  16.  Entry:
  17.  
  18.     ldaa #0                                                
  19.     ldx #T1
  20.     ldab #10
  21.  
  22. L1: adda 0,x
  23.     inx
  24.     decb
  25.     bne L1
  26.    
  27.     staa T2
  28.    
  29. L2: bra L2
  30.  
  31. ***** end of file *****
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top