I have made the first iteration of the immediate rework as we discussed in pull request #34. It is nowhere near being done yet, but just wanted to present the idea to make sure that I'm on the right track. Right now I created an "Immediate" type with "value" and "type" as fields as well as some alternate methods using it (that run in parallel to the original ones) but only for the jump (j) instruction. I have also attached a little test assembly program which is just a modification of fibs.asm to make sure that the changes have the desired effect. Let me know if that's the right way to go and I will proceed to replace all instances of the immediates and labels with the new class and methods.
I have made the first iteration of the immediate rework as we discussed in pull request #34. It is nowhere near being done yet, but just wanted to present the idea to make sure that I'm on the right track. Right now I created an "Immediate" type with "value" and "type" as fields as well as some alternate methods using it (that run in parallel to the original ones) but only for the jump (j) instruction. I have also attached a little test assembly program which is just a modification of fibs.asm to make sure that the changes have the desired effect. Let me know if that's the right way to go and I will proceed to replace all instances of the immediates and labels with the new class and methods.