Change FP_SEG, FP_OFF and MK_FP.
Sed script that converts Intel assembly syntax to AT&T (Linux). It's an old one but it is useful. Found http://www.delorie.com/djgpp/mail-archives/djgpp/1995/06/06/05:48:34