From: cuz Date: Thu, 14 Oct 2004 17:31:23 +0000 (+0000) Subject: Added eeprom routines X-Git-Tag: V2.12.0~587 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3c678ec2cc10fe67ba4e81d65e00109747e01f6c;p=cc65 Added eeprom routines git-svn-id: svn://svn.cc65.org/cc65/trunk@3248 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/include/lynx.h b/include/lynx.h index 7f3f34b5b..365bcebb4 100644 --- a/include/lynx.h +++ b/include/lynx.h @@ -83,6 +83,23 @@ void __fastcall__ lynx_change_framerate (unsigned char rate); +/*****************************************************************************/ +/* Accessing the EEPROM */ +/*****************************************************************************/ + + + +unsigned __fastcall__ lynx_eeprom_read (unsigned char cell); +/* Read a 16 bit word from the given address */ + +unsigned __fastcall__ lynx_eeprom_write (unsigned char cell, unsigned val); +/* Write the word at the given address */ + +void __fastcall__ lynx_eeprom_erase (unsigned char cell); +/* Clear the word at the given address */ + + + /* End of lynx.h */ #endif