implemented Incfsz Instruction (#14)

Co-authored-by: Darkress <30271678+DarkressX@users.noreply.github.com>
Reviewed-on: darkress/pic16f84-sim#14
This commit was merged in pull request #14.
This commit is contained in:
darkress
2023-05-31 22:30:29 +02:00
parent 7eab465fff
commit b23bf4c54b
3 changed files with 38 additions and 4 deletions

View File

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