Subversion Repositories SvarDOS

Rev

Rev 1881 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1881 Rev 1906
Line 146... Line 146...
146
    jc FAIL              /* not DR-DOS */
146
    jc FAIL              /* not DR-DOS */
147
 
147
 
148
    add bx, 0x12
148
    add bx, 0x12
149
    mov ax, es:[bx]      /* read the segment of the kernel environment */
149
    mov ax, es:[bx]      /* read the segment of the kernel environment */
150
    mov kernenvseg, ax   /* save the kern env segment for later */
150
    mov kernenvseg, ax   /* save the kern env segment for later */
151
    mov es:[bx], word ptr 0  /* reset the pointer to kernel env as done by DR COMMAND.COM */
151
    mov word ptr [es:bx], 0  /* reset the pointer to kernel env as done by DR COMMAND.COM */
152
 
152
 
153
    /* if DR-DOS env is at seg 0x60 then overwrite my own env in PSP with this.
153
    /* if DR-DOS env is at seg 0x60 then overwrite my own env in PSP with this.
154
     * Seg 0x60 is used since https://github.com/SvarDOS/edrdos/issues/88 and
154
     * Seg 0x60 is used since https://github.com/SvarDOS/edrdos/issues/88 and
155
     * it is safe to be used as it won't be overwritten */
155
     * it is safe to be used as it won't be overwritten */
156
    cmp ax, 0x60
156
    cmp ax, 0x60