汇编语言 [EMU 8086]

Assembly Language [ EMU 8086]

我有这个 mov cx,12345d

现在我想检查这个数字的最后 3 位是否是例如二进制的 111

谢谢

"AND" 带有“111”(二进制)的值清除所有其他位,然后将结果与“111”(二进制)进行比较。

我做了一些 x86 汇编已经十多年了,但它应该看起来像这样:

AND CX, 111b
CMP CX, 111b
JE found
; whatever happens when it is not found
JMP end
found: 
; whatever happens when it is found
end:
; the end