Pristine Ack-5.5
[Ack-5.5.git] / util / ceg / defaults / storage / C_con_scon.c
1 #define CODE_EXPANDER
2 #include <em.h>
3 #include "mach.h"
4 #include "back.h"
5
6 #if EM_WSIZE == 1
7 #define conEM_WSIZE     con1
8 #define romEM_WSIZE     rom1
9 #define CAST_WSIZE      ONE_BYTE
10 #endif
11 #if EM_WSIZE == 2
12 #define conEM_WSIZE     con2
13 #define romEM_WSIZE     rom2
14 #define CAST_WSIZE      TWO_BYTES
15 #endif
16 #if EM_WSIZE == 4
17 #define conEM_WSIZE     con4
18 #define romEM_WSIZE     rom4
19 #define CAST_WSIZE      FOUR_BYTES
20 #endif
21
22 #if EM_PSIZE == 1
23 #define relocEM_PSIZE   reloc1
24 #endif
25 #if EM_PSIZE == 2
26 #define relocEM_PSIZE   reloc2
27 #endif
28 #if EM_PSIZE == 4
29 #define relocEM_PSIZE   reloc4
30 #endif
31
32 void
33 C_con_scon( s, n)
34 char *s;
35 arith n;
36 {
37         switchseg( SEGCON);
38         dump_label();   
39
40         for ( ; n-- > 0;)
41                 con1( (ONE_BYTE) *s++);
42 }