home *** CD-ROM | disk | FTP | other *** search
/ Vectronix 2 / VECTRONIX2.iso / FILES_10 / DEVELOP.LZH / DSP / DSPDEBUG / EXAMPLES / SEND.ASM < prev    next >
Assembly Source File  |  1992-08-19  |  637b  |  29 lines

  1. ;
  2. ;TABSIZE = 8
  3. ;
  4. ; Sample DSP Demo Program of DSPDEBUG RECEIVE Function
  5. ;
  6. PBC        EQU    $ffe0
  7. HCR        EQU    $ffe8
  8. HSR        EQU    $ffe9
  9. HRX        EQU    $ffeb
  10. HTX        EQU    $ffeb
  11. BCR        EQU    $fffe
  12. IPR        EQU    $ffff
  13.  
  14.         ORG    P:$200
  15. Main        movep    #>$4,X:<<HCR        ; Set HCIE for DSPDebug Commands
  16.         movep    #$0c00,X:<<IPR
  17.         movep    #>$1,X:<<PBC
  18.         movep    #>$0,X:<<BCR
  19.         andi    #$fe,mr            ; IPL 2 to enable DSPDebug Host Commands
  20.         ori    #4,omr            ; Set DE (Sine table)
  21.         move    #$100,r0        ; Start of sine table
  22.         do    #$100,_EndLoop
  23. _Wait2        jclr    #1,X:<<HSR,_Wait2
  24.         movep    Y:(r0)+,X:<<HTX        ; Send sine value
  25. _EndLoop    jmp    _EndLoop
  26.  
  27.         END    Main            ; Program begins at 'Main'
  28.  
  29.