fixed PC (#6)

Co-authored-by: Darkress <30271678+DarkressX@users.noreply.github.com>
Reviewed-on: darkress/pic16f84-sim#6
This commit was merged in pull request #6.
This commit is contained in:
darkress
2023-05-31 14:22:45 +02:00
parent 2cfc14ba78
commit 0b5d0c172a
4 changed files with 23 additions and 18 deletions

View File

@@ -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());
}
}

View File

@@ -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());
}
}