当前位置:网站首页>Assembly language integrated development environment learning notes
Assembly language integrated development environment learning notes
2022-06-09 01:10:00 【irrationality】
0 Preface
Be careful : The file name cannot have spaces , After modification, you need to re create dos app The project can only run
This paper is suitable for 8086CPU Set of instructions .
For important professional basic courses , assembly language , It is necessary to do experiments , However, due to the defects of assembly language itself , Modern computers cannot run assembly language programs directly , therefore , Most teachers ask us
- Using virtual machines :VMware/VirtualBox–> install XP System
- Or install DOSBox
Preparation for these tasks , It is necessary for beginners , Can help you further understand edit --> compile --> link --> perform The process of , Here I give you DOSBox How to use : Use DOSBox Experiment with assembly language
however , If you keep editing assembly language this way , It is undoubtedly inefficient , therefore , We need to be like high-level languages , Use assembly language IDE To conduct assembly language experiments .
1 Software installation and configuration
1.1 Software download
We need two software :
- DOSBox
This software , I have already given it in the previous link , But how to use it , Will change , You just need to install this software , The installation path should not be in Chinese . - RadASM
Baidu search RadASM Chinese version , Download and install a software , Be careful : The installation path should not be in Chinese , Otherwise there may be problems
During installation , There may be this , Suggest Check all , There is nothing else to note .
1.2 software configuration
1.2.1 To configure RadASM
- Open the installation directory of the software , Open the following file in Notepad

- Then we find [DOS APP]

- Be careful 4, Here I have modified it , What you need to change is
0,0,and,5Middle part , Set it to DOSBox.exe The absolute path of
open DOSBox Installation position of , Paste it , Be careful to add \DOSBox.exe - Then save , close
- Baidu downloads one dubug.exe, Put it in the following directory , Be careful , The directory shown here is the installation location of the software

find masm32, open
find bin Catalog , open
And then debug.exe Copy the past
1.2.2 To configure DOSBox
open DOSBox Installation position , Open the following file , Open in Notepad
Drag to the bottom , find **\[autoexec\]**
Write two lines below , I've written it here
mount x [ As we just mentioned bin The absolute path to the directory ]
set PATH = %PATH%;x:\;
bin The absolute path of the directory is as follows :
Just now we entered bin Catalogue , Just copy it .
4. preservation , sign out
2 Write an assembly language experiment
2.1 Use a comfortable environment
- open RadASM Software

- Set font size


arrow 1, refer to Edit the size of the code , This is the most recommended modification , Modify it to the appropriate size , Like the arrow 2 Shown
arrow 3 If it is different from mine , Change it to mine , Otherwise, Chinese garbled code may appear .
2.2 Build an assembly project
file –> New project
The first step is to set up
choice Dos APP, Set the project name and locationKeep clicking next , Until you click finish , There is no need to modify
Open the assembly language source program , On the far right
Enter sample code , I found this code directly on the Internet , This is just for testing
What's shown here , That is, we just Change the font size , The default may be small , Need to change .
;Hello World
.MODEL SMALL
.DATA
STRING DB 'Hello World!',13,10,'$'
.STACK
.CODE
.STARTUP
LEA DX,STRING
MOV AH,9
INT 21H
.EXIT
END
again Hello World ha-ha
- function
Here I'll take you through the original process
We have finished the process The build process , obtain .asm file , Next is compile , obtain .obj file 
And then there was link , obtain .exe file , And then there was perform , It doesn't matter what the build is for , This is the function given by the software , It is roughly regarded as execution .exe File can .
in fact , We just need Ctrl+F5 Or click Build and execute You can run the edited program , Other steps can be done with one click ( As you know VS Compilers are like that )
Then you will get the following 
- Next is debugging
Here are two recommended methods
3 resources
Enclosed RadASM and debug.exe file
link :https://pan.baidu.com/s/1BsGo3eaUjVFSVw1OQ04X0A
Extraction code :hr2h
Copy this content after opening baidu network disk mobile phone App, It is more convenient to operate
4.1 8086CPU Simulator
Please search Baidu directly 【8086CPU Simulator 】, This software can be called 8086 Assembly language learning tool , It is much easier to use than other tools .
Be sure to pay attention to , It has been verified by my use ,8086 Simulator syntax detection is very loose , It is very different from the real machine , therefore , Writing this software is not recommended , You made a mistake. Maybe you don't know ! The program will correctly guess your intentions ……
4.2 32 position x86 Assembly language learning tools
There are more popular now 32 position x86 assembly language , Software is commonly used VS, I'll give you how to use it : Use VS 2017 Study 32 position x86 The method of assembly language .
【 Some of the pictures are from baidu】
边栏推荐
- Tencent cloud applies for free SSL certificate
- Getting started with PostgreSQL
- MySQL tutorial (basic part) Part 04: differences between mysqld and MySQL commands
- 【饭谈】自研测速平台 or 网上平台二次开发
- 华为机试第二十一题:HJ21 简单密码
- GO语言条件语句
- 矩阵 - 二维区域和检索 - 矩阵不可变,leetcode 304
- Introduction to opencv video processing
- 关于并发和并行,Go和Erlang之父都弄错了?
- Hu Jie: how to stabilize the usdd
猜你喜欢

扁平化登录form页面

Error Domain=NSCocoaErrorDomain Code=518 “The file couldn’t be saved because the specified URL type

Imitating the original theme source code of your sister / imitating the Tiktok mode set of pictures WordPress picture theme template

GPU rendering pipeline and hardware architecture

日志异常检测-机器学习

Uview - checkbox setting placement attribute row / column is invalid (the arrangement mode cannot be horizontal, but can only be vertical)

A life and death journey of 2000+ orders on the same day when there is no supply of idle fish!

机器学习简单理解过程,人脸识别基本步骤

香港证监会提示NFT风险

An analysis of SQL query optimization principle: 900w+ data, from 17s to 300ms
随机推荐
Dinner on the 68th day at home
[tgcalls] managers who track and debug calls
香港证监会提示NFT风险
From just entering the testing industry to doubling my salary: talk about my advanced testing experience, which is worth learning from
django mysql数据库(四)
STM32(X) SD卡协议详解
Ceiling of tumor heterogeneity research (stereoscopic space, single cell, multiomics)
Hu Jie: how to stabilize the usdd
Types and indicators of concurrent performance testing
MySQL tutorial (basic part) Part 05: MySQL data model and SQL language
Notes on supporting geo data mining live broadcast of Shengxin skill tree
A sharp tool to expose data inconsistency -- a real-time verification system
Web slider drag selection value slider plug-in
【牛客网SQL篇】非技术快速入门
About concurrency and parallelism, are the fathers of go and Erlang wrong?
扁平化登录form页面
机器学习简单理解过程,人脸识别基本步骤
Virus propagation simulation experiment 2- clear or coexist?
What is the correct way to start a thread?
Multiple registration methods for servlets