delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/13/11:45:07

Message-ID: <199806131744320690.0063E9EE@pogwizd.tcs.uni.wroc.pl>
Date: Sat, 13 Jun 1998 17:44:32 +0200
From: "Pawel Kowalski" <pk AT tcs DOT uni DOT wroc DOT pl>
To: djgpp AT delorie DOT com
Subject: Re: Turbo Assembler & DJGPP
Mime-Version: 1.0

I tried allocating some kbytes for stack but with no success.

>Do you perhaps use some uninitialized variables? Try to initialize all
>variables and see if the error happens all the time or never then.

Nope. All variables are initialized before.

>Or do you garble some of the registers in your assembler code?
>
>In an old article, Bill Currie said:
>
>| %ebx, %esi, %edi, %ebp, %es, %ds and %ss (%cs is pretty obvious:) %eax,
>| %edx and %ecx are all free for your use (however, %eax is used for
>| return values (so is %edx, but only for 8 byte values)). %fs and %gs are
>| also free, however, libc uses %gs internally and never touches %fs.
>
>Eli Zaretskii said:
>
>| Several functions in DJGPP's library use GS.  FS is not used by the
>| library, but if you call the so-called farptr functions, they use the
>| FS register.
>
>Maybe you can check and see if you touch some of these registers
>sometimes.

Nope. I use there _only_ eax, ebx, ecx, edx, ds, es, esi, edi.

Maybe I should rewrite that stuff in gnu assembler. Tell me then,
when can I find a suitable TXT of HTML FAQ about GNU assembler?
(for the beginners)

Thanx, PK.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019