Added swapf Instruction

This commit is contained in:
Darkress
2023-06-07 20:16:30 +02:00
parent d8ed3ab9b1
commit 1c3ed8a1b2
5 changed files with 32 additions and 6 deletions

View File

@@ -13,8 +13,8 @@ class Main
ArrayList<Command> program = new ArrayList<>();
Memory.workingRegister = 0x01;
Memory.setRegister(0x14, 0x01); //240 << 224
program.add(CommandDecoder.decode(0x0294));
Memory.setRegister(0x14, 0xA5); //240 << 224
program.add(CommandDecoder.decode(0x0E94));
for(int i = 0; i < program.size(); i++)
{
program.get(ProgramCounter.getPc()).execute();