cpsc411 / cpsc411-book

The WIP book for CPSC 411
Other
59 stars 7 forks source link

a4 patch-instruciton no longer needs inversion + compare 0 trick? #36

Open wilbowma opened 3 years ago

wilbowma commented 3 years ago

In the previous iteration, to handle compare required a trick in which we inverted the value of a register and compared to 0. I don't think this is necessary any longer.

wilbowma commented 3 years ago

The milestone mentions this tricky:

It will be tricky to implement the instruction (compare addr addr) with only one auxiliary register. You can do it in four Paren-x64 v4 instructions.

But we have 2 patch registers now, so this isn't needed

wilbowma commented 3 years ago

Removed from milestone hint in 390a15c83d3543f57f805319c2e611c690f42649, need to check chapter