TIP: Click on subject to list as thread! ANSI
echo: public_domain
to: Paul Edwards
from: rowan crowe
date: 1995-05-30 01:23:22
subject: radical msqing

Sunday May 28 1995 09:11, Bill Grimsley wrote to Paul Edwards:

Intereresting that your original message didn't make it here. 

 PE>> Ok, it's taken me all day, but I found out what was stopping me
 PE>> using Watcom C for DOS (after Rowan told me how to make the
 PE>> assembler stuff work - THANKS ROWAN!!!).  The bug was in
 PE>> normal.asm, it has a "ret 4" instead of a
"ret". This is a bug
 PE>> that would have existed in all 3.x versions of MSGED, and I do not
 PE>> know why it hasn't affected anyone.  It only affected the dos
 PE>> version of course.  Anyway, I have no idea whether this is causing
 PE>> the Qld woes or not, but instead of just sending up the Borland
 PE>> executable with this bug squashed, I'm sending up the Watcom
 PE>> executable instead.  So that is two changes that I am sending, and
 PE>> hopefully one of them will fix the problem you are having, and
 PE>> subsequenly hopefully everyone else's.

    I have NORMAL.ASM in another window right now, and indeed it has
"ret 4". This means return [far], and discard 4 bytes (2
parameters) from the stack. Except no parameters were passed to it!

    This has the effect of "misaligning" the stack pointer (SP)
by +4 every time this function is called. Eventually SP will grow into code
or data space, or wrap at SS:FFFF and cause a stack fault (exception #12)
or possibly a GPF (#13).

    How often is _normalize called ?

    As I said in my last message... errors in ASM are very subtle and can
take a lot of work to track down. I should know. I'm writing an entire
bloody compiler.

---
* Origin: Jelly-Bean software development. (3:635/727.1)
SEEN-BY: 50/99 632/348 998 633/371 634/384 635/502 503 513 544 727 638/100
SEEN-BY: 640/230 690/718 711/401 410 430 807 808 809 933 934 713/888 800/1
SEEN-BY: 7877/2809
@PATH: 635/727 632/348 635/503 50/99 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.