2010年8月9日

MASM彙編
條件判斷
.IF 條件1
    操作
.ELSEIF 條件2
    操作
.ELSEIF 條件3
    操作
.ENDIF

.REPEAT
    操作
.UNTIL 條件

.WHILE 條件
    操作
.ENDW

偏移部分
SHL:shift left, 11010010<<2=01001000 一般爲value<<n = value *(2^n)
SHR:shift right, 11010010>>1=01101001
SAL:shift arithmetic left, 11010010<<1=10100100
SAR:shift arithmetic right, 11010010>>1=11101001(前面的爲第一個)01010010>>1=00101001
ROL:Rotate left, shift each bit to the left, the hightest bit is copied both into CF and into the lowest bit.
    如:ROL AL(11010010b), 1= 10100101b且CF=1
ROR:Rotate right, shift each bit to the right, the lowest bit is copied both into CF and into the highest bit.
    如:ROR AL(11010010b), 1= 011010011b且CF=0
RCL:Rotate carry left, shift each bit to the left, copies CF to the least significant bit(LSB),and copies the most significant bit(MSB) into the CF.
    如:CF=0, RCL AL(11010011b), 1= 10100110b且CF=1
RCR:Rotate carry right, shift each bit to the right, copies CF to the most significant bit,and copies the least significant bit into the CF.
    如:CF=0, RCL AL(11010011b), 1= 01101001b且CF=1
SHLD:Double-precision shift left,        SHLD destination, source, count  將destination往左偏移count,右邊缺少的部分用source的高位覆蓋
    如:SHLD wval(WORD 09BACh), ax(05C36h),4  ---> wval=BAC5h
SHRD:Double-precision shift right,        SHLD destination, source, count  將destination往右偏移count,左邊缺少的部分用source的低位覆蓋
    如:SHRD wval(WORD 09BACh), ax(05C36h),4  ---> wval=69BAh

社會:
     基礎要想好,比如UHF demo,僅僅只是一個模塊的demo,但是用c#在.netCF中繪圖,實在弊端太多,控件幾乎都需要重新制作,所以需要考慮清楚了。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章