home *** CD-ROM | disk | FTP | other *** search
/ Gekkan Dennou Club 147 / Gekkan Dennou Club - 2000.8 Vol. 147 (Japan).7z / Gekkan Dennou Club - 2000.8 Vol. 147 (Japan) (Track 1).bin / tools / spsx / spsx_s01.lzh / SRC / sxsplib.s < prev   
Encoding:
Text File  |  2000-01-22  |  1.0 KB  |  74 lines

  1. ******** int iPcm8Play() ********
  2.     .globl _iPcm8Play
  3.     .text
  4. _iPcm8Play
  5.     movem.l    4(sp),d0/d1/d2/a1
  6.     trap    #2
  7.     rts
  8.  
  9. ******** int iPcm8Stat() ********
  10.     .globl _iPcm8Stat
  11.     .text
  12. _iPcm8Stat
  13.     move.l    4(sp),d0
  14.     add.w    #$0080,d0
  15.     trap    #2
  16.     rts
  17.  
  18.  
  19. ******** int iPcm8Stop() ********
  20.     .globl _iPcm8Stop
  21.     .text
  22. _iPcm8Stop
  23.     move.w    #$0101,d0
  24.     trap    #2
  25.     move.w    #$0100,d0
  26.     trap    #2
  27.     rts
  28.  
  29. ******** int iPcm8Pause() ********
  30.     .globl _iPcm8Pause
  31.     .text
  32. _iPcm8Pause
  33.     move.w    #$0101,d0
  34.     trap    #2
  35.     rts
  36.  
  37. ******** int iPcm8Restart() ********
  38.     .globl _iPcm8Restart
  39.     .text
  40. _iPcm8Restart
  41.     move.w    #$0102,d0
  42.     trap    #2
  43.     rts
  44.  
  45. ******** int iPcm8SetOutHz ********
  46.     .globl _iPcm8SetOutHz
  47.     .text
  48. _iPcm8SetOutHz
  49.     move.w    #$01fd,d0
  50.     move.l     4(sp),d1
  51.     trap #2
  52.     rts
  53.  
  54. ******** int iSwapHighLowByte
  55.     .globl _iSwapHighLowByte
  56.     .text
  57. _iSwapHighLowByte:
  58.     move.l 4(sp),a0
  59.     move.l 8(sp),d1
  60.     moveq.l #0,d0
  61.     jbra ?2
  62. ?5:
  63.     move.w (a0),d2
  64.     rol.w    #8,d2
  65.     move.w d2,(a0)+
  66.     addq.l #1,d0
  67. ?2:
  68.     cmp.l d0,d1
  69.     jbgt ?5
  70.     moveq.l #0,d0
  71.     rts
  72.  
  73.     .end
  74.