Storing IR codes in EEPROM

That's what I needed. Thanx!

I'm still struggling on how to store IR codes that switch bits back and forth on every key press for a single key. Like the RC5 protocol does.
when a single key is pressed once I receive the following value:

110100000001

Press the same key again and I get this value:

10100000001

Press it once more and it goes back to the first value:

110100000001

Storing these codes is not a problem anymore. But I really don't see a simple way to use these codes after storing them. When remote sends the same code every time a single key is pressed it is easy to use it, but when it changes on every key press I need to store both codes and later on compare any new received to both of the stored code or something like that. I know how to compare codes, but there must be a easier method then the one I described.