home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / CPROG / CEXPRESS.ZIP / READ_ME.TOO < prev    next >
Text File  |  1990-09-16  |  630b  |  24 lines

  1.  
  2.                 A CORRECTION CONCERNING ASSEMBLY MODULE SETUP
  3.  
  4. Depending on the documentation version, you may find in Chapter 10 that it is
  5. recommended that segments be given the name "CODE" when writing your own
  6. assembly language routines.  This works fine in Turbo C, but not in certain
  7. memory models with the Microsoft compilers.  Instead, name the segment
  8. "_TEXT", as in:  
  9.  
  10. _TEXT    SEGMENT  BYTE PUBLIC 'CODE'
  11.     ASSUME  CS:_TEXT
  12.     PUBLIC _draw_box
  13. _draw_box proc near
  14.     .
  15.     .
  16.     .
  17.     .
  18.     .
  19. _draw_box endp
  20. _TEXT    ENDS
  21.     END
  22.  
  23. This approach works in all memory models for all compilers, Borland and
  24. Microsoft alike.