[cc65] Re: Extended memory API

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2002-11-29 10:28:14


After sleeping about the draft, I've come to the conclusion that there are two
more functions needed to avoid an expensive double copy in very common
situations:

-----------------------------------------------------------------------------
/* Parameters for the em_copy_... functions */
struct em_copy {
    unsigned        page;       /* Starting page to copy from or to */
    void*           buf;        /* Memory buffer to copy from or to */
    unsigned        count;      /* Number of bytes to copy */
    unsigned char   offs;       /* Offset
};

void __fastcall__ em_copy_from (const struct em_copy* copy_data);
/* Copy from extended into linear memory */

void __fastcall__ em_copy_to (const struct em_copy* copy_data);
/* Copy from linear into extended memory */
-----------------------------------------------------------------------------

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
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-11-29 10:28:22 CET