a fastcall non-bug

Bug reports (if you don't/won't have a Github account)
Post Reply
Timmy
Member
Posts: 136
Joined: Sat Mar 10, 2012 4:18 pm

a fastcall non-bug

Post 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?
User avatar
dom
Well known member
Posts: 1194
Joined: Sun Jul 15, 2007 10:01 pm

Post 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.
Timmy
Member
Posts: 136
Joined: Sat Mar 10, 2012 4:18 pm

Post 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
Post Reply