diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-03-16 14:46:06 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-03-16 14:51:19 +0900 |
commit | ffcbae7cc6b2581a6d0f751c283a5d7376a1138c (patch) | |
tree | c7efd41de8ce97005206ccf035afdd0b8e2ecd6c /src/cpicoblaze.cpp | |
parent | 800d41d4e30f5a4df68da233dc2810d4c08d9905 (diff) | |
download | kpicosim-ffcbae7cc6b2581a6d0f751c283a5d7376a1138c.tar.gz kpicosim-ffcbae7cc6b2581a6d0f751c283a5d7376a1138c.zip |
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/cpicoblaze.cpp')
-rw-r--r-- | src/cpicoblaze.cpp | 14 |
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 ) |