Re: [cc65] compling with 2.9.0

Date view Thread view Subject view

From: Shawn Jefferson (sjefferson_at_sd62.bc.ca)
Date: 2002-12-17 18:50:49


>>> Groepaz <groepaz_at_gmx.net> 12/17/02 09:01AM >>>
>its a general problem with typecasting and/or auto-convertion of ints vs 
>chars... 
>
>however, the above code looks like a potential problem regardless of that :o) 
>(why are you dividing a pointer ?) maybe it should be written as sth like

Thanks for your comments Groepaz!  I am dividing an integer that is pointed to by SAVMSC (it is the address of the start of screen memory in the Atari) to put into my display list (which is an array of char.)

I did this and it now works.  In my own defense I will say that it used to work with 2.8.0... but probably wasn't "right" on my part.

map_dl[4] = (unsigned char) (SAVMSC % 256);
map_dl[5] = (unsigned char) (SAVMSC / 256);

PS. I don't run Microsoft C, I'm more comfortable in the command-line... gcc, mingw32, and cc65 generally.  If I keep making stupid mistakes like this though, I might get kicked out of the club.

¯
Shawn


----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2002-12-17 18:51:21 CET