masm32软件开发包

  • B8_315146
    了解作者
  • 5.3MB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-14 05:31
    上传日期
这是编写WIN32汇编语言程序的开发环境,版本为MASM32V5。这是一个在WINDOWS2000下 安装之后的压缩软件包。 将该软件包解压到任何一个磁盘上即可使用(使用其中的示例程序时,注意修改源程序中 INCLUDE、INCLUDELIB后面的目录信息,要与你安装的目录一致)。 汇编、连接等主要工具程序在“BIN”子目录下。用户可以在该目录下直接运行相应程序。 头文件和库文件在对应的子目录中。其他子目录中还有教程、示例和帮助等信息。 在MASM32目录下有一个集成环境程序:QEDITOR.EXE。用户可以通过该程序中的菜单命令 完成程序录入、汇编、连接和执行等操作。 当只按照教材的要求编写单模块的WIN32程序时,只需使用该程序中File菜单下的 “打开Open”和“保存Save”文件的命令以及Project菜单下的“汇编Assemble ASM file”、 “连接Link OBJ File”即可,无需对该程序作任何配置,源程序可以放到你指定的任何目录中。 当编写多模块程序时,则应该仿照C语言集成环境的操作,先建立工程(Project),然后对 每一个模块汇编后再连接。
内容介绍
DBMACROS.ASM & DBSHOW.DLL ~~~~~~~~~~~~~~~~~~~~~~~~~ DBSHOW.DLL is a dynamic link library that contains functions for displaying DWORD size values in either a dialog box, the title bar or a status bar. It is used in conjunction with a set of MACROS contained the file DBMACROS.ASM. To use the DLL and MACROS while designing and testing an application, the line, include dbmacros.asm should be added to the start of the file and the DLL should be in the SAME directory as the application being developed. Why use a DLL for services of this type ? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ There are many places where a source code debugger is difficult and slow to use. It is faster to get a single return value from a function by using a set of services of this type and you have the option of different numerical formats for display that are not available in a debugger. There are currently five (5) function available in the DLL that are called using the supplied macros. How does it work ? ~~~~~~~~~~~~~~~~~~ The concept is very simple, the MACROS insert the necessary assembler code to get the values and passes them to each function in the DLL for display using the standard push parameter, call function syntax. You can easily see how they work by reading the DBMACROS.ASM file. ---------------------------------------------------------------------------- 1. ShowReturn hWindow, value "hWindow" is a valid window handle "value" is the supplied DWORD value to be displayed The function called from this MACRO displays a dialog box with the value shown in Decimal, Hex and Binary. EXAMPLE invoke GetTickCount ShowReturn hWnd,eax ---------------------------------------------------------------------------- 2. UseTitleBar hWindow, value, dType "hWindow" is a valid window handle "value" is the supplied DWORD value to be displayed "dType" is the numeric format for display 1=decimal, 2=hex, 3=binary The function called by this MACRO displays the value in the format selected on the windows title bar. It can be used in places like a message loop for watching a value that changes at run time without interfering with the function of the program. EXAMPLE ---- WndProc Fragment ---- .elseif uMsg == WM_SIZE UseTitleBar hWnd, lParam, 2 This displays the lParam for WM_SIZE on the title bar in hex. When you size the window, the left four (4) hex characters show the client area width and the right four (4) hex characters show the client area height in hex. ---------------------------------------------------------------------------- 3. UseStatusBar hStatus, value, dType "hStatus" is a valid status bar window handle "value" is the supplied DWORD value to be displayed "dType" is the numeric format for display 1=decimal, 2=hex, 3=binary This can be used in exactly the same way as the "UseTitleBar" macro if the application has a status window. ---------------------------------------------------------------------------- 4. ShowRegisters hWindow, dType "hWindow" is a valid window handle "dType" is the numeric format for display 1=decimal, 2=hex, 3=binary This function call by the MACRO will display the eax, ebx, ecx, edx, esi, edi, ebp, esp registers at the point where the MACRO is called in any of the 3 different numerical formats. ---------------------------------------------------------------------------- 5. ClockitStart ClockitStop hWindow,num "hWindow" is a valid window handle "num" is the format for display, 1=dialog box or 2=titlebar You use ClockitStart with no parameters at the point in your code that you wish to start the timing and ClockitStop at the point where you wish to stop the timing. EXAMPLE ClockitStart ;-------------------- Do_Time_Critical_Code_Here ;-------------------- ClockitStop hWnd,2 This will display the duration of the code in milliseconds on the title bar. NOTE : With ring 3 access, there is a variation of 2 to 3 percent in the result which limits the usefulness when clocking very short duration code. It is also worth running the code multiple times to avoid the effects of caching. ---------------------------------------------------------------------------- CREDIT The DLL and MACROS have been developed with the technical assistance of Iczelion to help programmers porting their skills across to writing in pure assembler. ---------------------------------------------------------------------------- LICENCE The DLL and MACROS are available free of any charge whatsoever to any programmer who can use them. They retain the status of being private property and are not for sale or to be sold under any condition. DBMACROS.ASM & DBSHOW.DLL � Copyright S.L.Hutchesson 1998 Steve Hutchesson < hutch@pbq.com.au > Sydney Australia
评论
    相关推荐
    • C语言仿windows计算器
      C语言仿windows计算器,实现基本计算逻辑,适合初学者借鉴参考
    • C语言windows计算器 课程设计毕业设计
      C语言写的仿windows计算器,含C语言源代码,适合C/C++开发人员,计算机软件开发人员,及计算机专业课程设计及毕业设计。
    • C语言 windows程序设计 工具栏、滑动条、进度条练习
      看了一下MSDN,学习了滑动条和进度的操作。 这两个控件的使用比较简单的。会用就行了。 主要是设置大小和,获取大小,没有 什么的了。
    • C语言 windows程序设计 ToolBar工具栏的练习小作品
      这个控件就学了一点点的基基础,没有更多的去了解了,就MSDN上的资料都没有看完整,一开始就被TB_SETBUTTONSIZE这个消息搞晕了头, 现在就添加几个彩色的图片,充充样子,安慰一下自己。 工具栏的编写还是不难的。
    • C语言windows应用程序创建向导
      C语言windows应用程序创建向导,用它可以创建出windows应用的单文档窗口。 本向导可以减去重复键入代码的麻烦 2012级南阳理工学院 ID:爱逃课的学生 创建于2013.7.7.19.13 如果Link出错,请按以下步骤...
    • C语言 Windows程序设计,使用GDI自绘按钮、编辑框、贴图小练习
      C语言 Windows程序设计,使用GDI自绘按钮,编辑框,贴图小练习。 这些雕虫小技,在VB里面不知道有多少的简单。 在这里用C语言来写,是这么麻烦,这么麻烦。 真不知道有什么好处? 正事不干,专们喜欢干这种鸟事,...
    • C语言Windows API写的登陆启动程序 源码及工程整体
      C语言Windows API写的登陆启动程序 源码及工程整体 解压为63M VS2010编译
    • C语言Windows程序设计 机房收费管理系统源码
      在VS2013环境下,编写的C语言Windows程序设计,机房收费管理系统。代码仅仅使用C语言调用Windows API函数和MYSQL数据库专用库文件编写。有C语言基础的,简单易懂。代码没有优化,思路很清晰。没有省略的代码,我都...
    • C语言 WINDOWS程序设计 状态栏的创建方法
      在一个窗口中,创建一个状态栏,并把他分成2部分, 完成一个最简单的状态栏使用操作。 有这么一点功能就行了。至少我做到了。 以后就可以用在程序里,这种东西多做多练,就会熟练。
    • C语言Windows控件使用实例
      设计了Windows基本控件的使用,本程序使用C语言写的,主要是为了帮助大家理解这些控件的原理,同时为哪些想要学习C语言界面编程的人提供一些提示。MFC、C#的编程者也可以查看。里面的控件介绍包括TREEVIEW、Tab ...