#include <unistd.h>
#include "tape_block.hh"
+#include "data_block.hh"
void tape_start(void* m){
printf("tape_start\n");
do{
if (myblock) delete myblock;
myblock=tape_block::gen_from_fd(0);
- printf ("Block type:%2o-%o\n",myblock->get_type(),myblock->get_subtype());
+
+ vector<string> desc=myblock->get_description();
+ for (vector<string>::iterator iter=desc.begin();
+ iter!=desc.end();iter++)
+ printf("%s\n",(*iter).c_str());
+
+
+// if ((myblock->get_type()==0)&&(myblock->get_subtype()==050)){
+// data_block * dp=(data_block *)myblock;
+// printf ("0-50 symbol name: %s\n",dp->extract_string(4).c_str());
+// printf ("0-50 symbol name: %s\n",dp->extract_string(11).c_str());
+// printf ("Block size:%i\n",dp->get_word_size());
+// }
} while (myblock->get_state()==tape_block::TBS_OK);
printf("---");
printf("State:%i\n",myblock->get_state());