implement Incf Instruction

This commit is contained in:
Darkress
2023-05-31 22:12:27 +02:00
parent c896b4f199
commit dd6649ab59
3 changed files with 29 additions and 6 deletions

View File

@@ -15,10 +15,7 @@ class Main
int input1 = 0x27FF;
program.add(CommandDecoder.decode(0x3011)); //Write 0x11 to W
Memory.setRegister(0x14, 0x01);
program.add(CommandDecoder.decode(0x0B94));
program.add(CommandDecoder.decode(0x0B94));
program.add(CommandDecoder.decode(0x0B94));
program.add(CommandDecoder.decode(0x3F05));
program.add(CommandDecoder.decode(0x0A94)); //Write 0x11 to W
for(int i = 0; i < program.size(); i++)
{
program.get(ProgramCounter.getPc()).execute();