Subversion Repositories SvarDOS

Rev

Rev 983 | Rev 1588 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 983 Rev 987
Line 147... Line 147...
147
    pop ax
147
    pop ax
148
  }
148
  }
149
 
149
 
150
  /* mark the input buffer as empty */
150
  /* mark the input buffer as empty */
151
  myptr = MK_FP(rmodseg, RMOD_OFFSET_INPUTBUF);
151
  myptr = MK_FP(rmodseg, RMOD_OFFSET_INPUTBUF);
152
  myptr[0] = 128;
152
  myptr[0] = 128;  /* max acceptable length */
153
  myptr[1] = 0;
153
  myptr[1] = 0;    /* len of currently stored history string */
154
  myptr[2] = '\r';
154
  myptr[2] = '\r'; /* string terminator */
-
 
155
  myptr[3] = 0xCA; /* signature to detect stack overflow damaging the buffer */
-
 
156
  myptr[4] = 0xFE; /* 2nd byte of the signature */
155
 
157
 
156
  /* prepare result (rmod props) */
158
  /* prepare result (rmod props) */
157
  res = MK_FP(rmodseg, 0x100 + rmodcore_len);
159
  res = MK_FP(rmodseg, 0x100 + rmodcore_len);
158
  _fmemset(res, 0, sizeof(*res));  /* zero out */
160
  _fmemset(res, 0, sizeof(*res));  /* zero out */
159
  res->rmodseg = rmodseg;          /* rmod segment */
161
  res->rmodseg = rmodseg;          /* rmod segment */