当前位置:网站首页>[笔记]vs2015 编写汇编masm32之使用MASM32库
[笔记]vs2015 编写汇编masm32之使用MASM32库
2022-06-13 03:44:00 【二次元怪兽】
前言
环境搭建
MASM32
下载地址:http://www.movsd.com/masm32/masm32v11r.zip
MASM32是一个免费的软件包,该软件包中包含了汇编编译器ml.exe、资源编译器rc.exe、32位的链接器link.exe和一个简单的集成开发环境(Intergrated Development Environment,。IDE)QEditor.exe。
为什么说MASM32是从其他产品集成出来的呢?
这是因为软件包中的ml.exe来自Microsoft的MASM软件包,rc.exe和link.exe则来自Microsoft的Visual Studio.MASM32软件包还包括了详尽的头文件、导入库文件、例子文件、帮助文档和一些工具程序,如lib.exe和dumpbin.exe等,后者被大家公认为最好的显示PE文件结构的工具。
大家可以从网站htp:/www.masm32.com/上获得MASM32SDK的最新版本,并可以在论坛里与来自世界各地的汇编爱好者交流技术和思想。
安装过程
https://www.jianshu.com/p/e082912ef8ef
双击install.exe 选择D盘 便会安装到D:\masm32
运行代码
我们这里选用vs开发,只需要添加依赖库即可
vs2015 创建空项目
参考:https://blog.csdn.net/qq1113673178/article/details/122555320
配置include

配置lib

运行代码
;------------------------
; 我的第一个基于WIN32的汇编程序
; 戚利
; 2006.2.28
;------------------------
.386
.model flat,stdcall
option casemap:none
include windows.inc
include user32.inc
include kernel32.inc
includelib user32.lib
includelib kernel32.lib
;数据段
.data
szText db 'HelloWorld',0
;代码段
.code
start:
invoke MessageBox,NULL,offset szText,NULL,MB_OK
invoke ExitProcess,NULL
end start
报错 A2026 constant expected winextra.inc
https://blog.csdn.net/DongMaoup/article/details/120471110
运行结果

边栏推荐
- Lambda终结操作查找与匹配findAny
- 【 développement d'essais 】 sélénium d'essais automatisés (Ⅲ) - - analyse du cadre unitest
- Fundamentals of robot obstacle avoidance system
- Summary of meeting between president Ren and scientists and experts in system engineering
- Understand the difference between reducebykey and groupbykey in spark
- LVS四层负载均衡集群(4)负载均衡的主要方式
- 微信扫描二维码无法下载文件的解决办法
- LVS 4 - tier Load Balancing Cluster (3) Cluster Function Classification - HPC
- [test development] blog system - LoadRunner performance test (publish blog function benchmark test)
- 【測試開發】自動化測試selenium(三)——unittest框架解析
猜你喜欢

Spark optimization - Performance (general performance, operator, shuffle, JVM) tuning

【测试开发】测试的相关基本概念

LVS四層負載均衡集群(5)LVS概述

MapReduce internal execution principle

Fundamentals of robot obstacle avoidance system
![[multithreading] what is multithreading in the end -- the elementary level of multithreading (review for self use)](/img/87/71111f1753b8b183f60705177bfc57.png)
[multithreading] what is multithreading in the end -- the elementary level of multithreading (review for self use)

单片机:A/D 和 D/A 的基本概念

Field * doesn't have a default value problem

【测试开发】博客系统——Loadrunner性能测试(发布博客功能 基准测试)

【测试开发】用例篇
随机推荐
微信扫描二维码无法下载文件的解决办法
Two Chinese vector map data with map review number
单片机:Modbus 通信协议介绍
LVS四层负载均衡集群(6)LVS工作模式
V-bind and v-on
Fundamentals of robot obstacle avoidance system
LVS四层负载均衡集群(3)集群功能分类 - HPC
Spark optimization - Troubleshooting
Lambda终结操作count
Review the first three IO streams
单片机:D/A 输出
Explain usage, field explanations, and optimization instances of MySQL
Mobile communication exercises
Understand the difference between reducebykey and groupbykey in spark
Alipay open platform
Simulink code generation: simple state machine and its code
Goframe day 4
单片机:NEC 协议红外遥控器
LVS四層負載均衡集群(5)LVS概述
Big Five personality learning records