TrietPhan_FinalProject.c
// Change the PC and the running flag to 1
Change the PC and the running flag to 1
Change the PC and the running flag to 1
void jump_pc(char *cmd_line, CPU *cpu) {
  Address new_pc;
  if(sscanf(cmd_line, "j x%hx", &new_pc)) {
    cpu -> pc = new_pc;
    cpu -> running = 1;
    printf("PC jumps to x%hX\n", cpu -> pc);
  }
}
void jump_pc ( char * cmd_line , CPU * cpu ) { Address new_pc ; if ( sscanf ( cmd_line , " " , & new_pc ) ) { cpu -> pc = new_pc ; cpu -> running = 1 ; printf ( " \n " , cpu -> pc ) ; } }
Change the PC and the running flag to 1
Change the PC and the running flag to 1