汇编的问题~

hao76762401 2010-06-05 11:35:45
小弟是个大二的学生~有一门汇编语言设计的课程!
我觉得这课还挺有意思的就想学好学精!
求各位高手们支持!小弟我无限崇拜!

在针对Flag的学习中~小弟对其用法很模糊!~
一般能使flag发生变化的有add adc sub sbb mul inul div idiv inc cmp sal sar test指令~
现在小弟的困惑就是,这么多的内容怎么去掌握?(这是融通的说一下小弟的困惑)

具体的问题就是 add如何影响标志位?尤其是当带符号数相加的时候,如何影响标志位呢?
adc和adc用法上的区别是什么? 在影响标志位上有什么不同?
shl和sal的用法有什么区别?
imul和mul的用法区别?

小弟觉得就是没有对flag好好的理解才有这些问题的提出!所以急切的希望哪位大哥帮忙总结指导!
...全文
127 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
电信用户 2010-06-08
  • 打赏
  • 举报
回复
不结贴的比秒之~~
hao76762401 2010-06-06
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 jizhongqing 的回复:]
Intel® 64 and IA-32 Architectures Software Developer's Manual
Volume 1: Basic Architecture
Describes the architecture and programming environment of processors supporting IA-32 and Intel® 64 Archite……
[/Quote]
谢谢~我有点开窍了!~呵呵~
masmaster 2010-06-06
  • 打赏
  • 举报
回复
同意2喽老师说法。光J字头跳转指令就有数十条,有些估计咱一辈子都用不上
jizhongqing 2010-06-06
  • 打赏
  • 举报
回复
Intel® 64 and IA-32 Architectures Software Developer's Manual
Volume 1: Basic Architecture
Describes the architecture and programming environment of processors supporting IA-32 and Intel® 64 Architectures.

Download
File type/Size: PDF 3.30MB

Intel® 64 and IA-32 Architectures Software Developer's Manual
Volume 2A: Instruction Set Reference, A-M
Describes the format of the instruction and provides reference pages for instructions (from A to M). This volume also contains the table of contents for both Volumes 2A and 2B.

Download
File type/Size: PDF 2.92MB

Intel® 64 and IA-32 Architectures Software Developer's Manual
Volume 2B: Instruction Set Reference, N-Z
Provides reference pages for instructions (from N to Z). VMX instructions are treated in a separate chapter. This volume also contains the appendices and index support for Volumes 2A and 2B.

Download
File type/Size: PDF 3.27MB

Intel® 64 and IA-32 Architectures Software Developer's Manual
Volume 3A: System Programming Guide
Describes the operating-system support environment of an IA-32 and Intel® 64 architectures, including: memory management, protection, task management, interrupt and exception handling, multi-processor support, and thermal and power management features. This volume also contains the table of contents for both Volumes 3A and 3B.

Download
File type/Size: PDF 3.98MB

Intel® 64 and IA-32 Architectures Software Developer's Manual
Volume 3B: System Programming Guide
Continues the coverage on system programming subjects begun in Volume 3A. Volume 3B covers debugging, performance monitoring, system management mode, and Intel® Virtualization Technology (Intel® VT). This volume also contains the appendices and indexing support for Volumes 3A and 3B.

Download
File type/Size: PDF 4.13MB

一共三卷5本,基本应用足够了,别的一般情况下应该不需要下载

常用的查几遍自然记住了,不常用的自然忘掉,节省点大脑空间存放别的什么多好啊

jizhongqing 2010-06-06
  • 打赏
  • 举报
回复
这些不用记住,知道jxx跳转的原理和这些东西相关就够了,用时现去查就可以了
建议下载intel手册(3卷)第二卷整个都是intel指令说明,上千条,你能记住几条呢?

这里有全部手册下载
http://www.intel.com/products/processor/manuals/
电信用户 2010-06-06
  • 打赏
  • 举报
回复
标志位嘛~1为真,0为假。
PSW常用的标志有:

标志 值为1时的标记 值为0时的标记

OF(overflow flag) OV(overflow) NV(not overflow)

ZF(zero flag) ZR(zero) NZ(not zero)

PF(parity flag) PE(parity even) PO(parity odd)

CF(carry flag) CY(carried) NC(not carried)

DF(direction flag) DN(down) UP(up)

SF(sign flag) NG(negative) PL(plus)

TF(trap flag)

IF(interrupt flag)

AF(auxiliary flag)

21,459

社区成员

发帖
与我相关
我的任务
社区描述
汇编语言(Assembly Language)是任何一种用于电子计算机、微处理器、微控制器或其他可编程器件的低级语言,亦称为符号语言。
社区管理员
  • 汇编语言
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧