implemented decf Instruction (#10)

Co-authored-by: Darkress <30271678+DarkressX@users.noreply.github.com>
Reviewed-on: darkress/pic16f84-sim#10
This commit was merged in pull request #10.
This commit is contained in:
darkress
2023-05-31 20:16:46 +02:00
parent 1f8e3aff58
commit 49ab5876b8
3 changed files with 30 additions and 4 deletions

View File

@@ -14,8 +14,8 @@ class Main
ArrayList<Command> program = new ArrayList<>();
int input1 = 0x27FF;
program.add(CommandDecoder.decode(0x3011)); //Write 0x11 to W
Memory.setRegister(0x14, 0x14);
program.add(CommandDecoder.decode(0x0994));
Memory.setRegister(0x14, 0x01);
program.add(CommandDecoder.decode(0x0314));
for(int i = 0; i < 2; i++)
{
program.get(ProgramCounter.getPc()).execute();