2 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
3 * See the copyright notice in the ACK home directory, in the file "Copyright".
8 static char rcsid[]= "$Id: mach.c,v 1.6 1994/06/24 12:58:05 ceriel Exp $" ;
12 * machine dependent back end routines for the Intel 8080.
15 con_part(sz,w) register sz; word w; {
17 while (part_size % sz)
35 con_mult(sz) word sz; {
38 fatal("bad icon/ucon size");
39 fprintf(codefile,".data4\t%ld\n",atol(str));
43 static int warning_given;
47 fprintf(stderr, "warning: dummy floating point constant\n");
51 fputs(".data4 0 !dummy float\n", codefile);
57 prolog(nlocals) full nlocals; {
59 fprintf(codefile,"\tpush\tb\n\tlxi\th,0\n\tdad\tsp\n\tmov\tb,h\n\tmov\tc,l\n");
61 case 4: fprintf(codefile,"\tpush\th\n");
62 case 2: fprintf(codefile,"\tpush\th\n");
65 fprintf(codefile,"\tlxi\th,%d\n\tdad\tsp\n\tsphl\n",-nlocals);
70 mes(type) word type ; {
73 switch ( (int)type ) {
77 ptyp(sp_cend)|ptyp(sp_pnam)|sym_ptyp) ) {
82 fprintf(codefile,".define %s\n",argstr) ;
87 while ( getarg(any_ptyp) != sp_cend ) ;