ack/util/ceg/ce_back/as_back/switchseg.c
1987-11-20 10:41:03 +00:00

26 lines
404 B
C

#include "header.h"
switchseg( seg)
int seg;
{
if ( seg == cur_seg)
return;
cur_seg = seg;
switch ( cur_seg) {
case SEGTXT : fprint( codefile, SEGTXT_FMT);
break;
case SEGCON : fprint( codefile, SEGDAT_FMT);
break;
case SEGROM : fprint( codefile, SEGDAT_FMT);
break;
case SEGBSS : fprint( codefile, SEGBSS_FMT);
break;
}
if ( seg != SEGTXT)
align_word();
}