The library you mention is used with Kip Irvine's book, "Assembly Language for x86 Processors". It's currently in its' sixth edition and I am finding it to be a great intro to assembly.
In the early chapters (chapter 3, I believe), he goes over the include process. It states where to put files, etc. and may be of some help to you (I'd document it here, but it's a little involved).
There is a demo project that comes with the examples for the book, you can use that project as a basis for your project. You should also check your linker settings, and make sure the paths to Irvine32 libraries are included in the additional library dependencies property. I had that issue once and just created a template project using the default project that is shipped Kip's book.
发布评论
评论(4)
如果您使用 masm32 程序,请将 Irvine32.inc 放入 masm32\include 文件夹,将 Irvine32.lib 放入 masm32\lib 文件夹。在源文件 asm write 中,
我在读这本书时成功了!
if you use masm32 program put the Irvine32.inc into masm32\include folder and Irvine32.lib in masm32\lib folder. In source file asm write
I successed when i was reading this book!
您提到的库与 Kip Irvine 的书“x86 处理器的汇编语言”一起使用。目前它已经是第六版了,我发现它是对装配的一个很好的介绍。
在前面的章节中(我认为是第 3 章),他回顾了包含过程。它说明了放置文件的位置等,可能对您有一些帮助(我会在这里记录它,但有点复杂)。
干杯,
斯科特
The library you mention is used with Kip Irvine's book, "Assembly Language for x86 Processors". It's currently in its' sixth edition and I am finding it to be a great intro to assembly.
In the early chapters (chapter 3, I believe), he goes over the include process. It states where to put files, etc. and may be of some help to you (I'd document it here, but it's a little involved).
Cheers,
Scott
本书的示例附带了一个演示项目,您可以使用该项目作为您的项目的基础。您还应该检查链接器设置,并确保 Irvine32 库的路径包含在附加库依赖项属性中。我曾经遇到过这个问题,只是使用 Kip 书中附带的默认项目创建了一个模板项目。
请访问我的博客设置 vs10 以使用 masm32 进行编程,详细了解如何将库添加到一个 masm32 项目。
There is a demo project that comes with the examples for the book, you can use that project as a basis for your project. You should also check your linker settings, and make sure the paths to Irvine32 libraries are included in the additional library dependencies property. I had that issue once and just created a template project using the default project that is shipped Kip's book.
Visit my blog Setting up vs10 for programming with masm32 for details on how to add libraries to a masm32 project.
TITLE MASM 模板 (Template.asm)
包括 Irvine32.inc
.data
销售 DWORD 7050、8020、3502、6750、4435、5000、7800、5100、6350、8300、2750、7340
计算 EQU 长度销售量
总计双字 72397
平均双字?
最高双字?
msgTotal BYTE "总销售额为:", 0
msgAvg BYTE "平均销售额为:", 0
msgHighest BYTE "最高销售额是:", 0
.code
主程序
L1:
L2: mov eax, Sales[edi] ; EAX = 销售额[0]
cmp eax,最高
L3 ; EAX>销售量
跳转L4; EAX <销售
L3:mov 销售,eax ;销售额=EAX
jmp L4
L4: 添加 edi, TYPE Sales ;电子数据交换 = 电子数据交换 + 4
环路L2
主ENDP
结束主
TITLE MASM Template (Template.asm)
INCLUDE Irvine32.inc
.data
sales DWORD 7050, 8020, 3502, 6750, 4435, 5000, 7800, 5100, 6350, 8300, 2750, 7340
COUNT EQU LENGTHOF sales
TOTAL DWORD 72397
AVG DWORD ?
HIGHEST DWORD ?
msgTotal BYTE "Total Sales is : ", 0
msgAvg BYTE "Average Sales is: ", 0
msgHighest BYTE "Highest Sales is: ", 0
.code
main PROC
L1:
L2: mov eax, Sales[edi] ; EAX = Sales[0]
cmp eax, HIGHEST
ja L3 ; EAX > SALES
jmp L4 ; EAX < SALES
L3: mov Sales, eax ; Sales = EAX
jmp L4
L4: add edi, TYPE Sales ; EDI = EDI + 4
loop L2
main ENDP
END main