scoreboard.c
void scoreboard_printCommand(command_row_t* command) {
	switch (command->opcode) {
		case OPCODE_LD: printf("ld\tF[%d] = MEM[%d]\n", command->dst, command->imm);
			break;
		case OPCODE_ST: printf("st\tMEM[%d] = F[%d]\n", command->imm, command->src1);
			break;
		case OPCODE_ADD: printf("add.d\tF[%d] = F[%d] + F[%d]\n", command->dst, command->src0, command->src1);
			break;
		case OPCODE_SUB: printf("sub.d\tF[%d] = F[%d] - F[%d]\n", command->dst, command->src0, command->src1);
			break;
		case OPCODE_MULT: printf("mult.d\tF[%d] = F[%d] * F[%d]\n", command->dst, command->src0, command->src1);
			break;
		case OPCODE_DIV: printf("dev.d\tF[%d] = F[%d] / F[%d]\n", command->dst, command->src0, command->src1);
			break;
		case OPCODE_HALT: printf("halt\tExit simulator\n");
			break;
	}
}
/* This function print to the user the received command */
This function print to the user the received command
This function print to the user the received command
void scoreboard_printCommand(command_row_t* command) {
	switch (command->opcode) {
		case OPCODE_LD: printf("ld\tF[%d] = MEM[%d]\n", command->dst, command->imm);
			break;
		case OPCODE_ST: printf("st\tMEM[%d] = F[%d]\n", command->imm, command->src1);
			break;
		case OPCODE_ADD: printf("add.d\tF[%d] = F[%d] + F[%d]\n", command->dst, command->src0, command->src1);
			break;
		case OPCODE_SUB: printf("sub.d\tF[%d] = F[%d] - F[%d]\n", command->dst, command->src0, command->src1);
			break;
		case OPCODE_MULT: printf("mult.d\tF[%d] = F[%d] * F[%d]\n", command->dst, command->src0, command->src1);
			break;
		case OPCODE_DIV: printf("dev.d\tF[%d] = F[%d] / F[%d]\n", command->dst, command->src0, command->src1);
			break;
		case OPCODE_HALT: printf("halt\tExit simulator\n");
			break;
	}
}
void scoreboard_printCommand ( command_row_t * command ) { switch ( command -> opcode ) { case OPCODE_LD : printf ( " \t \n " , command -> dst , command -> imm ) ; break ; case OPCODE_ST : printf ( " \t \n " , command -> imm , command -> src1 ) ; break ; case OPCODE_ADD : printf ( " \t \n " , command -> dst , command -> src0 , command -> src1 ) ; break ; case OPCODE_SUB : printf ( " \t \n " , command -> dst , command -> src0 , command -> src1 ) ; break ; case OPCODE_MULT : printf ( " \t \n " , command -> dst , command -> src0 , command -> src1 ) ; break ; case OPCODE_DIV : printf ( " \t \n " , command -> dst , command -> src0 , command -> src1 ) ; break ; case OPCODE_HALT : printf ( " \t \n " ) ; break ; } }
This function print to the user the received command
This function print to the user the received command