home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_08_10 / 8n10103a < prev    next >
Text File  |  1990-05-08  |  458b  |  10 lines

  1.  
  2. asm("    push   es");      /* save segment register */
  3. asm("    mov   ax, 034h"); /* use the Phar Lap Local Descriptor Table (LDT) */
  4. asm("    mov   es, ax");   /*   segment selector 034h to access real memory */
  5. ebx = addr;                /* real memory address desired */
  6. cl = val;                  /* byte value to poke */
  7. asm(ebx, cl, "    mov   byte ptr es:[ebx], cl"); /* poke it */
  8. asm("    pop   es")        /* restore segment register */
  9.  
  10.