change operands for some instructions and start work on devices
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user