projects
/
h316.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*** empty log message ***
[h316.git]
/
pc-tools
/
ldc2
/
src
/
data_block.cpp
diff --git
a/pc-tools/ldc2/src/data_block.cpp
b/pc-tools/ldc2/src/data_block.cpp
index 41d52f8f2a22bb7a83462810b21207692d733b63..c83658519691addf8f3b0d5573edc5afbfca0915 100644
(file)
--- a/
pc-tools/ldc2/src/data_block.cpp
+++ b/
pc-tools/ldc2/src/data_block.cpp
@@
-8,24
+8,26
@@
using namespace std;
using namespace std;
+/***************************************************************/
/*!
*\brief Specialisation constructor.
*/
data_block::data_block(tape_block& org)
:tape_block(org)
/*!
*\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(){
/*!
*\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
/*!
*\brief Get the block's size in 16 bit words.
*\return The block's 16-bit data buffer's size including
@@
-35,6
+37,7
@@
int data_block::get_word_size(){
return word_size;
}
return word_size;
}
+/***************************************************************/
/*!
*\brief Describe the block.
*\return A vector of text lines describing this block.
/*!
*\brief Describe the block.
*\return A vector of text lines describing this block.
@@
-47,6
+50,7
@@
vector<string> data_block::get_description(){
return result;
}
return result;
}
+/***************************************************************/
/*!
*\brief Extract 6 byte symbol name from word memory.
*
/*!
*\brief Extract 6 byte symbol name from word memory.
*
@@
-70,3
+74,6
@@
string data_block::extract_label(int firstbyte){
return result;
}
return result;
}
+
+
+