home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 3 / FREEWARE.BIN / towns_os / ssp / ssp_off.asm next >
Assembly Source File  |  1980-01-02  |  2KB  |  64 lines

  1. ;************************************************************************
  2. ;*                                                                      *
  3. ;*     Super Sound Player  for FM TOWNS                                 *
  4. ;*                                                                      *
  5. ;*             Switch OFF program                                       *
  6. ;*                                                                      *
  7. ;*            by HONESEN    since 1990/10/20                            *
  8. ;*                                1990/10/21   ver 0.0                  *
  9. ;*                                1990/10/27   ver 1.0                  *
  10. ;*                                1990/10/28   ver 1.1  for Oh!FM       *
  11. ;*                                                                      *
  12. ;*                                1990/11/23   ver 2.0  T-OS L30        *
  13. ;*                                                                      *
  14. ;************************************************************************
  15.  
  16.         .386p
  17.         assume    cs:_code,ds:_code
  18.  
  19. ;========================================
  20. ; constant definition
  21. ;========================================
  22.  
  23. SND_BIOS_ent_o    equ    80H
  24. SND_BIOS_ent_x    equ    14000H
  25. xprog_ent    equ    14100H
  26.  
  27.  
  28. _code        segment    para public use32 'code'
  29.  
  30. ;========================================
  31. ; main routine
  32. ;========================================
  33.  
  34. main        proc    near
  35. ; ----- Set T-BIOS selecter
  36.         mov    ax,0118H
  37.         mov    es,ax                ;set selecter
  38. ; ----- Check SSP ON
  39.         cmp    dword ptr es:[SND_BIOS_ent_o],xprog_ent
  40.         jnz    main0
  41. ; ----- Patch up SND_BIOS jump table
  42.         mov    eax,es:[SND_BIOS_ent_x]        ;offset
  43.         mov    es:[SND_BIOS_ent_o],eax
  44.         mov    ax,es:[SND_BIOS_ent_x+4]    ;selecter
  45.         mov    es:[SND_BIOS_ent_o+4],ax
  46. ; ----- Exit back to DOS.
  47. main0:        mov    ax,04C00H
  48.         int     21H
  49. main        endp
  50.  
  51. ; <<<<< Version >>>>>
  52.  
  53.         db    'SSP_OFF ver2.0 1990/11/23 HONESEN'
  54.  
  55. _code        ends
  56.  
  57. ;********* stack segment **********
  58.  
  59. _stack        segment byte stack use32 'stack'
  60.         db    8192 dup (?)
  61. _stack        ends
  62.  
  63.         end main
  64.