计算机组成原理10H,计算机组成原理与接口技术课件 CHAPTER 4 INT 21H AND INT 10H PROGRAMMING AND MACROS 129.pdf...

Dec Hex Bin

3 3

ORG ; THREE

Arithmetic

and Logic

Instructions

And Programs

The x86 PC

Assembly Language, Design, and Interfacing © 2010, 2003, 2000, 1998 Pearson Higher Education, Inc.

By Muhammad Ali Mazidi, Janice Gillespie Mazidi and Danny Causey Pearson Prentice Hall - Upper Saddle River, NJ 07458

OBJECTIVES

this chapter enables the student to:

• Demonstrate how 8-bit and 16-bit unsigned

numbers are added in the x86.

• Convert data to any of the forms:

– ASCII,packed BCD,unpacked BCD.

• Explain the effect of unsigned arithmetic

instructions on the flags.

• Code the following Assembly language unsigned

arithmetic instructions:

– Addition instructions: ADD and ADC.

– Subtraction instructions SUB and SBB.

– Multiplication and division instructions MUL and DIV.

The x86 PC

Assembly Language, Design, and Interfacing © 2010, 2003, 2000, 1998 Pearson Higher Education, Inc.

By Muhammad Ali Mazidi, Janice Gillespie Mazidi and Danny Causey Pearson Prentice Hall - Upper Saddle River, NJ 07458

OBJECTIVES (cont)

this chapter enables the student to:

• Code BCD arithmetic instructions:

– DAA and DAS.

• Code the Assembly language logic instructions:

– AND, OR, and XOR.

– Logical shift instructions SHR and SHL.

– The compare instruction CMP.

• Code bitwise rotation instructions

– ROR, ROL, RCR, and RCL.

• Demonstrate an ability to use all of the above

instructions in Assembly language programs.

• Perform bitwise manipulation using the C language.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值