Mail Archives: djgpp/1998/06/13/11:45:07
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 -