Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Let's call it an accidental feature. -- Larry Wall


devel / comp.lang.asm.x86 / extremally stupid error

SubjectAuthor
o extremally stupid errorfirr

1
extremally stupid error

<55e707bd-2395-46dd-ba04-2b6ab7ed231an@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=771&group=comp.lang.asm.x86#771

  copy link   Newsgroups: comp.lang.asm.x86
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: profesor.fir@nospicedham.gmail.com (firr)
Newsgroups: comp.lang.asm.x86
Subject: extremally stupid error
Date: Fri, 13 May 2022 18:19:42 -0700 (PDT)
Organization: A noiseless patient Spider
Lines: 113
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <55e707bd-2395-46dd-ba04-2b6ab7ed231an@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Injection-Date: Sat, 14 May 2022 01:19:42 +0000
Injection-Info: reader02.eternal-september.org; posting-host="b82954c206d7c07578c67d0cbf672bdf";
logging-data="14522"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19BpaKUn+w87tyGJ5RJFCT5Ca+xZoD8D3E="
User-Agent: G2/1.0
Cancel-Lock: sha1:o5PiNMZDK5pYIIfsX/zVQ+oaRlM=
 by: firr - Sat, 14 May 2022 01:19 UTC

write my compiler and i got some rutine

RunFrame
{

DrawLine3d 20.0 30.0 40.0 100.0 0.0 400.0 0xaaaa77
DrawLine3d 22.0 30.0 43.0 130.0 0.0 400.0 0xaaaa77
DrawLine3d 29.0 30.0 42.0 130.0 0.0 400.0 0xaaaa77

}

I got 3 routines that draw lines there and it worx

the problem is ehen i putt those routines in separate call like

foo
{
DrawLine3d 20.0 30.0 40.0 100.0 0.0 400.0 0xaaaa77
DrawLine3d 22.0 30.0 43.0 130.0 0.0 400.0 0xaaaa77
DrawLine3d 29.0 30.0 42.0 130.0 0.0 400.0 0xaaaa77
}

and call this foo from DrawFrame then it crashes though
ime the assembly is the same (rxcep this call and ret)

In fact it DOnt crashes immediatelly if those lines fiit in the centre of
screen it dont crasjes it only crashes when i move camere and those lines
began to become partially outside the window (though this function clips etc and the oryginal version worx ok)

what the hell it could be - i post the executable files and even compiler so you could run and see

https://filebin.net/kap86bfd533x7491

teh assembly generated seems to be ok

DeawLines:
//l.128 DrawLine3d 20.0 30.0 40.0 100.0 1.0 400.0 0xaaaa77
mov eax 11184759
push eax
mov eax 1137180672
push eax
mov eax 1065353216
push eax
mov eax 1120403456
push eax
mov eax 1109393408
push eax
mov eax 1106247680
push eax
mov eax 1101004800
push eax
call ("green_fire.dll"->DrawLine3d)
pop eax
pop eax
pop eax
pop eax
pop eax
pop eax
pop eax
//l.129 DrawLine3d 22.0 30.0 43.0 130.0 2.0 400.0 0xaaaa77
mov eax 11184759
push eax
mov eax 1137180672
push eax
mov eax 1073741824
push eax
mov eax 1124204544
push eax
mov eax 1110179840
push eax
mov eax 1106247680
push eax
mov eax 1102053376
push eax
call ("green_fire.dll"->DrawLine3d)
pop eax
pop eax
pop eax
pop eax
pop eax
pop eax
pop eax
//l.130 DrawLine3d 29.0 30.0 42.0 130.0 3.0 400.0 0xaaaa77
mov eax 11184759
push eax
mov eax 1137180672
push eax
mov eax 1077936128
push eax
mov eax 1124204544
push eax
mov eax 1109917696
push eax
mov eax 1106247680
push eax
mov eax 1105723392
push eax
call ("green_fire.dll"->DrawLine3d)
pop eax
pop eax
pop eax
pop eax
pop eax
pop eax
pop eax
//l.133 }

ret

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor