Compilation of a study summary (10.27)

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/liming0931/article/details/102771434

Today, learning online compilation of video tutorials, very good, it is possible according to Wang Shuang himself, said that his "assembly language" is the classic data, the reason is to learn the underlying computer would like to know is how to run, not to say bring embedded assembler to do, because the compiler has been much stronger than us.


The idea is to learn assembly a few days ago saw "c language standards and implementation" of the appendix which referred only compilation of knowledge, they still learn about and help their family computer internal strength, the Internet also has said that the third chapter is about assembly language csapp , that time can be used to look.


On hand basically win10 system, 64-bit, and 32-bit assembler tutorial basically, and are not compatible, use only the virtual machine or dosbox to emulate x86 platform, used dosbox before him, followed this tool.


Download this tool very good, the official website instantly, installation is simple.


Compilation tools, mainly masm, this is Microsoft's own, nasm assembler tool is open source. Can run under linux and Windows, it is currently known to have tutorials on almost nasm, mainly about the association and c language, learning under linux. The video tutorial Proportion, is masm + debug.


Learning how to compile.
1, dsosbox automatically mount, you can achieve this function after configuration.
2, into the system, the asm file into the same directory under masm.
. 3, MASM xx.asm
. 4, Link xx.obj
. 5, to run the transport xx.exe


debug use
-u See Encoding
-r See register value
-a assembler instruction is written 
-t execution


Currently learned three buses: an address bus, a control bus, a data bus
mouse port and keyboard port cpu communicate using input out
of memory: memory comprising a memory


Write data is actually written to the register the data, then control cpu, thereby displaying the cpu control, data calculation
time register for compatibility with previous program instructions, and so are 16-bit AX, ax = AH + A, calculated to the data width all the time, otherwise it will go wrong.
masm use version 5.0 can be, anyway, with dosbox simulation.

Guess you like

Origin blog.csdn.net/liming0931/article/details/102771434