Re: [cc65] possible error, tertiary on cbm_save return value

From: Ullrich von Bassewitz <>
Date: 2009-08-23 23:34:07
On Sun, Aug 23, 2009 at 11:31:48PM +0200, Groepaz wrote:
> btw that said, a small section in the docs that outline the cc65 calling
> conventions (plus the fact you mention) would be very useful ... i recently
> took the last zoomania release (
> and looked at it (mostly because onslaught screwed up their ntsc fixed
> version - ) and noticed that
> indeed one very obscure bug has been triggered because hannenz (who
> originally wrote it) didnt exactly understand that returning just A in a
> function that returns char isnt enough... and appearently none of the guys
> who worked on it till now knew it either :)

Yes. That is even true for cbm_k_save (on which cbm_save is based): It does
not clear the X register, so the problem, Johan was experiencing may have been
caused by this error. I will fix it.



Ullrich von Bassewitz                        
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Aug 23 23:37:07 2009

This archive was generated by hypermail 2.1.8 : 2009-08-23 23:37:08 CEST