implemented Goto Instruction; Increment ProgramCounter;
This commit is contained in:
@@ -3,16 +3,23 @@ package de.darkress.pic16f84sim;
|
||||
import de.darkress.pic16f84sim.commands.Command;
|
||||
import de.darkress.pic16f84sim.decoder.CommandDecoder;
|
||||
import de.darkress.pic16f84sim.microcontroller.Memory;
|
||||
import de.darkress.pic16f84sim.microcontroller.ProgramCounter;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
class Main
|
||||
{
|
||||
public static void main(String[] args) {
|
||||
|
||||
ArrayList<Command> program = new ArrayList<>();
|
||||
Memory.workingRegister = 0xAA;
|
||||
int input1 = 0x3AFF;
|
||||
int input1 = 0x2FFF;
|
||||
program.add(CommandDecoder.decode(input1));
|
||||
|
||||
Memory.setPCLATH(0xFF);
|
||||
program.get(0).execute();
|
||||
|
||||
//ProgramCounter.incPC();
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user