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

@@ -4,13 +4,12 @@
rom2( w)
TWO_BYTES w;
{
if ((_data_cnt -= 2) < 0) mem_data();
#ifdef BYTES_REVERSED
rom1( (char) ( ( unsigned short)w>>8));
rom1( (char) w);
*data++ = ( unsigned short)w>>8;
*data++ = w;
#else
rom1( (char) w);
rom1( (char) ( ( unsigned short)w>>8));
*data++ = w;
*data++ = ( unsigned short)w>>8;
#endif
}