put dos relative code into trans2dos()