home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / DRI-archive / roche / BEEP.ASM < prev    next >
Assembly Source File  |  2009-12-11  |  1KB  |  68 lines

  1. ; BEEP.ASM
  2. ; --------
  3. ;
  4. ; CP/M 3 BEEP
  5. ;
  6. ; Disassembled by:
  7. ;
  8. ; ROCHE Emmanuel
  9. ; 8 rue HERLUISON
  10. ; 10000 TROYES
  11. ; FRANCE
  12. ; ------
  13. ;
  14.     page    0        ; Listing without page breaks
  15. ;
  16.     org    100H        ; Standard CP/M COMmand file
  17. ;
  18. ;--------------------------------
  19. ; ASCII characters used
  20. ;
  21. ctrlg    equ    07H        ; BELl
  22. ;
  23. ;--------------------------------
  24. ; List of BDOS functions used
  25. ;
  26. coninp    equ    1        ; Console input
  27. conout    equ    2        ; Console output
  28. ;
  29. ;--------------------------------
  30. ; List of page zero locations used
  31. ;
  32. bios    equ    0000H        ; BIOS entry point
  33. bdos    equ    0005H        ; BDOS entry point
  34. ;
  35. ;--------------------------------
  36. ; Start of program
  37. ;
  38. start:    mvi    c,conout
  39.     mvi    e,ctrlg        ; Beep
  40.     call    bdos
  41.     mvi    c,coninp    ; Wait for a key pressed
  42.     call    bdos
  43.     jmp    bios        ; Then reboots CP/M Plus
  44. ;
  45. ;--------------------------------
  46. ; CP/M Plus header
  47. ;
  48.     ds    49
  49. ;
  50.     db    'CP/M VERSION 3.0'
  51.     db    'COPYRIGHT 1982, '
  52.     db    'DIGITAL RESEARCH'
  53.     db    '151282'
  54. ;
  55.     ds    1        ; Area for patch numbers 25 to 32
  56.     ds    1        ; Area for patch numbers 17 to 24
  57.     ds    1        ; Area for patch numbers  9 to 16
  58. ;    ds    1        ; Area for patch numbers  1 to  8
  59. ;
  60.     db    1        ; This version of BEEP.COM had
  61.                 ; been applied a patch number 1...
  62. ;
  63.     db    '654321'    ; (Default) Serial number
  64. ;
  65. ;--------------------------------
  66. ;
  67.     end    100H        ; Standard CP/M COMmand file
  68.