home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / Samples / C-ASM_VI.ARJ / PROGC.ZIP / PROGC023.C < prev    next >
Text File  |  1988-05-15  |  576b  |  13 lines

  1.  
  2. /************************************************************************/
  3. /* Fetch current number of rows and columns                             */
  4. /* from segment zero and print it                                       */
  5. /************************************************************************/
  6.  
  7. print_data_rc()
  8.         {
  9.         char far        *p = 0;                 /* Declare far pointer  */
  10.         printf("\nCols   = %X hex", p[0x44A]);  /* Print columns        */
  11.         printf(", Rows   = %X hex", p[0x484]+1);/* Print rows           */
  12.         }
  13.