implemented Incfsz Instruction

This commit is contained in:
Darkress
2023-05-31 22:19:36 +02:00
parent 7eab465fff
commit 5cf5e82bd1
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();