Assembly debugging

Publisher:CelestialLightLatest update time:2022-10-20 Source: csdnKeywords:Assembly Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

debug debugging tools

View the contents of various registers in the CPU


r

Insert image description here

Modify the contents of the register through the r instruction


r register

Insert image description here
Insert image description here

View the contents of memory

d

Insert image description here

d segment address: offset address

Insert image description here
Insert image description here
Insert image description here

View the contents of offset address 0~F


d segment address: offset address F

Insert image description here

View the contents of offset addresses 0~9


Segment d address: offset address 9

Insert image description here

View the contents of offset address 100~10F

Insert image description here

View the contents of offset address 500~50F

Insert image description here

View the contents of offset address 100~25F

Insert image description here

Translate subsequent bytes into assembly instructions

u

Insert image description here

u segment address: offset address

Insert image description here

u segment address:offset address F

Insert image description here

Write instructions in memory unit

a

Insert image description here

Write assembly instructions from the offset address location in the specified segment address


a segment address: offset address

Insert image description here

Rewrite the contents of memory

Note: After each data input, press Space to input the next data, and press Enter to indicate the end of input.


e segment address: offset address

Insert image description here

Each character corresponds to an ASCII code value, and the corresponding character is displayed by entering the ASCII code value.

Insert image description here

Display the corresponding ASCII code value by entering characters


e segment address: offset address "character"

Insert image description here

Execute assembly instructions

Each time the t instruction is used, one line of assembly code can be executed.


t

Insert image description here


Each time the g instruction is used, the previous assembly instructions to be executed can be skipped. By default, the previous assembly instructions have been executed once.

Instruction format:


g offset address

Insert image description here

Insert image description here


Keywords:Assembly Reference address:Assembly debugging

Previous article:Use of data segment register DS
Next article:Assembling unconditional branch and procedure call instructions

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号