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中绘图,实在弊端太多,控件几乎都需要重新制作,所以需要考虑清楚了。
2010年8月9日
最新推荐文章于 2022-08-13 12:32:01 发布