home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / b / bootp.zip / READDS.ASM < prev    next >
Assembly Source File  |  1992-02-08  |  640b  |  43 lines

  1. PAGE    66,132
  2. ;
  3. ;
  4. ;
  5. ;
  6. ;
  7. ;
  8. ;
  9. ;
  10. ;  readds.asm
  11. ;
  12. ;  usage:
  13. ;        unsigned int readds()
  14. ;        segment = readds();
  15. ;
  16. ;  Function to allow a C program to determine the DS register
  17. ;
  18. ;  (c) 1984 University of Waterloo,
  19. ;           Faculty of Engineering,
  20. ;           Engineering Microcomputer Network Development Office
  21. ;
  22. ;  version
  23. ;
  24. ;    0.0    01-May-1984   B. T. Campbell 
  25. ;
  26. ;
  27.     include masmdefs.hsm
  28.     include    model.hsm
  29.  
  30. codedef READDS
  31. datadef
  32.  
  33. cstart  READDS
  34. cproc    readds
  35.  
  36.     mov    AX,DS
  37.     ret
  38.  
  39. cendp   readds
  40. cend    READDS
  41.  
  42.         end
  43.