莎士比亚让哈姆雷特说出来的这句台词估计所有人都耳熟能详了吧~~~
计算机告诉了偶们Two B or not two B是有答案滴
Two B is 0x2B
Not two B is !0x2B == 0xD4
所以 Two B or not two B == 0x2B | !0x2B == 0xFF
答案就是0xFF
C:\>debug
-a
17F3:0100 mov al,2b
17F3:0102 mov bl,2b
17F3:0104 not bl
17F3:0106 or al,bl
17F3:0108
-t
AX=002B BX=0000 CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000
DS=17F3 ES=17F3 SS=17F3 CS=17F3 IP=0102 NV UP EI PL NZ NA PO NC
17F3:0102 B32B MOV BL,2B
-t
AX=002B BX=002B CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000
DS=17F3 ES=17F3 SS=17F3 CS=17F3 IP=0104 NV UP EI PL NZ NA PO NC
17F3:0104 F6D3 NOT BL
-t
AX=002B BX=00D4 CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000
DS=17F3 ES=17F3 SS=17F3 CS=17F3 IP=0106 NV UP EI PL NZ NA PO NC
17F3:0106 08D8 OR AL,BL
-t
AX=00FF BX=00D4 CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000
DS=17F3 ES=17F3 SS=17F3 CS=17F3 IP=0108 NV UP EI NG NZ NA PE NC
17F3:0108 F6D4 NOT AH
posted on 2008-06-01 20:15
Tsanie 阅读(510)
评论(0) 编辑 收藏 引用 所属分类:
心情日记