hardcore way to implement a dos-mode XO