change operands for some instructions and start work on devices

This commit is contained in:
2026-07-16 13:13:38 +10:00
parent c270a48141
commit a2d90f620a
7 changed files with 32 additions and 13 deletions

View File

@@ -10,16 +10,7 @@ int main() {
}
RomFile* romFile = readProgramFromFile("../test.bin");
/*Instruction program[] = {
{INST_MVI, {REG_A, 0, 0}, 5, true},
{INST_MVI, {REG_B, 0, 0}, 3, true},
{INST_ADD, {REG_A, REG_B, 0}, 0, false},
{INST_HLT, {}, 0, false}
};*/
printf("%d\n", romFile->header.numInstructions);
memoryLoadProgram(emu->mem, romFile->instructions, romFile->header.numInstructions);
//startEmulator(emu);
freeEmulator(emu);