Subversion Repositories SvarDOS

Rev

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

Rev 1591 Rev 1594
Line 54... Line 54...
54
    envsize += 15;
54
    envsize += 15;
55
    envsize /= 16;
55
    envsize /= 16;
56
  }
56
  }
57
 
57
 
58
  _asm {
58
  _asm {
-
 
59
    push bx
-
 
60
    push cx
-
 
61
    push dx
-
 
62
 
59
    /* link in the UMB memory chain for enabling high-memory allocation (and save initial status on stack) */
63
    /* link in the UMB memory chain for enabling high-memory allocation (and save initial status on stack) */
60
    mov ax, 0x5802  /* GET UMB LINK STATE */
64
    mov ax, 0x5802  /* GET UMB LINK STATE */
61
    int 0x21
65
    int 0x21
62
    xor ah, ah
66
    xor ah, ah
63
    push ax         /* save link state on stack */
67
    push ax         /* save link state on stack */
Line 95... Line 99...
95
    int 0x21
99
    int 0x21
96
    /* restore initial UMB memory link state */
100
    /* restore initial UMB memory link state */
97
    mov ax, 0x5803
101
    mov ax, 0x5803
98
    pop bx       /* pop initial UMB link state from stack */
102
    pop bx       /* pop initial UMB link state from stack */
99
    int 0x21
103
    int 0x21
-
 
104
 
-
 
105
    pop dx
-
 
106
    pop cx
-
 
107
    pop bx
100
  }
108
  }
101
 
109
 
102
  if (rmodseg == 0xffff) {
110
  if (rmodseg == 0xffff) {
103
    outputnl("malloc error");
111
    outputnl("malloc error");
104
    return(NULL);
112
    return(NULL);