added Xorlw in CommandDecoder

This commit is contained in:
Darkress
2023-05-29 15:33:48 +02:00
parent 0d1db917c0
commit bbe1229670
2 changed files with 7 additions and 19 deletions

View File

@@ -1,29 +1,18 @@
package de.darkress.pic16f84sim;
import de.darkress.pic16f84sim.microcontroller.Stack;
import de.darkress.pic16f84sim.commands.Command;
import de.darkress.pic16f84sim.decoder.CommandDecoder;
import de.darkress.pic16f84sim.microcontroller.Memory;
import java.util.ArrayList;
class Main
{
public static void main(String[] args) {
/*
ArrayList<Command> program = new ArrayList<>();
int input1 = 0x3EFF;
Memory.workingRegister = 0xAA;
int input1 = 0x3AFF;
program.add(CommandDecoder.decode(input1));
program.get(0).execute();
*/
for(int i = 0; i < 8; i++)
{
Stack.push(i);
}
for(int i = 0; i < 16; i++)
{
System.out.println(Stack.peek());
Stack.pop();
}
}
}

View File

@@ -55,8 +55,7 @@ public class CommandDecoder
case 0x3800:
return new Iorlw(input);
case 0x3A00:
//xorlw();
break;
return new Xorlw(input);
}
switch(input & 0x3F80)