implemented return instruction; Fixed Bug in Stack.pop()

This commit is contained in:
Darkress committed 2023-05-31 01:29:26 +02:00
1 parent 666cc2881b
commit 87bacdb1e6
4 files changed
+23 -11

No files matched your search

@@ -0,0 +1,13 @@
package de.darkress.pic16f84sim.commands;
import de.darkress.pic16f84sim.microcontroller.ProgramCounter;
import de.darkress.pic16f84sim.microcontroller.Stack;
public class Return extends CommandUtils implements Command
{
@Override
public void execute()
{
ProgramCounter.setPcFrom11BitLiteral(Stack.pop());
}
}