ack/util/ceg/ce_back/as_back/gen1.c

18 lines
375 B
C
Raw Normal View History

1987-11-20 10:41:03 +00:00
#include "header.h"
gen1( w)
arith w;
{
switch ( cur_seg) {
case SEGTXT : fprint( codefile, BYTE_FMT, (arith) w);
break;
case SEGCON : fprint( codefile, BYTE_FMT, (arith) w);
break;
case SEGROM : fprint( codefile, BYTE_FMT, (arith) w);
break;
1989-01-20 14:54:55 +00:00
case SEGBSS : bss( (arith) 1);
1987-11-20 10:41:03 +00:00
break;
default : fprint( STDERR, "gen1 unkown seg %d\n", cur_seg);
}
}