Convert dosint.asm code to C.