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

  1. PAGE    66,132
  2. ;
  3. ;
  4. ;
  5. ;
  6. ;
  7. ;
  8. ;
  9. ;
  10. ;  readcs.asm
  11. ;
  12. ;  usage:
  13. ;        unsigned int readcs()
  14. ;        segment = readcs();
  15. ;
  16. ;  Function to allow a C program to determine the CS 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 READCS
  31. datadef
  32.  
  33. cstart  READCS
  34. cpublic readcs
  35.  
  36.     mov    AX,CS
  37.  
  38. creturn readcs
  39. cend    READCS
  40.  
  41.         end
  42.