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

26 lines
379 B
C
Raw Normal View History

1987-11-20 10:41:03 +00:00
#include "mach.h"
#include "back.h"
1989-01-26 13:32:57 +00:00
#undef rom2
#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;
{
1989-01-26 13:32:57 +00:00
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
}