home *** CD-ROM | disk | FTP | other *** search
-
- ; adam 081 759 5198 ;here at mom4ent
-
- ;adam 081 572 5253 ;home
-
-
-
-
- DOSSEG
- .MODEL TINY
- ;-----------------------------------------
- extrn _init_sound_isr:far
- extrn _terminate_sound_isr:far
- extrn _sendsnd:near
-
-
-
- .stack 200h
- .code
-
- ;-----------------------------------------
- start:
-
- ; initiliase soundboard
-
- call _init_sound_isr
- ;________________________________________
-
- ; test wait for key loop
- ;-----------------------------
- test_loop:
-
- ;call getkey
- ;cmp al,'d' ;return to dos
- jmp finish
-
- sub al,48
- xor ah,ah
- push ax ; value to stack
- call _sendsnd
- jmp test_loop
-
- finish:
-
- call _terminate_sound_isr
- mov ah,4ch
- int 21h
-
-
- ;-----------------------------
-
-
-
-
- GetKey proc near
- mov ah,0 ;do DOS getkey
- int 16h ;ASCII in al
- ret
- GetKey endp
-
- CheckKey proc near
- mov ah,1 ;do DOS checkkey
- int 16h
- ret
- CheckKey endp
-
- end Start
- end