> lotte% yesterday -d /sys/src/ape/lib/ap/386/main9.s
> diff /n/dump/2007/0426/sys/src/ape/lib/ap/386/main9.s 
> /sys/src/ape/lib/ap/386/main9.s
> 10a11
>>      MOVL    $_exits<>(SB), AX
> 13a15,17
>> 
>> DATA _exits<>+0(SB)/4, $"main"
>> GLOBL        _exits<>+0(SB), $5

> My question is:  "does this look right" ?

no, not at all.  you are passing "main" to
the exit function, which expects an integer.
the old one was correct: it passes the return
value of int main() to exit.  

i'm confused about why changing the
exit value would make things start working
anyway.  maybe it didn't really.

my guess would be your actual problem
is that draw and event use atexit, which
ape doesn't provide.  i'm surprised that
you don't get link errors.

russ

Reply via email to