X-Git-Url: http://gitweb.hachti.de/?a=blobdiff_plain;f=pc-tools%2Fldc2%2Fsrc%2Fdata_block.cpp;h=b44fd68b9248cb4ba8757af5f219e3fe8c3bf136;hb=7ced2dbeb1a104912fbdd041ce18b0e29a72d893;hp=e5d7c000e7fdae467639804a31264fe68a9c7b6c;hpb=ea4c19a49ff6621c58e0c4bba5ab5d271a3604c8;p=h316.git diff --git a/pc-tools/ldc2/src/data_block.cpp b/pc-tools/ldc2/src/data_block.cpp index e5d7c00..b44fd68 100644 --- a/pc-tools/ldc2/src/data_block.cpp +++ b/pc-tools/ldc2/src/data_block.cpp @@ -1,3 +1,17 @@ +/****************************************************************************** + * + * LDC2 source code + * + * $Date: 2007/03/26 01:00:38 $ + * $Author: hachti $ + * + * $Log: data_block.cpp,v $ + * Revision 2.0 2007/03/26 01:00:38 hachti + * *** empty log message *** + * + * + ******************************************************************************/ + #include #include @@ -8,24 +22,26 @@ using namespace std; +/***************************************************************/ /*! *\brief Specialisation constructor. */ data_block::data_block(tape_block& org) :tape_block(org) -{} +{ + m_has_known_type=false; +} +/***************************************************************/ /*! *\brief Determine block type. *\return the block type extracted from the block's data. */ int data_block::get_type(){ - if ((init_state==TBS_OK)&&word_data) - return (word_data[0]&0xf000)>>12; - else - return block_type; + return (word_data[0]&0xf000)>>12; } +/***************************************************************/ /*! *\brief Get the block's size in 16 bit words. *\return The block's 16-bit data buffer's size including @@ -35,6 +51,7 @@ int data_block::get_word_size(){ return word_size; } +/***************************************************************/ /*! *\brief Describe the block. *\return A vector of text lines describing this block. @@ -47,15 +64,7 @@ vector data_block::get_description(){ return result; } -/*! - *\brief Determine if the block marks the end of an object - *\retval true The block marks the end of an object. - *\retval false The block does not mark the end of an object. - */ -bool data_block::get_obj_end(){ - return false; -} - +/***************************************************************/ /*! *\brief Extract 6 byte symbol name from word memory. * @@ -79,3 +88,7 @@ string data_block::extract_label(int firstbyte){ return result; } + + + +