many changes, mostly for efficiency

This commit is contained in:
ceriel
1988-10-20 13:06:10 +00:00
parent a281cc38a4
commit f69a7e3e5d
18 changed files with 276 additions and 261 deletions

View File

@@ -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;
}
}