implemented Addwf Instruction (#7)

Co-authored-by: Darkress <30271678+DarkressX@users.noreply.github.com>
Reviewed-on: darkress/pic16f84-sim#7
This commit was merged in pull request #7.
This commit is contained in:
darkress
2023-05-31 19:34:56 +02:00
parent 0b5d0c172a
commit 7af1145ad4
15 changed files with 98 additions and 18 deletions

View File

@@ -13,11 +13,10 @@ class Main
ArrayList<Command> program = new ArrayList<>();
int input1 = 0x27FF;
program.add(CommandDecoder.decode(0x3011));
program.add(CommandDecoder.decode(0x2003));
program.add(CommandDecoder.decode(0x3022));
program.add(CommandDecoder.decode(0x0008));
while(true)
program.add(CommandDecoder.decode(0x3011)); //Write 0x11 to W
Memory.setRegister(0x14, 0x14);
program.add(CommandDecoder.decode(0x0714));
for(int i = 0; i < 2; i++)
{
program.get(ProgramCounter.getPc()).execute();
}