![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
汇编语言
吃不起饭的小陈
这个作者很懒,什么都没留下…
展开
-
Assembly Language for x86 Processors --- 3.4 课后习题答案
3.4 Defining Data 1 Create an uninitialized data declaration for an 8-bit signed integer. 答 :value SBYTE ? 2 Declare an uninitialized array of 50 unsigned doublewords named dArray. 答 :dArray DWORD 50 DUP(?) 3 Show the order of individual bytes in memory (lo原创 2020-05-15 01:45:04 · 259 阅读 · 0 评论 -
Assembly Language for x86 Processors --- 3.5 课后习题答案
1 Use a TEXTEQU expression to redefine “PROC” as “PROCEDURE.” 答 :PROCEDURE TEXTEQU < PROC > 2 Declare a symbolic constant using the equal-sign directive that contains the ASCII code (08h) for the Backspace key. 答 :BACKSPACE = 08h 3 Use TEXTEQU to ass原创 2020-05-15 01:12:27 · 235 阅读 · 0 评论 -
Assembly Language for x86 Processors --- 5.5 课后习题答案
5.5 Defining and Using Procedures 1 The RET instruction pops the top of the stack into the instruction pointer. 答 :√ 2 The USES operator lets you name all registers that are modified within a procedure. 答 :√ 3 In protected mode, each procedure call uses a原创 2020-05-15 00:19:18 · 181 阅读 · 0 评论 -
Assembly Language for x86 Processors --- 5.4 课后习题答案
5.4 Stack Operations 1 The PUSH instruction cannot have an immediate operand. 答 :× 2 Local variables in procedures are created on the stack. 答 :√ 3 Only 32-bit values should be pushed on the stack when using the Irvine32 library. 答 :√ 4 Only 16-bit values原创 2020-05-09 00:53:01 · 209 阅读 · 1 评论 -
Assembly Language for x86 Processors---汇编环境配置(VS2019 + irvine链接库)
步骤如下: 1 下载 VS community 2019 ( VS2019 社区版) : 官网直接免费下载就可以! 下载 irvine 链接库 2 创建一个C++空项目: 3 项目建成,打开 解决方案资源管理器 --> 项目右击 --> 生成依赖性 --> 生成自定义 4 选择 masm --> 确定 5 添加源文件 : 打开解决方案资源管...原创 2020-05-08 12:41:16 · 1488 阅读 · 2 评论 -
Assembly Language for x86 Processors --- 4.5 课后习题答案
4.5 JMP and LOOP Instructions 1 In real-address mode, which register is used as the counter by the LOOP instruction?(在实地址模式下,循环指令使用哪个寄存器作为计数器?) 答 :CX 2 The LOOP instruction does the following: It decr...原创 2020-04-20 00:20:18 · 359 阅读 · 2 评论 -
Assembly Language for x86 Processors --- 4.4 课后习题答案
4.4 Indirect Addressing 1 答 : a. 10h b. 40h c. 003Bh d. 3 e. 3 f. 2 2 The following instruction is invalid: inc [esi] 答 :× 3 Any 32-bit general-purpose register can be used as an indirect operand. 答 ...原创 2020-04-17 12:13:00 · 235 阅读 · 0 评论 -
Assembly Language for x86 Processors --- 4.3 课后习题答案
4.3 Data-Related Operators and Directives 1 The SIZEOF operator returns the number of bytes in an operand.(SIZEOF运算符返回操作数中的字节数。) 答 :√ 2 The OFFSET operator always returns a 16-bit value.(OFFSET运算符始终返回...原创 2020-04-17 11:43:50 · 301 阅读 · 0 评论 -
Assembly Language for x86 Processors --- 4.1 课后习题答案
4.1 Data Transfer Instructions 1 The destination operand of a MOV instruction cannot be a segment register.(MOV指令的目标操作数不能是段寄存器。) 答 :× 2 In a MOV instruction, the second operand is known as the des...原创 2020-04-10 11:59:37 · 401 阅读 · 0 评论 -
Assembly Language for x86 Processors --- 4.2 课后习题答案
4.2 Addition and Subtraction 1 Is it possible to set the Overflow flag if you add a positive integer to a negative integer?(如果将正整数加到负整数,是否可以设置溢出标志?) 答 :No. 2 Will the Overflow flag be set if you a...原创 2020-04-10 10:52:37 · 330 阅读 · 0 评论 -
Assembly Language for x86 Processors --- 2.3 课后习题答案
2.3 x86 Memory Management 1 In protected mode, which register references the descriptor for the stack segment?(在保护模式下,哪个寄存器引用堆栈段的描述符?) 答 :SS register. 2 In real-address mode, convert the following...原创 2020-04-03 22:31:33 · 201 阅读 · 0 评论 -
Assembly Language for x86 Processors --- 2.2 课后习题答案
2.2 x86 Architecture Details 1 Name all eight 32-bit general-purpose registers.(说出所有8个32位寄存器的名称。) 答 :EAX EBX ECX EDX EBP ESP ESI EDI 2 Which flag is set when the result of an unsign...原创 2020-04-03 21:48:30 · 264 阅读 · 0 评论 -
Assembly Language for x86 Processors --- 2.1 课后习题答案
2.1 Assembly Language - - - General Concept 1 central processor unit is connected to the rest of the computer system using what three buses? Answer : Data, Address, and Control buses. 2 Define mul...原创 2020-04-03 15:18:45 · 244 阅读 · 0 评论