home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 3
/
FREEWARE.BIN
/
towns_os
/
ssp
/
ssp_off.asm
next >
Wrap
Assembly Source File
|
1980-01-02
|
2KB
|
64 lines
;************************************************************************
;* *
;* Super Sound Player for FM TOWNS *
;* *
;* Switch OFF program *
;* *
;* by HONESEN since 1990/10/20 *
;* 1990/10/21 ver 0.0 *
;* 1990/10/27 ver 1.0 *
;* 1990/10/28 ver 1.1 for Oh!FM *
;* *
;* 1990/11/23 ver 2.0 T-OS L30 *
;* *
;************************************************************************
.386p
assume cs:_code,ds:_code
;========================================
; constant definition
;========================================
SND_BIOS_ent_o equ 80H
SND_BIOS_ent_x equ 14000H
xprog_ent equ 14100H
_code segment para public use32 'code'
;========================================
; main routine
;========================================
main proc near
; ----- Set T-BIOS selecter
mov ax,0118H
mov es,ax ;set selecter
; ----- Check SSP ON
cmp dword ptr es:[SND_BIOS_ent_o],xprog_ent
jnz main0
; ----- Patch up SND_BIOS jump table
mov eax,es:[SND_BIOS_ent_x] ;offset
mov es:[SND_BIOS_ent_o],eax
mov ax,es:[SND_BIOS_ent_x+4] ;selecter
mov es:[SND_BIOS_ent_o+4],ax
; ----- Exit back to DOS.
main0: mov ax,04C00H
int 21H
main endp
; <<<<< Version >>>>>
db 'SSP_OFF ver2.0 1990/11/23 HONESEN'
_code ends
;********* stack segment **********
_stack segment byte stack use32 'stack'
db 8192 dup (?)
_stack ends
end main