home *** CD-ROM | disk | FTP | other *** search
- ;
- page 60,132
- title Ring the Console Bell
- ;
- ; Author: Marty Prahl
- ; Date: 12-dec-84
- ; Rev: 1.0
- ;
- ; Copyright (c) 1984 by Marty Prahl
- ;
- ; Abstract:
- ;
- ;
- ;---------------------------------------------------------------------------
- ;
- ; Symbols
- ;
- ;---------------------------------------------------------------------------
- ;
- cseg segment para public 'CODE'
- assume cs:cseg, ds:cseg
-
- org 0100h
-
- include system.mac
-
- dos_functions
-
- page
- ;
- ;---------------------------------------------------------------------------
- ;
- ; Local Data
- ;
- ;---------------------------------------------------------------------------
- ;
- bell equ 7
-
- ;
- ;---------------------------------------------------------------------------
- ;
- ; Beep
- ;
- ;---------------------------------------------------------------------------
- ;
- beep:
- mov dl,bell ; ring the bell
- mov ah,con_out ; display console output
- int dos ; dos interrupt
-
- mov al,0 ; no error on return
- mov ah,exit_proc ; dos terminate
- int dos ; dos interrupt
-
- cseg ends
- end beep