void function ( int arg0 ) { switch ( state ) { case CLEARED : branchTargetAddress = arg0 ; case REGISTERED : case TRIGGERED : state = REGISTERED ; } }
register the fact that a successful branch is to occur . this is called in the instruction 's simulated execution its simulate method in instructionset . if a branch is registered but not triggered , this registration will be ignored can not happen if class usage protocol is followed . if a branch is currently registered and triggered , reset the state back to registered but not triggered in order to carry over the delay slot for another execution cycle . this is the only public member of the class . concode_field_sep int CLEARED concode_elem_sep int TRIGGERED concode_elem_sep int REGISTERED concode_elem_sep int branchTargetAddress concode_elem_sep int state concode_field_sep int getBranchTargetAddress concode_elem_sep void clear concode_elem_sep boolean isRegistered concode_elem_sep void trigger concode_elem_sep boolean isTriggered