From 3c678ec2cc10fe67ba4e81d65e00109747e01f6c Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 14 Oct 2004 17:31:23 +0000 Subject: [PATCH] Added eeprom routines git-svn-id: svn://svn.cc65.org/cc65/trunk@3248 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- include/lynx.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 -- 2.39.5