add real mode implementation