Subversion Repositories SvarDOS

Rev

Rev 1595 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1595 Rev 1597
Line 233... Line 233...
233
    pop dx
233
    pop dx
234
    pop bx
234
    pop bx
235
    pop ax
235
    pop ax
236
  }
236
  }
237
 
237
 
238
  /* save my original parent in rmod's memory */
238
  /* save my original int22h handler and parent in rmod's memory */
239
  res->origparent = *((unsigned long *)0x0a); /* original parent seg:off is at 0x0a of my PSP */
239
  res->origint22 = *((unsigned long *)0x0a); /* original int22h handler seg:off is at 0x0a of my PSP */
-
 
240
  res->origparent = *((unsigned short *)0x16); /* PSP segment of my parent is at 0x16 of my PSP */
240
 
241
 
241
  /* set the int22 handler in my PSP to rmod so DOS jumps to rmod after I
242
  /* set the int22 handler in my PSP to rmod so DOS jumps to rmod after I
242
   * terminate and save the original handler in rmod's memory */
243
   * terminate and save the original handler in rmod's memory */
243
  {
244
  {
244
    unsigned short *ptr = (void *)0x0a; /* int22 handler is at 0x0A of the PSP */
245
    unsigned short *ptr = (void *)0x0a; /* int22 handler is at 0x0A of the PSP */