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 19:49:54 +0900 |
| commit | 191287fc26523607cd468fd548ee17d693a6bec3 (patch) | |
| tree | c7efd41de8ce97005206ccf035afdd0b8e2ecd6c /src/cpicoblaze.cpp | |
| parent | ee224f9d083904c4a8fe0865a741af74fb48ed6b (diff) | |
| download | kpicosim-191287fc.tar.gz kpicosim-191287fc.zip | |
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit ffcbae7cc6b2581a6d0f751c283a5d7376a1138c)
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 ) |
