[cc65] Linking [s]printf breaks cbm_open?

From: Jakob Haufe <sur5r1sur5r.net>
Date: 2007-08-26 16:44:51
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

While playing around with printing I found the following:

As soon as [s]printf is linked to the program, cbm_open always return
oserror=2 (file open). This happens even if [s]printf gets never
executed.

If I ignore the error code and do the cbm_write anyway, the text goes
to the screen instead of the printer.

Unfortunately my knowledge of 6502 assembler is in-existent, so looking
at the library source code didn't help for me.

Regards,
Jakob
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFG0ZHr1YAhDic+adYRAjvyAJ9vh5pvJjh7zg8UVTzXhbFenAFWsACggm3i
8uxQ1KkphK6tvDXxgEPoOP4=
=C711
-----END PGP SIGNATURE-----
N‹§²æìr¸›yúèšØ^–+-±éÝ™¨¥¶‰šŽŠÝ¢j&ºÊ·«y×°¶¬¶¸§‚éì¹»®&ÞqιŠ{ayºʇí…éš
Received on Sun Aug 26 16:45:04 2007

This archive was generated by hypermail 2.1.8 : 2007-08-26 16:45:07 CEST