fixed PC
This commit is contained in:
@@ -17,8 +17,6 @@ public class Retlw extends CommandUtils implements Command
|
||||
public void execute()
|
||||
{
|
||||
Memory.workingRegister = literal;
|
||||
ProgramCounter.setPcFrom11BitLiteral(Stack.pop());
|
||||
//TODO: This may need some rework since it does not really load all 13 Bit into the PC. Only 8 Bit are
|
||||
// effectively set
|
||||
ProgramCounter.setPcFromStack(Stack.pop());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,8 +8,6 @@ public class Return extends CommandUtils implements Command
|
||||
@Override
|
||||
public void execute()
|
||||
{
|
||||
ProgramCounter.setPcFrom11BitLiteral(Stack.pop());
|
||||
//TODO: This may need some rework since it does not really load all 13 Bit into the PC. Only 8 Bit are
|
||||
// effectively set
|
||||
ProgramCounter.setPcFromStack(Stack.pop());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user