Category : C Source Code
Archive   : PCC-FNCT.ZIP
Filename : EQUIP.A

 
Output of file : EQUIP.A contained in archive : PCC-FNCT.ZIP
; Copyright (c) 1985 Martin Nohr and Tom Serface
; All Rights Reserved
;
;Revision Date Description
;-------- --------- --------------------------------------------

; Interrupt and codes for the keyboard interface.
DOSINT equ 21h ;call to ibm dos function

cseg

;Equip Get Equipment Status
;
; Call as stuff = Equip();
; Where: stuff is and int.
;unsigned Equip();
;unsighned stuff;

public Equip_
Equip_:
push bp
int 11h ;Get Equipment Status
pop bp
ret

;Hdisk How many hard disks on the system
; Returns number of fixed disks
;
; Call as disks = Hdisk()
;int Hdisk();
;int disks;

public Hdisk_
Hdisk_:
push bp
mov bx,40H
mov es,bx
mov al,es:[75H] ;number of Fixed Disks
xor ah,ah
pop bp
ret


  3 Responses to “Category : C Source Code
Archive   : PCC-FNCT.ZIP
Filename : EQUIP.A

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/