Jump to content

Recommended Posts

Posted (edited)

I'm looking for an assembly version of the EEPROM library for the 93c46 serial EEPROM chip. I found some really old code from @42bs called eeprom.m65 which supports basic read, write, and erase functions. Is this the best/simplest one to use? Any issues or caveats I should know about?

 

Edited by Songbird

Share this post


Link to post
Share on other sites

There are two versions of the eeproms: 16 or 8 bit wide.

I am not sure which version eeproms.m65 supports

 

Share this post


Link to post
Share on other sites

Here is the code... seems like it is accessing 16-bit words. Is this the same code used on T-tris and SIMIS? Because I believe that matches what is on the PCB design by @karri. At least, I have been able to demonstrate that SIMIS saves data on this cart the same as modern games like Biniax.

eeprom.m65

Share this post


Link to post
Share on other sites

So far I have only used 16 bits mode on everything. And yes, even the cc65 version is identical to this old file.

lynxeeprom.s

  • Thanks 1

Share this post


Link to post
Share on other sites
10 hours ago, Songbird said:

Here is the code... seems like it is accessing 16-bit words. Is this the same code used on T-tris and SIMIS

Yes, SIMIS/T-Tris use 16bit mode.

  • Thanks 1

Share this post


Link to post
Share on other sites

somewhere i still have the source files to access 8 and 16 bit for different kind of eeproms for cc65. if you need it i might dig them out.

Share this post


Link to post
Share on other sites

@sage if you mean
eeprom46.s
eeprom66.s

eeprom86.s

 

They are in cc65 already.

 

Share this post


Link to post
Share on other sites

Well, MegaPak I was using the old compiler. But that compiler already has support for the 46 eeprom. So there is no need for fancy new eeprom chips at the moment.

Share this post


Link to post
Share on other sites
6 hours ago, Songbird said:

Actually I'm not using a compiler at all... raw assembly power for this project! ;) 

Let me guess. Are you trying to add a save feature to one of the titles of yours?

 

 

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...