i neede coding in assembly

i want to wrie 100 to the i2c 24c00
then evry time i read it decrase 1 and agaain write to the i2c
for example writ 100
read
decrease 1
and write to i2c

i2c interface with 8051

More questions in this forum