On Mon, 8 Mar 2004, Luchezar Georgiev wrote:

> OK, so I'd prefer changing the c type to unsigned char then. It could be
> just char but it's better to be unsigned char indeed to emphasize that
> 8-bit characters are valid too.

There's just one advantage using "signed char" or "int" instead of an
unsigned type: "cbw" is shorter than "xor ah, ah" and Watcom passed the
parameter in ax (not al, even if declared as signed char or unsigned char).

So passing a sign extended negative char to put_console isn't that bad --
as long as the correct thing is passed to int10 of course.

Bart



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel

Reply via email to