/[gxemul]/trunk/src/cpus/generate_head.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/cpus/generate_head.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 26 by dpavlin, Mon Oct 8 16:20:10 2007 UTC revision 28 by dpavlin, Mon Oct 8 16:20:26 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *   *
27   *   *
28   *  $Id: generate_head.c,v 1.17 2006/06/24 21:47:23 debug Exp $   *  $Id: generate_head.c,v 1.18 2006/07/20 21:53:00 debug Exp $
29   */   */
30    
31  #include <stdio.h>  #include <stdio.h>
# Line 153  int main(int argc, char *argv[]) Line 153  int main(int argc, char *argv[])
153          printf("\tcpu->cd.%s.next_ic --;\n", a);          printf("\tcpu->cd.%s.next_ic --;\n", a);
154          printf("}\n\n");          printf("}\n\n");
155    
156          printf("#ifdef DYNTRANS_VARIABLE_INSTRUCTION_LENGTH\n");          /*  Ugly special hack for Transputer:  */
157          printf("static struct %s_instr_call nothing_call = { "          if (strcasecmp(argv[1], "transputer") == 0) {
158              "instr(nothing), {0,0,0} };\n", a);                  printf("static struct %s_instr_call nothing_call = { "
159          printf("#else\n");                      "instr(nothing), {0} };\n", a);
160          printf("static struct %s_instr_call nothing_call = { "          } else {
161              "instr(nothing), {0,0,0} };\n", a);                  printf("static struct %s_instr_call nothing_call = { "
162          printf("#endif\n");                      "instr(nothing), {0,0,0} };\n", a);
163            }
164    
165          printf("\n");          printf("\n");
166    

Legend:
Removed from v.26  
changed lines
  Added in v.28

  ViewVC Help
Powered by ViewVC 1.1.26