- 1、本文档共114页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
INC – increment (增量指令) Examples INC reg/mem ;reg/mem←reg/mem+1 inc bx inc [DI] ; (X) assembler don’t know byte, ; word or d-word. inc byte ptr [bx] Table 13-4 INC instruction DEC – decrement (增量指令) Format: Operation: (DST) ← (DST) - 1 DEC instruction clear or set the OF, SF, and ZF flags, but not effect CF flag bit. DEC不影响进位CF标志,按定义设置其他状态标志 DEC DST DEC – decrement (减量指令) Examples DEC reg/mem ;reg/mem←reg/mem-1 DEC cx DEC word ptr [bx] INC DEC Useful for incrementing and decrementing counters. Take fewer bytes of code and execute in fewer clock cycles than corresponding addition or subtraction instructions. INC指令和DEC指令都是单操作数指令 主要用于对计数器和地址指针的调整 NEG – negate (取补指令) Format: Function: reverses the sign of a binary value, from positive to negative and vice versa. NEG reg/mem ;reg/mem←0 - reg/mem NEG – negate (取补指令) Format: Operation: NEG reverses the bits, and then adds 1 for proper 2’s complement notation. (DST) ← 0 - (DST) NEG instruction affect AF, CF, OF, PF, SF and ZF NEG reg/mem ;reg/mem←0 - reg/mem NEG mov ax,0ff64h neg al sub al,9dh neg ax dec al neg ax Questions Show the result in the destination operand. NEG mov ax,0ff64h neg al ;ax=ff9ch,OF=0、SF=1、ZF=0、PF=1、CF=1 sub al,9dh ;ax=ffffh,OF=0、SF=1、ZF=0、PF=1、CF=1 neg ax ;ax=0001h,OF=0、SF=0、ZF=0、PF=0、CF=1 dec al ;ax=0000h,OF=0、SF=0、ZF=1、PF=1、CF=1 neg ax ;ax=0000h,OF=0、SF=0、ZF=1、PF=1、CF=0 Answers CMP – compare (比较指令) Format: Function: Compares the binary contents of two data fields. CMP DST, SRC ; (DST) - (SRC) CMP – compare (比较指令) Format: Operation: CMP internally subtracts operand 2 from operand 1 and sets/clears flags, but not store the result. Both operands are byte, word, or doubleword. (DST) - (SRC) CMP DST, SRC ; (DST) - (SRC) CMP – compare (比较指令) affect AF, CF, OF, PF, SF and ZF CF SF ZF Operand 1 Operand 2 1 1 0 Operand 1 = Operand 2 0 0 1 Operand 1 Operand 2 0 0 0 CMP DST, SRC ; (DST) - (SRC) CMP – compare (比较指令) CMP may compare register, memory, or imme
您可能关注的文档
- 宫鑫:高竞争环境广告投放.ppt
- 3+清洁生产评价与审核1.ppt
- 2009届高三第一轮复习——带电粒子在电场中的运动24.ppt
- 第23章+戊糖途径.ppt
- 第七章 差分方程模型.ppt
- 抗菌材料的評價方式.ppt
- 3国际私法的主体.ppt
- 《港口内燃机》第07章.ppt
- 11湘教版选修5+第一章+第一节+自然灾害的概念与特点(课件).ppt
- 第3章-要素费用核算02(辅助+制费).ppt
- 【产品营销联盟PMA】2024年产品营销领导力状况报告.docx
- 数据作价出资入股的破局之道 (一):政策与难点解析.docx
- 房地产活动策划 -2025三八女神节春季手工团建主题活动推荐方案.docx
- 【欧盟标准组织】体验式网络智能(ENI)-基于人工智能代理的下一代网络切片研究.docx
- 【赛默飞】2024打造出海竞争力:中国创新药的国际生产供应战略白皮书.docx
- B2B电子商务入门的终极指南.docx
- 小白入门DeepSeek50个高阶提示词.docx
- 营销投放平台实操指南- 2025.docx
- 【里瑞通(Digital Realty)】2024您准备好使用数据和AI了吗?-赋能数据和 AI 就绪架构的有效方法白皮书.docx
- 中国酒业协会&腾讯营销洞察:2023年中国白酒行业消费白皮书.docx
最近下载
- IATF16949内审员课程试题及答案.pdf
- 两虫方法确认材料.doc
- 《蜀相》《书愤》比较阅读+课件22张+2022-2023学年统编版高中语文选择性必修下册.pptx VIP
- 【三基】康复治疗学简答题(二).docx VIP
- 有害物质和材料管理规范.doc VIP
- 2022-2023年住院医师规范化培训-住院医师规范化培训(超声医学科)考试全真模考卷9(附答案).docx VIP
- 新视野大学英语第三版第四册第三单元section A课件.pptx
- 铁路线路工中级技能鉴定习题库及参考答案.docx VIP
- 【基于单片机的煤矿安全生产监控系统设计8600字】.docx
- (八省联考)陕西省2025年高考综合改革适应性演练 化学试卷(含答案解析).docx
文档评论(0)