From: hachti Date: Sun, 23 Dec 2007 15:25:11 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://gitweb.hachti.de/?a=commitdiff_plain;h=8dc281af5fb8e214e88da24bc72f78a955514ce8;p=h316.git *** empty log message *** --- diff --git a/bin/fboot b/bin/fboot index 9e43a5c..12c58ef 100755 --- a/bin/fboot +++ b/bin/fboot @@ -6,19 +6,25 @@ if [ ! $1 ] ; then exit 2 fi + +if [ ! "$H316" ]; then + echo "H316 variable not set!" + exit 2 +fi + +if [ ! -e "$H316/config/libs.config" ]; then + echo "H316/config/libs.config not found!" + exit 2 +else + source "$H316/config/libs.config" +fi + objname=$1 locname=`basename $1 .obj` echo $locname echo $objname -LIBS="$H316/lib/fortran/lib/flib1.lib\ - $H316/lib/fortran/lib/flib2.lib\ - $H316/lib/fortran/lib/flib3.lib\ - $H316/lib/iolib/lib/io.lib -" - - cat > $locname.go < $locname.go < $locname.go <f_size; for (i=0; if_size;i++)size+=font->f_glyphs[i].gl_size; - + WRITEF ( "* %s - FONT FILE GENERATED BY FONTGEN\n" @@ -65,14 +65,16 @@ void op_font( pl_font * font){ WRITEF("FNT"); // if (font->f_label)WRITEF(font->f_label); WRITEF("\tDEC\t%i\tVERTICAL LINE SPACING FOR FONT\n",font->f_offset); - WRITEF("\tDAC\t**\tRESERVED FOR FUTURE USE\n"); - WRITEF("\tDAC\t**\tRESERVED FOR FUTURE USE\n"); - WRITEF("\tDAC\t**\tRESERVED FOR FUTURE USE\n"); + WRITEF("\tDEC\t%i\tY VALUE OF THE BASE LINE\n",font->f_base); + WRITEF("\tDEC\t%i\tY VALUE OF THE TOP LINE\n",font->f_top); + WRITEF("\tDEC\t%i\tNUMBER OF WORDS IN FONT (FOR DYNAMIC RELOAD?)\n",font->f_size); + WRITEF("\tDEC\t%i\tNUMBER OF GLYPHS IN FONT\n",font->f_size); WRITEF("*\n"); + for (i=0; if_size;i++){ - // WRITEF("Glyph:\n"); op_glyph(font->f_glyphs+i); } + WRITEF("*\n"); WRITEF("\tEND\n"); } diff --git a/pc-tools/ldc2/src/config.cpp b/pc-tools/ldc2/src/config.cpp index 337fe2b..905292e 100644 --- a/pc-tools/ldc2/src/config.cpp +++ b/pc-tools/ldc2/src/config.cpp @@ -2,11 +2,14 @@ * * LDC2 source code * - * $Date: 2007/03/26 01:00:38 $ + * $Date: 2007/12/23 15:25:11 $ * $Author: hachti $ * * $Log: config.cpp,v $ - * Revision 2.0 2007/03/26 01:00:38 hachti + * Revision 2.1 2007/12/23 15:25:11 hachti + * *** empty log message *** + * + * Revision 2.0 2007-03-26 01:00:38 hachti * *** empty log message *** * * @@ -51,6 +54,7 @@ int cfg_ignore_object_integrity_errors=0; int cfg_list_contents=1; int cfg_verbose=0; int cfg_quiet=0; +int cfg_dump_block_contents=0; int cfg_version=0; @@ -75,6 +79,10 @@ void do_config(int argc, char ** args){ "Print all called symbols from the object(s).", &cfg_output_called,true,true); + ar.add_option_switch("d","dump_block_contents", + "Dump block contents", + &cfg_dump_block_contents,true,true); + ar.add_option_switch("e","output_exported", "Print all exported symbols from the object(s).", &cfg_output_exported,true,true); diff --git a/pc-tools/ldc2/src/config.hh b/pc-tools/ldc2/src/config.hh index fd8c19c..8c3c393 100644 --- a/pc-tools/ldc2/src/config.hh +++ b/pc-tools/ldc2/src/config.hh @@ -2,11 +2,14 @@ * * LDC2 source code * - * $Date: 2007/03/26 01:00:38 $ + * $Date: 2007/12/23 15:25:11 $ * $Author: hachti $ * * $Log: config.hh,v $ - * Revision 2.0 2007/03/26 01:00:38 hachti + * Revision 2.1 2007/12/23 15:25:11 hachti + * *** empty log message *** + * + * Revision 2.0 2007-03-26 01:00:38 hachti * *** empty log message *** * * @@ -43,6 +46,7 @@ extern int cfg_list_contents; extern int cfg_verbose; extern int cfg_version; extern int cfg_quiet; +extern int cfg_dump_block_contents; extern int in_fd; //! File descriptor for data input extern int out_fd; //! File descriptor for text output diff --git a/pc-tools/ldc2/src/tape_block.cpp b/pc-tools/ldc2/src/tape_block.cpp index 8ba9dde..9583465 100644 --- a/pc-tools/ldc2/src/tape_block.cpp +++ b/pc-tools/ldc2/src/tape_block.cpp @@ -2,11 +2,14 @@ * * LDC2 source code * - * $Date: 2007/03/26 03:20:31 $ + * $Date: 2007/12/23 15:25:11 $ * $Author: hachti $ * * $Log: tape_block.cpp,v $ - * Revision 2.1 2007/03/26 03:20:31 hachti + * Revision 2.2 2007/12/23 15:25:11 hachti + * *** empty log message *** + * + * Revision 2.1 2007-03-26 03:20:31 hachti * *** empty log message *** * * Revision 2.0 2007-03-26 01:00:40 hachti @@ -227,6 +230,18 @@ vector tape_block::get_called_symbols(){ return result; } +/***************************************************************/ +/*! + *\brief Dump block contents + *\return A vector containing Information about the block's + * content. + */ +vector tape_block::dump_contents(){ + vector result; + result.insert(result.end(),"No known contents."); + return result; +} + /***************************************************************/ /*! *\brief Determine if the block has a known type. diff --git a/pc-tools/ldc2/src/tape_block.hh b/pc-tools/ldc2/src/tape_block.hh index ebd8f02..64f13fd 100644 --- a/pc-tools/ldc2/src/tape_block.hh +++ b/pc-tools/ldc2/src/tape_block.hh @@ -2,11 +2,14 @@ * * LDC2 source code * - * $Date: 2007/03/26 01:00:40 $ + * $Date: 2007/12/23 15:25:11 $ * $Author: hachti $ * * $Log: tape_block.hh,v $ - * Revision 2.0 2007/03/26 01:00:40 hachti + * Revision 2.1 2007/12/23 15:25:11 hachti + * *** empty log message *** + * + * Revision 2.0 2007-03-26 01:00:40 hachti * *** empty log message *** * * @@ -107,6 +110,7 @@ public: // methods virtual bool is_endblock(); virtual vector get_exported_symbols(); virtual vector get_called_symbols(); + virtual vector dump_contents(); virtual bool has_known_type(); static tape_block * gen_from_fd(int fd, diff --git a/programs/plotter/Makefile b/programs/plotter/Makefile index 17cd216..ecbc0a4 100644 --- a/programs/plotter/Makefile +++ b/programs/plotter/Makefile @@ -8,17 +8,15 @@ BUILD_DIR=build PROGRAMS=$(foreach n, $(wildcard $(SRC_DIR)/*.f $(SRC_DIR)/*.asm),$(notdir $(basename $(n)))) -#$(PROGRAMS):%:/$(BUILD_DIR)/%.f - default: $(foreach prog, $(PROGRAMS),$(BUILD_DIR)/$(prog).obj) $(BUILD_DIR)/%.obj:$(SRC_DIR)/%.f @if [ ! -d $(BUILD_DIR) ]; then mkdir $(BUILD_DIR); fi - $(FRTN_CMD) $< && mv $(notdir $(basename $<)).obj $(BUILD_DIR) + $(FRTN_CMD) $< $(LISTING) && mv $(notdir $(basename $<)).obj $(BUILD_DIR) $(BUILD_DIR)/%.obj:$(SRC_DIR)/%.asm @if [ ! -d $(BUILD_DIR) ]; then mkdir $(BUILD_DIR); fi - $(ASM_CMD) $< && mv $(notdir $(basename $<)).obj $(BUILD_DIR) + $(ASM_CMD) $< $(LISTING)&& mv $(notdir $(basename $<)).obj $(BUILD_DIR) clean : @rm -rf *.obj $(BUILD_DIR)/ *.lst *.go *.par diff --git a/resources/hershey-font.tar.gz b/resources/hershey-font.tar.gz new file mode 100644 index 0000000..e75877c Binary files /dev/null and b/resources/hershey-font.tar.gz differ