Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.msdos.programmer > #4084

Re: initial memory

From "R.Wieser" <address@not.available>
Newsgroups comp.os.msdos.programmer
Subject Re: initial memory
Date 2021-12-03 22:30 +0100
Organization Aioe.org NNTP Server
Message-ID <soe3dh$uvq$1@gioia.aioe.org> (permalink)
References <8808cb98-5cfd-444d-87ac-a71ef937f64cn@googlegroups.com> <socrrm$1tl0$1@gioia.aioe.org> <0e2bde4b-b93c-481c-9525-cdb03d863b1dn@googlegroups.com> <sod5i3$j44$1@gioia.aioe.org> <6600e32b-5168-459a-ab8d-93eeeca412b8n@googlegroups.com>

Show all headers | View raw


Muta (paul),

> If the SS/SP are disturbed it implies that the difference between
> minalloc and maxalloc is put between the bss and stack.

Nope.  Minalloc refers to to the end of the combined the bss and following 
stack segments.  Maxalloc can go, as you read yourself, way beyond that.

But I owe you an apology : I remember updating SS/SP after setting MaxAlloc 
to MinAlloc, but a peek into my program (still have it!) showed I made it 
optional.  In case I did not define a stack segment at all (but just kept 
some BSS space free for it), causing SS:SP to be Zero in the EXE header. 
And that ofcourse doesn't really work.  So, I than can force it to be set to 
the end of the BSS segment itself.

IOW, for a program in which a stack segment has been defined you only need, 
as you mentioned, to copy MinAlloc into MaxAlloc.

I hope I did not create to much of a confusion.

> That's a good idea.

:-)  Its the way I've had to, and still do figure out lots of stuff, which 
sometimes makes you run into the darnest things.  And even when full 
documentation was/is available I always had/have the need to verify what was 
said.

Regards,
Rudy Wieser

Back to comp.os.msdos.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

initial memory "muta...@gmail.com" <mutazilah@gmail.com> - 2021-12-02 14:07 -0800
  Re: initial memory JJ <jj4public@gmail.com> - 2021-12-03 15:05 +0700
    Re: initial memory "muta...@gmail.com" <mutazilah@gmail.com> - 2021-12-03 00:38 -0800
      Re: initial memory Mateusz Viste <mateusz@xyz.invalid> - 2021-12-03 09:45 +0100
        Re: initial memory "muta...@gmail.com" <mutazilah@gmail.com> - 2021-12-03 01:22 -0800
        Re: initial memory JJ <jj4public@gmail.com> - 2021-12-04 14:00 +0700
          Re: initial memory "R.Wieser" <address@not.available> - 2021-12-04 08:39 +0100
          Re: initial memory Mateusz Viste <mateusz@xyz.invalid> - 2021-12-04 09:35 +0100
            Re: initial memory "R.Wieser" <address@not.available> - 2021-12-04 13:00 +0100
              Re: initial memory Mateusz Viste <mateusz@xyz.invalid> - 2021-12-04 13:12 +0100
                Re: initial memory "R.Wieser" <address@not.available> - 2021-12-04 15:55 +0100
                Re: initial memory Mateusz Viste <mateusz@xyz.invalid> - 2021-12-04 16:30 +0100
                Re: initial memory "R.Wieser" <address@not.available> - 2021-12-04 18:11 +0100
                Re: initial memory Mateusz Viste <mateusz@xyz.invalid> - 2021-12-04 19:04 +0100
                Re: initial memory "R.Wieser" <address@not.available> - 2021-12-04 21:02 +0100
                Re: initial memory "muta...@gmail.com" <mutazilah@gmail.com> - 2021-12-05 15:01 -0800
                Re: initial memory Mateusz Viste <mateusz@xyz.invalid> - 2021-12-06 09:27 +0100
            Re: initial memory JJ <jj4public@gmail.com> - 2021-12-05 14:03 +0700
      Re: initial memory JJ <jj4public@gmail.com> - 2021-12-04 14:01 +0700
        Re: initial memory "muta...@gmail.com" <mutazilah@gmail.com> - 2021-12-04 02:00 -0800
          Re: initial memory JJ <jj4public@gmail.com> - 2021-12-05 14:12 +0700
            Re: initial memory "muta...@gmail.com" <mutazilah@gmail.com> - 2021-12-05 15:02 -0800
              Re: initial memory JJ <jj4public@gmail.com> - 2021-12-06 13:28 +0700
  Re: initial memory "R.Wieser" <address@not.available> - 2021-12-03 11:25 +0100
    Re: initial memory "muta...@gmail.com" <mutazilah@gmail.com> - 2021-12-03 03:18 -0800
      Re: initial memory "R.Wieser" <address@not.available> - 2021-12-03 14:19 +0100
        Re: initial memory "muta...@gmail.com" <mutazilah@gmail.com> - 2021-12-03 11:35 -0800
          Re: initial memory "R.Wieser" <address@not.available> - 2021-12-03 22:30 +0100
            Re: initial memory - SS:SP "R.Wieser" <address@not.available> - 2021-12-06 14:32 +0100
              Re: initial memory - SS:SP "R.Wieser" <address@not.available> - 2021-12-06 14:51 +0100

csiph-web