33 lines
737 B
Java
33 lines
737 B
Java
package de.darkress.pic16f84sim;
|
|
|
|
import de.darkress.pic16f84sim.commands.Command;
|
|
import de.darkress.pic16f84sim.decoder.CommandDecoder;
|
|
import de.darkress.pic16f84sim.registers.Memory;
|
|
import de.darkress.pic16f84sim.registers.Stack;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
class Main
|
|
{
|
|
public static void main(String[] args) {
|
|
/*
|
|
ArrayList<Command> program = new ArrayList<>();
|
|
int input1 = 0x3EFF;
|
|
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();
|
|
}
|
|
|
|
|
|
}
|
|
} |