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

18 lines
376 B
C
Raw Normal View History

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