The first code is your O2 Sensor on your header/exhaust manifold. It's either malfunctioned or isn't wired correctly. Have you messed with it at all doing any mods?
Code 8, it's possible that although your timing belt is intact, that the tensioner loosened and you jumped some teeth. Check the timing if you can and make sure that it isn't off. When the car is running, how does it run? TDC Sensor is in your distributor, make sure all connections to the distributor are solid. If your timing is correct and after you've reset the ECU you're still getting this code thrown, I'd probably look into replacing the distributor. If you have a friend with the same dizzy as you, borrow it and throw it on.
__________________
99 Integra GSR
06 TSX
duck squad member #00003