1987-11-20 10:41:03 +00:00
|
|
|
#include <system.h>
|
1989-01-26 10:52:51 +00:00
|
|
|
#include <em.h>
|
1987-11-20 10:41:03 +00:00
|
|
|
#include "mach.h"
|
|
|
|
#include "back.h"
|
|
|
|
|
|
|
|
gen1( c)
|
|
|
|
ONE_BYTE c;
|
|
|
|
{
|
|
|
|
switch ( cur_seg) {
|
|
|
|
case SEGTXT : text1( c);
|
|
|
|
return;
|
|
|
|
case SEGCON : con1( c);
|
|
|
|
return;
|
|
|
|
case SEGROM : rom1( c);
|
|
|
|
return;
|
1989-01-20 14:54:55 +00:00
|
|
|
case SEGBSS : bss( (arith) 1);
|
1987-11-20 10:41:03 +00:00
|
|
|
return;
|
|
|
|
default : fprint( STDERR, "gen1() : bad seg number\n");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|