Skip to content

X Factor

Latest
Compare
Choose a tag to compare
@lebeeas lebeeas released this 23 Dec 18:15
· 6 commits to main since this release
f32a609

We’ve expanded Flip01’s capabilities by adding a module for multiplication and updating all the necessary logic structures accordingly.

mul

To support this, we’ve introduced three new instructions specifically for handling multiplication operations:

  • mul: Multiplies the value in the specified general-purpose register with the indicated variable. The result is saved in the original register.
  • mulR: Multiplies the values in two general-purpose registers. The result is saved in the AX register.
  • mul$: Multiplies the value in the specified general-purpose register with the given constant. The result is saved in the original register.

All the details on how to use these new instructions can be found in the dedicated section of this manual.

The flag bit previously named X, which was used solely to check the validity of shift operations, has now been repurposed to also ensure that multiplication results stay within the 8-bit limit.