VMP 学习 December 29, 2014 VMP 的逻辑运算只有一个或非, nor, 而不是什么与非 使用或非组合可以实现与, 或, 异或三个运算 # not eax # not edx # and eax, edx def nor(a): return ~(a | a) def nor(a, b): return ~a & ~b def and(a, b): # ~(~a | ~b) = a & b return nor(nor(a), nor(b)) def or(a, b): # ~(~(a | b)) = a | b return nor(nor(a, b)) def xor(a, b): # ~((~a & ~b) | (a & b)) return nor(nor(a, b), nor(nor(a), nor(b))) Read More Fuck 蝉大师 Continue reading Rebuild Explorer icon cache Published on June 28, 2016 VS 2015 编译 PyQt Published on December 03, 2015