Re: [cc65] 65tris on ATARI

Date view Thread view Subject view

From: Groepaz (groepaz_at_gmx.net)
Date: 2002-12-17 16:58:28


On Tuesday 17 December 2002 13:18, Ullrich von Bassewitz wrote:
> On Mon, Dec 16, 2002 at 10:12:49PM +0100, Christian Groessler wrote:
> > Why don't you use the screensize() function to get the screen
> > dimensions?
>
> I don't know about groepaz' reasons, but one could be that the code
> generated is a worse, since screen calculations do no longer have a
> constant part that is precalculated by the compiler.

yeah exactly.... while its nice to be able to detect screensize at runtime 
(and therefor also change it at runtime, ie in a GUI-environment like geos or 
wings) its neither practical (generated code can be a _lot_ worse) nor 
necessary (most/all targets have a fixed-size screen) in most reallife 
situations. (i am not saying its entire useless).

btw, i was about to post that yesterday..... connected to exactly that issue, 
i noticed that some additional defines in the library could greatly reduce 
the effort needed to make an application portable as i am trying to do with 
65tris.

a) something that defines screen dimensions, ie SCREENX/SCREENY in 65tris.
b) something that defines capabilities of the screen, ie NOCOLORS/NOBGCOLORS 
(i would suggest HAS_BORDERCOLOR,HAS_TEXTCOLOR etc though)

such HAS_xxxx style defines could be useful for other things aswell.... ie 
right now i have to take care about including the joystick.h for every 
possible target that supports joysticks myself... with a "HAS_JOYSTICKS" it 
would automagically work for all.


-- 
          ___ ___ .___________________ .___________ _______.
    c=64 /   |   \|   \__    ___/     \ \_   _____/ \      \ [groepaz]
     gb /    '    \   | |    | /  \ /  \ |    __)_  /   |   \ gp32
    cgb \    .    /   | |    |/    '    \|        \/    |    \ psx
     gba \___|_  /|___| |____|\____|__  /_______  /\____|__  / dc
          -----\/-----'---------------\/--------\/---------\/
       http://www.hitmen-console.org    Hitmen WWW Headquarters
       http://fly.to/hitmen-groepaz     my personal playground
       http://rr.c64.org/silversurfer   home of the RR debugger
       ftp.musoftware.de/pub/groepaz    cc65 dump site

----------------------------------------------------------------------
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 17:00:26 CET