Subversion Repositories SvarDOS

Rev

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

Rev 1594 Rev 1595
Line 244... Line 244...
244
    unsigned short *ptr = (void *)0x0a; /* int22 handler is at 0x0A of the PSP */
244
    unsigned short *ptr = (void *)0x0a; /* int22 handler is at 0x0A of the PSP */
245
    ptr[0] = RMOD_OFFSET_ROUTINE;
245
    ptr[0] = RMOD_OFFSET_ROUTINE;
246
    ptr[1] = rmodseg;
246
    ptr[1] = rmodseg;
247
  }
247
  }
248
 
248
 
-
 
249
  /* set my own parent to RMOD (this is not necessary for MS-DOS nor FreeDOS but
-
 
250
   * might be on other DOS implementations) */
-
 
251
  {
-
 
252
    unsigned short *ptr = (void *)0x16;
-
 
253
    *ptr = rmodseg;
-
 
254
  }
-
 
255
 
249
  return(res);
256
  return(res);
250
}
257
}
251
 
258
 
252
 
259
 
253
/* look up my parent: if it's rmod then return a ptr to its props struct,
260
/* look up my parent: if it's rmod then return a ptr to its props struct,