summaryrefslogtreecommitdiffstats
path: root/src/cpicoblaze.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpicoblaze.cpp')
-rw-r--r--src/cpicoblaze.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/cpicoblaze.cpp b/src/cpicoblaze.cpp
index 4b85b7e..6dff08e 100644
--- a/src/cpicoblaze.cpp
+++ b/src/cpicoblaze.cpp
@@ -298,26 +298,26 @@ bool CCode::setInstruction( uint16_t address, uint32_t code, unsigned int source
CInstruction *instr = Disassemble( code ) ;
if ( instr == NULL ) {
cout << ">>>>Unknown code at address " << address << "<<<<\r\n" ;
- return FALSE ;
+ return false ;
}
if ( address >= MAX_ADDRESS ) {
cout << ">>>>Invalid address" << address << "<<<<\r\n" ;
delete instr ;
- return FALSE ;
+ return false ;
}
if ( CodeMap[ address ] != NULL ) {
cout << ">>>>Code is placed at same address (" << address << ")<<<<\r\n" ;
delete instr ;
- return FALSE ;
+ return false ;
}
instr->setSourceLine( sourceLine ) ;
CodeMap[ address ] = instr ;
- return TRUE ;
+ return true ;
}
CInstruction * CCode::getInstruction( uint16_t address )
@@ -404,7 +404,7 @@ unsigned int CPicoBlaze::GetNextSourceLine()
CInstruction *instr = code->getInstruction( pc->Get() ) ;
if ( instr == NULL ) {
cout << ">>>>Error in simulation (No code found at " << pc->Get() << ")<<<<\r\n" ;
- return FALSE ;
+ return false ;
}
return instr->getSourceLine() ;
@@ -415,12 +415,12 @@ bool CPicoBlaze::Next()
CInstruction *instr = code->getInstruction( pc->Get() ) ;
if ( instr == NULL ) {
cout << ">>>>Error in simulation (No code found at " << pc->Get() << ")<<<<\r\n" ;
- return FALSE ;
+ return false ;
}
instr->Execute() ;
- return TRUE ;
+ return true ;
}
void CPicoBlaze::addPort( CIOPort * ioport )