chiark / gitweb /
todo
authorThomas Thurman <tthurman@gnome.org>
Thu, 25 Mar 2010 23:45:50 +0000 (19:45 -0400)
committerThomas Thurman <tthurman@gnome.org>
Thu, 25 Mar 2010 23:45:50 +0000 (19:45 -0400)
src/Processor.cpp

index 43505b0..d3d1ef1 100644 (file)
@@ -166,6 +166,8 @@ void Processor::oneShot() {
     break;
     
   case MODE_BRANCH:
+    // todo: get rid of branchDisplacement and instead
+    // return the value, plus the current PC, in "address"
     branchDisplacement = m_memory->readByteFrom(m_programCounter);
     if (branchDisplacement & 0x80) {
       // It's negative; do the sign extension.