[cc65] additional conio driver (was: Joystick support)

Date view Thread view Subject view

From: Groepaz (groepaz_at_gmx.net)
Date: 2002-12-22 17:12:51


On Sunday 22 December 2002 16:44, MagerValp wrote:
> >>>>> "G" == Groepaz  <groepaz_at_gmx.net> writes:
>
> G> btw any suggestion for a mechanism to choose between 80 or 40
> G> columns on the c64 (or 40 vs 23 columns on the vic20) ? i
> G> personally would put these "patches" into a seperate library (or
> G> objectfile) that can be linked if wanted...but maybe you have an
> G> even better idea :)
>
> This is something that I'm interested in too, as I recently wrote a 53
> column (6x8 pixel chars) driver. Is there any way of overriding
> certain conio functions in c64.lib? Only cputc and a few other
> functions need to be updated, others can be left as is so writing a
> complete conio replacement would be a waste.

"overriding" can be done pretty simple, like i mentioned above already.... 
just put the additional (or replaced) functions into a seperate library and 
put this last on the linker commandline..... this however is somewhat tricky 
for functions that are simply defined as kernal-calls inside the conio lib 
(eg the "kplot" call which you have to patch for a new conio driver)... this 
may be actually a flaw in the linker, it didnt always do what i expected 
atleast :o)

-- 
          ___ ___ .___________________ .___________ _______.
    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-22 17:14:10 CET