z88dk forums

z80 Development Kit

You are not logged in.

#1 2020-03-29 17:54:39

Timmy
Member
Registered: 2012-03-10
Posts: 124

a fastcall non-bug

https://twitter.com/reidrac/status/1243668138266431488

Hi, I see that redirac posted a twitter about this "bug".

My opinion is that this is exactly how z88dk fastcall should work. The parameter is put into HL directly instead of using the stack, right?

Offline

 

#2 2020-03-29 22:06:01

dom
Administrator
Registered: 2007-07-15
Posts: 1444
Website

Re: a fastcall non-bug

I think the issue there is that although the parameter is passed in l, it gets trashed on entry when the value is stored. I presume it's storing the value to a static location.

I can't see an sdcc bug that's been raised so I can't see if out version of sdcc is affected.

Offline

 

#3 2020-03-29 22:38:53

Timmy
Member
Registered: 2012-03-10
Posts: 124

Re: a fastcall non-bug

By the way, we're talking about this in some other site: https://www.msx.org/forum/msx-talk/deve … cc?page=17

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson