Re: [cc65] CBM units

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2010-02-04 21:39:45
Hi!

On Thu, Feb 04, 2010 at 01:06:31PM +0100, Oliver Schmidt wrote:
> - Copying $BA to _curunit needs to be done inside a high-prio
> constructor (to get called before the stdio constructor).
>
> - If $BA is 0 it needs to be set to 8 before copying it to _curunit.

Yes.

> Anything else? Does this apply to the C128 native mode too?

It's the same procedure, but the address is different for the other CBMs:

        C64             $BA
        C128            $BA
        VIC20           $BA
        C16/Plus4       $AE
        CBM510          ?
        CBM610          $9F
        PET             $D4

The variable is called DEVNUM in most include files, I would suggest adding it
with this name in the others.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
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 Feb 4 21:39:54 2010

This archive was generated by hypermail 2.1.8 : 2010-02-04 21:39:56 CET