My routine also uses jmpnz, but since @pxhuangxyl already defined it, I'm not going to do repetitive work.
jmpn is similar to jmpp.
The bb instruction can be broken down into cmp (also newly defined) and bb operations. cmp is just an operation to compare 2 registers, and also uses the CMPFLAGS.
Since it's hard to "go back some lines" in C++, I still use labels to "go back". To ensure that bb will only go back, and can only go back less than 16 words, I added the following lines to fixit().
My routine also uses
jmpnz
, but since @pxhuangxyl already defined it, I'm not going to do repetitive work.jmpn
is similar tojmpp
.The
bb
instruction can be broken down intocmp
(also newly defined) andbb
operations.cmp
is just an operation to compare 2 registers, and also uses theCMPFLAGS
.Since it's hard to "go back some lines" in C++, I still use labels to "go back". To ensure that
bb
will only go back, and can only go back less than 16 words, I added the following lines tofixit()
.