Re: [cc65] Word on My Text Adventure

From: Joseph Rose <rose.joseph121yahoo.com>
Date: 2011-02-21 15:10:25
Well, it does use spcial functions for handling strings and memory.   I copied 
some library code and replaced the actual data accesses with accesses to hidden 
RAM.  Basically, ROM/I/O are only switched out during the actual accesses.




________________________________
From: Marc 'BlackJack' Rintsch <marc@rintsch.de>
To: cc65@musoftware.de
Sent: Mon, February 21, 2011 8:13:52 AM
Subject: Re: [cc65] Word on My Text Adventure

Hi Joseph Rose,

> Well, the Hidden64 library has functions to access hidden memory
> almost as if it were regular memory.  You can access a byte or word
> at a time.  You can print hidden data onto the screen.  You can
> manipulate strings and memory in hidden RAM using versions of
> functions like strcpy() and memcmp().  It doesn't force you to load
> data first.  Does this please anybody?

It sounds as if there are special versions of standard functions!?  I 
don't see the need for that.  All that is needed are two functions (or 
macros) to stop IRQs and bank the ROMs out and to switch back to I/O and 
ROM and allow IRQs again.  In between those calls one can use the normal 
ways and functions to manipulate the memory.

Ciao,
    Marc 'BlackJack' Rintsch
-- 
“There are only two industries that refer to their customers as users.”
                                                        -- Edward Tufte



      
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Feb 21 15:10:35 2011

This archive was generated by hypermail 2.1.8 : 2011-02-21 15:10:38 CET