Re: [cc65] tgi_outtext x and y coordinates and new line

From: Fatih Aygün <cyco1301yahoo.com>
Date: 2009-10-29 19:57:08
Hi,



> 
> The coordinates do always point to the start of the text baseline, so for
> vertical text (which flows indeed from bottom to top), pixels to the left of
> this coordinates are used. This will also work nicely with the vector fonts.
> 

I get it, thanks.

> Since we must be able to use builtin character ROMs, handling of special
> characters is implementation defined (which may also specify that it causes
> undefined behaviour). Since the is no concept of lines, \n and \r should *not*
> "move the cursor to the start of the line" or "move the cursor to the next
> line". I would just ignore chars below $20.

I will just output them as regular text (Atari has graphics characters there).

> BTW: There is an error in the C64 driver which is also in the C128 drivers
> (and as I see now, also in the apple driver). I've used the register bank in
> the zero page without saving the contents. This may overwrite variables in
> programs that use register variables. So much for "having a reference driver
> is a good thing".

I'm using the following, without saving:

sreg (2 bytes)
regsave (4 bytes)
ptrX (2 bytes each)
tmpX (1 byte each)

I don't touch regbank. Is it ok?

Thanks,
Fatih.


      
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Oct 29 19:57:16 2009

This archive was generated by hypermail 2.1.8 : 2009-10-29 19:57:19 CET