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/ksimulator.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/ksimulator.cpp')
-rw-r--r-- | src/ksimulator.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ksimulator.cpp b/src/ksimulator.cpp index 6dd8a84..6cbb6c0 100644 --- a/src/ksimulator.cpp +++ b/src/ksimulator.cpp @@ -27,7 +27,7 @@ KSimulator::KSimulator(TQObject *parent, const char *name ) m_assembler->setCode( m_picoBlaze->code ) ; m_timer = new TQTimer( this ) ; - m_bInterrupt = FALSE ; + m_bInterrupt = false ; m_timer->stop() ; m_run = false ; @@ -60,7 +60,7 @@ void KSimulator::clear() void KSimulator::interrupt() { - m_bInterrupt = TRUE ; + m_bInterrupt = true ; } unsigned int KSimulator::getNextSourceLine() @@ -71,7 +71,7 @@ unsigned int KSimulator::getNextSourceLine() void KSimulator::next() { if ( m_bInterrupt ) { - m_bInterrupt = FALSE ; + m_bInterrupt = false ; m_picoBlaze->Interrupt() ; } else m_picoBlaze->Next() ; @@ -99,9 +99,9 @@ unsigned char KSimulator::getFlags() void KSimulator::setFlags( unsigned char flags ) { - m_picoBlaze->flags.carry = flags & CARRY_FLAG ? TRUE : FALSE ; - m_picoBlaze->flags.zero = flags & ZERO_FLAG ? TRUE : FALSE ; - m_picoBlaze->flags.interrupt_enable = flags & INTERRUPT_FLAG ? TRUE : FALSE ; + m_picoBlaze->flags.carry = flags & CARRY_FLAG ? true : false ; + m_picoBlaze->flags.zero = flags & ZERO_FLAG ? true : false ; + m_picoBlaze->flags.interrupt_enable = flags & INTERRUPT_FLAG ? true : false ; } void KSimulator::run() |