new 6845 implementation