当前位置:网站首页>Basic knowledge of assembly language (2) -debug
Basic knowledge of assembly language (2) -debug
2022-06-25 01:14:00 【Day-3】
Basic knowledge of
Machine language is difficult to understand , And the length is long .
Assembly instruction is a writing format that is easy to memorize .
register : Simply put, yes CPU A device that can store data in .
Assembly language consists of three instructions :
(1) Assembly instruction : Mnemonics for machine codes , There is a corresponding machine code .( The core )
(2) Pseudo instruction : No corresponding machine code , By compiler , No corresponding machine code .
(3) Other symbols : Such as +、-、*、/ etc. , Recognized by compiler , No corresponding machine code .
Memory chips can be divided into two categories in terms of read-write properties :RAM( Ram ) and ROM( read-only memory ).
register
Different CPU, The number of registers 、 The structure is different .
General registers :AX、BX、CX、DX.
Physical address : Physical address = Segment address × \times ×+ offset
X Hexadecimal digits move one digit to the left , amount to × \times ×X
The segment address is stored in four segment registers CS、DS、SS、ES.
CS:IP Access address instruction .
jmp Instructions , modify CSip.
Debug
I installed a xp Virtual machine to achieve access debug Function of .
(1) use R Command view 、 change CPU The contents of the register .
We already know that AX BX CX DX CS IP These six registers , Now take a look at them .
Modify the contents of the register .
In this figure ,CS:IP Point to )0AE3:0100, The machine code stored here is 40, The corresponding assembly instructions are INC AX;
have access to r Command to cs and ip Make changes .
(2) use debug Of d Command to view the contents of memory
If we want to know 10000H The content of , have access to “d Segment address : offset ” To view .
The data in the middle is the content stored in each address , On the left is the starting address of each line , On the right is the data in each memory unit that can be displayed ASCII code .
(3) use debug Of e Command to rewrite the contents of memory
-e Then add the address , Plus the number to be modified , Number customization 
Or use -e You can also add addresses .
(4) use E Command to write machine code to memory , use U Command to view the meaning of machine code in memory , use T The command executes the machine code in memory .
-u Add address , Show assembly language ;
-t It can be done in one step .
边栏推荐
- Powerbi - for you who are learning
- How much commission does CICC wealth securities open an account? Is stock account opening and trading safe and reliable?
- 1. 封装自己的脚手架 2.创建代码模块
- adb shell getevent
- Bi-sql between
- 云开发技术峰会·公益编程挑战赛【火热报名中】!
- Introduction to bi-sql wildcards
- Super detailed description and derivation of convolution and deconvolution (deconvolution is also called transpose convolution and fractional step convolution)
- Using bindservice method to pause music playing
- 纹理增强
猜你喜欢

Scala IO reads by lexical units and numbers

生成订单30分钟未支付,则自动取消,该怎么实现?

Using macro code to generate handwriting automatically in word or WPS

Bi skill - judge 0 and null

LLVM TargetPassConfig

2022R1快开门式压力容器操作考题及答案
最新QQ微信域名防红PHP程序源码+强制跳转打开

4 ans d'expérience de travail, 5 modes de communication Multi - thread ne peuvent pas être décrits, vous osez croire?

Scala IO read by line

2022年起重机司机(限桥式起重机)考试题库模拟考试平台操作
随机推荐
期望与方差
2022安全员-C证考试模拟100题及在线模拟考试
mysql查询时间戳转换成日期格式
利用 Redis 的 sorted set 做每周热评的功能
Bi-sql - different join
How about compass stock trading software? Is it safe?
腾讯完成全面上云 打造国内最大云原生实践
LLVM TargetPassConfig
QT(35)-操作EXCEL-QXlsx-QAxObject
Scala sample class
15.线程同步的几种方法
2022 simulated 100 questions of safety officer-c certificate examination and online simulated examination
[redis realizes seckill business ③] specific implementation of optimistic lock for oversold problem
新手看过来,带你一次性了解“软考”
程序员:是花光积蓄在深圳买房?还是回到长沙过“富余”生活?
图片旋转移动缩放渐变
我想问一下兴业证券怎么开户?通过链接办理股票开户安全吗
adb shell getevent
4年工作经验,多线程间的5种通信方式都说不出来,你敢信?
中金财富证券开户佣金多少呢?股票开户交易安全靠谱吗?