aicasm.c (5647) | aicasm.c (5775) |
---|---|
1/* 2 * Adaptec 274x device driver for Linux. 3 * Copyright (c) 1994 The University of Calgary Department of Computer Science. 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. --- 12 unchanged lines hidden (view full) --- 21 * 22 * <label>* 23 * <label>* <undef-sym> = <value> 24 * <label>* <opcode> <operand>* 25 * 26 * A <label> is an <undef-sym> ending in a colon. Spaces, tabs, and commas 27 * are token separators. 28 * | 1/* 2 * Adaptec 274x device driver for Linux. 3 * Copyright (c) 1994 The University of Calgary Department of Computer Science. 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. --- 12 unchanged lines hidden (view full) --- 21 * 22 * <label>* 23 * <label>* <undef-sym> = <value> 24 * <label>* <opcode> <operand>* 25 * 26 * A <label> is an <undef-sym> ending in a colon. Spaces, tabs, and commas 27 * are token separators. 28 * |
29 * $Id$ | 29 * $Id: aic7xxx.c,v 1.4 1995/01/16 16:31:20 gibbs Exp $ |
30 */ 31 32/* #define _POSIX_SOURCE 1 */ 33#define _POSIX_C_SOURCE 2 34 35#include <ctype.h> 36#include <stdio.h> 37#include <string.h> --- 150 unchanged lines hidden (view full) --- 188 int i; 189 190 for (i = 0; i < LC; i++) 191 fprintf(fp, "\t0x%02x, 0x%02x, 0x%02x, 0x%02x,\n", 192 M[i][3], 193 M[i][2], 194 M[i][1], 195 M[i][0]); | 30 */ 31 32/* #define _POSIX_SOURCE 1 */ 33#define _POSIX_C_SOURCE 2 34 35#include <ctype.h> 36#include <stdio.h> 37#include <string.h> --- 150 unchanged lines hidden (view full) --- 188 int i; 189 190 for (i = 0; i < LC; i++) 191 fprintf(fp, "\t0x%02x, 0x%02x, 0x%02x, 0x%02x,\n", 192 M[i][3], 193 M[i][2], 194 M[i][1], 195 M[i][0]); |
196 printf("%d out of %d instructions used.\n", LC, MEMORY); |
|
196} 197 198char **getl(int *n) 199{ 200 int i; 201 char *p; 202 static char buf[MAXLINE]; 203 static char *a[MAXTOKEN]; --- 383 unchanged lines hidden --- | 197} 198 199char **getl(int *n) 200{ 201 int i; 202 char *p; 203 static char buf[MAXLINE]; 204 static char *a[MAXTOKEN]; --- 383 unchanged lines hidden --- |