int ignore = 0;
int dosplit = 0;
int splitnum = 0;
+int silent = 0;
/********************************************************/
void say (char *string)
{
- printf ("%s\n", string);
+ if (!silent) printf ("%s\n", string);
}
void sayf (char *format, ...)
//msgf ("Action %c, Arg dazu:%s", action, parm);
switch (action) {
case 'I':
- ignore++;
+ ignore=1;
break;
case 't':
- tapemode++;
+ tapemode=1;
break;
case 'S':
- splitnum++;
+ splitnum=1;
case 's':
- dosplit++;
+ dosplit=1;
break;
+ case 'l':
+ silent=1;
+ break;
default:
say ("Usage:\n");
sayf ("%s [-t] [-S] [-n] [-I] [filename]", args[0]);
sayf (" -S Split library tape into separate numbered files");
sayf (" -s same as -S but no numbering");
sayf (" -I Ignore errors");
+ sayf (" -l be silent");
sayf ("");
exit (1);
break;
#include "process.h"
+
//#define DEBUG_DATA
/**********************************************************************/
+
int get_blocktype (datablock * block){
return block->data[0].blocktype.type;
}
memcpy (akt, ((char *) data) + 4 + c * 6, 6);
akt[6]=0;
-
int dd=5;
while (akt[dd]==' ') akt[dd--]=0; // hinten kürzen;
dd=0;
char akt[7] = "SYMBOL";
memcpy (akt, dat + 3, 6);
twistbytes (data + 1, 4);
-
-
sayf ("%s (6) subroutine or common block definition",akt);
-
}
break;
case 7:{
- parstrip ((char *) data + 3, 6);
- twistbytes (data + 1, 4);
- char akt[7] = "SYMBOL";
- memcpy (akt, ((char *) data) + 3, 6);
- twistbytes (data + 1, 4);
-
- sayf ("%s (7) reference (call) to common item", akt);
+ char * dat =(char *) data; // Get byte pointer
+ twistbytes (data + 1, 4); // Do the endian thing
+ parstrip ((char *) data + 3, 6); // Strip parity bits away
+ char akt[7] = "SYMBOL";
+ memcpy (akt, dat + 3, 6); // Take the name
+ twistbytes (data + 1, 4); // repair the head
+ sayf ("%s (7) reference (call) to common item", akt);
}
break;