implemented some dos/dpmi functions