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

From: Groepaz <groepaz1gmx.net>
Date: 2009-08-23 23:31:48
On Sonntag 23 August 2009, Ullrich von Bassewitz wrote:

> Please note that this does also mean that assembler routines that return
> characters must actually return an integer value!

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 (http://noname.c64.org/csdb/release/?id=74653) 
and looked at it (mostly because onslaught screwed up their ntsc fixed 
version - http://noname.c64.org/csdb/release/?id=74715 ) 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 :)

-- 

http://www.hitmen-console.org    http://magicdisk.untergrund.net
http://www.pokefinder.org        http://ftp.pokefinder.org

For most girls, talk DXPP, DYPP, Plasma, FLI, and rasterbars - its a real 
winner.

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Aug 23 23:30:52 2009

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