#include <sys/segments.h> unsigned short _my_ds();
Returns the current DS. This is useful for setting up interrupt vectors and such.
DS