I'm currently creating an application that would take in the user's input and return to them the hex of the branch instruction they wanted.
The input includes:
- Branch Type (Conditional/Non-Conditional)
- If conditional, the condition
- Address to branch to
- Address branching from
I can currently fill in most bits of the 32 bits but I am unable to fill in three certain bits which bother me. These are the S bit, the J1 bit, and the J2 bit as shown in the references below:
Do these bits have default values? Otherwise, how do I know the value I need to use for them? Thanks for your time.