home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / OBJASM.ZIP / ORMODEND.C < prev    next >
C/C++ Source or Header  |  1990-02-25  |  481b  |  24 lines

  1. #include <stdio.h>
  2. #include "o.h"
  3.  
  4. extern int data_seg_idx;
  5. extern unsigned long data_offset;
  6.  
  7. void modend( length, extension )
  8.     unsigned int    length;
  9.     int             extension;
  10. {
  11.     int             type;
  12.  
  13.     /*
  14.     ** Processing for MODEND records
  15.     */
  16.     type = get_byte();
  17.  
  18.     if ( type & 0x40 ) {
  19.         data_seg_idx = 0;
  20.         data_offset  = 0L;
  21.         length -= decode_fixup( 1, 0, 1, 1, extension );    /* Seg 0 offset 1 */
  22.     }
  23. }
  24.