This stuff is all done:

1. Don't use segments at all, that means no lds/les/etc, no es:[di], perhaps no lea (I don't remember quite what lea does :P).
2. Don't include dos.h.
3. The interrupts need replacing, but that's at least partially done already.
4. Other things that I neglected to write down here, oops.