See this blog for the environment: https://blog.csdn.net/qq_41813208/article/details/104418974
Always used masm compiler, link linker, debug debugger, decompilation
Assembler source code 1.asm
assume cs:codesg
codesg segment
MOV AX,4E20H
ADD AX,1416H
MOV BX,2000H
ADD AX,BX
MOV BX,AX
ADD AX,BX
MOV AX,001AH
MOV BX,0026H
ADD AL,BL
ADD AH,BL
ADD BH,AL
MOV AH,0
ADD AL,BL
ADD AL,9CH
codesg ends
end
Enter dosbox
The first step is to compile 1.asm source code production 1.obj
Execute code through masm.exe file: masm.exe 1.asm compile to generate 1.obj file
The second step is to link 1.obj file to generate 1.exe executable file
Generate 1.exe program through link.exe 1.obj command
The third step debugging procedure
Debug 1.exe program through debug.exe
The whole process