[Avida-SVN] r3109 - branches/interrupt/source/cpu
beckma24 at myxo.css.msu.edu
beckma24 at myxo.css.msu.edu
Mon Jan 12 08:15:22 PST 2009
Author: beckma24
Date: 2009-01-12 11:15:22 -0500 (Mon, 12 Jan 2009)
New Revision: 3109
Modified:
branches/interrupt/source/cpu/cHardwareCPU.cc
Log:
changing interrupt instruction names
Modified: branches/interrupt/source/cpu/cHardwareCPU.cc
===================================================================
--- branches/interrupt/source/cpu/cHardwareCPU.cc 2009-01-12 01:30:18 UTC (rev 3108)
+++ branches/interrupt/source/cpu/cHardwareCPU.cc 2009-01-12 16:15:22 UTC (rev 3109)
@@ -620,9 +620,11 @@
tInstLibEntry<tMethod>("alarm-label-low", &cHardwareCPU::Inst_Alarm_Label),
// Interrupt
- tInstLibEntry<tMethod>("MSG_received_handler_START", &cHardwareCPU::Inst_MSG_received_handler_START),
- tInstLibEntry<tMethod>("Moved_handler_START", &cHardwareCPU::Inst_Moved_handler_START),
- tInstLibEntry<tMethod>("interrupt_handler_END", &cHardwareCPU::Inst_interrupt_handler_END),
+ tInstLibEntry<tMethod>("MSG_received_handler_START", &cHardwareCPU::Inst_MSG_received_handler_START), // soon to be removed
+ tInstLibEntry<tMethod>("msg_handler", &cHardwareCPU::Inst_MSG_received_handler_START),
+ tInstLibEntry<tMethod>("moved_handler", &cHardwareCPU::Inst_Moved_handler_START),
+ tInstLibEntry<tMethod>("interrupt_handler_END", &cHardwareCPU::Inst_interrupt_handler_END), // soon to be removed
+ tInstLibEntry<tMethod>("end_handler", &cHardwareCPU::Inst_interrupt_handler_END),
// Placebo instructions
tInstLibEntry<tMethod>("skip", &cHardwareCPU::Inst_Skip),
@@ -5978,8 +5980,8 @@
const int label_reg = FindModifiedRegister(REG_BX);
const int data_reg = FindNextRegister(label_reg);
- GetRegister(label_reg) = 999;//msg->GetLabel();
- GetRegister(data_reg) = 999;//msg->GetData();
+ GetRegister(label_reg) = msg->GetLabel();
+ GetRegister(data_reg) = msg->GetData();
return true;
}
More information about the Avida-cvs
mailing list