I2C Interface

Hi, i want to use i2c interface to expand the i/o ports in my arduino uno.
I heard about the library 'wire.h' but i can't use it because i need to write my own code without use any library (this is the requirements of the project).
Does it difficult to do it? or it similar like any other microcontroller? such as 8051

Just like others - read the datasheet, and write & read to the appropriate TWI (two wire interface) registers.

Topic locked for crossposting.