Remove priting statements which were added for debugging
This commit is contained in:
parent
626d4e8e7f
commit
dd7ec0c234
@ -189,7 +189,6 @@ void parseBranch(a64inst_instruction *instr, char* opcode, char *operandList[])
|
||||
case a64inst_UNCONDITIONAL:
|
||||
//define and sign extend immediate offset
|
||||
//use symbol table
|
||||
printf("unconditional");
|
||||
instr->data.BranchData.processOpData.unconditionalData.label = operandList[1];
|
||||
break;
|
||||
case a64inst_REGISTER:
|
||||
|
||||
@ -121,8 +121,6 @@ static void executeDPImmediate(Machine *state, a64inst_instruction *inst) {
|
||||
uint8_t shiftScalar = inst->data.DPImmediateData.processOpData.wideMovData.shiftScalar;
|
||||
dword wideMovImm = inst->data.DPImmediateData.processOpData.wideMovData.immediate;
|
||||
|
||||
// NOTE: Not checking that shiftScalar has valid value for 32bit registers. Possibly add explicit error.
|
||||
//printf("%x\n", wideMovImm << (shiftScalar * DPI_WIDEMOV_SHIFT) & );
|
||||
wideMovImm = truncateValue(wideMovImm << (shiftScalar * DPI_WIDEMOV_SHIFT), regType);
|
||||
switch(inst->data.DPImmediateData.processOp) {
|
||||
|
||||
|
||||
@ -106,7 +106,6 @@ char **readAssemblyFile(char filename[], int lineCount) {
|
||||
while (fgets(buffer, MAX_ASM_LINE_LENGTH, fp) != NULL) {
|
||||
if (buffer[strlen(buffer) - 1] != '\n') {
|
||||
// It was actually longer than the maximum.
|
||||
// NOTE: I believe this must mean that this is a malformed line, so throw an error.
|
||||
fprintf(stderr, "Error: Line %d in the file %s is too long\n", currentLine, filename);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user