Page 1 of 1

a fastcall non-bug

Posted: Sun Mar 29, 2020 4:54 pm
by Timmy
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?

Posted: Sun Mar 29, 2020 9:06 pm
by dom
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.

Posted: Sun Mar 29, 2020 9:38 pm
by Timmy
By the way, we're talking about this in some other site: https://www.msx.org/forum/msx-talk/deve ... cc?page=17