many changes, mostly for efficiency
This commit is contained in:
@@ -1,15 +1,20 @@
|
||||
#include <system.h>
|
||||
#include "mach.h"
|
||||
#include "back.h"
|
||||
|
||||
gen2( w)
|
||||
TWO_BYTES w;
|
||||
|
||||
gen2( c)
|
||||
TWO_BYTES c;
|
||||
{
|
||||
#ifdef BYTES_REVERSED
|
||||
gen1( (char) ( ( unsigned short)w>>8));
|
||||
gen1( (char) w);
|
||||
#else
|
||||
gen1( (char) w);
|
||||
gen1( (char) ( ( unsigned short)w>>8));
|
||||
#endif
|
||||
switch ( cur_seg) {
|
||||
case SEGTXT : text2( c);
|
||||
return;
|
||||
case SEGCON : con2( c);
|
||||
return;
|
||||
case SEGROM : rom2( c);
|
||||
return;
|
||||
case SEGBSS : bss( 2);
|
||||
return;
|
||||
default : fprint( STDERR, "gen2() : bad seg number\n");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user