ack/util/ceg/ce_back/obj_back/rom4.c

24 lines
367 B
C
Raw Normal View History

1987-11-20 10:41:03 +00:00
#include "mach.h"
#include "back.h"
#ifdef BYTES_REVERSED
#define rom2(w) { *data++ = ((w) >> 8); *data++ = (w);}
#else
#define rom2(w) { *data++ = (w); *data++ = ((w)>>8);}
#endif
1987-11-20 10:41:03 +00:00
rom4( l)
FOUR_BYTES l;
{
if ((_data_cnt -= 4) < 0) mem_data();
1987-11-20 10:41:03 +00:00
#ifdef WORDS_REVERSED
rom2( (int)(l>>16));
rom2( (int) l);
1987-11-20 10:41:03 +00:00
#else
rom2( (int) l);
rom2( (int) (l>>16));
1987-11-20 10:41:03 +00:00
#endif
}