-
MOV AX, 1000H Give 1000H to AX
MOV DS,AX Because the data cannot be directly given to the segment register, the data needs to be assigned to the general-purpose register AX first, and then the general-purpose register AX is assigned to the segment register DS
mov ax,[0] This means that the data segment is 1000, and the word unit data (two bytes) with the offset address 0 is taken out and assigned to ax, that is, the unit data corresponding to the offset address 0 and 1 (one byte per unit data bit).
mov bx,[2] This means that the data segment is 1000, and the word unit data (two bytes) with offset address 2 is taken out and assigned to bx, that is, the unit data corresponding to the offset addresses 2 and 3 (one byte per unit data bit).
mov cx,[1] This means that the data segment is 1000, and the word unit data (two bytes) with the offset address 1 is taken out and assigned to cx, that is, the unit data corresponding to the offset addresses 1 and 2 (one byte per unit data bit).
add bx,[1] This means to take out the word unit data (two bytes) with the offset address of 1, that is, the unit data corresponding to the offset address 1 and 2 (one byte per unit data bit), and then bx=bx+ the word unit data taken out.
-
Wang Shuang's book is 16.
In the future, you can try the Windows compilation below.
Recommend Luo Yunbin's 32-bit assembly language programming in the Windows environment".
-
Windows 32-bit assembly language programming is not just about looking, it's about writing so you can make rapid progress.
-
If you are a beginner in programming, you have only learned the book of Mr. Wang Shuang.
It is recommended that you read the first 5 chapters of Tan Haoqiang's C language textbook next, and with the knowledge of these 5 chapters, you can further study Luo Yunbin's win32 compilation book.
-
You can take a look at Yu Yuan's book on self-made operating systems to implement the content of the first four or five chapters. It is possible to make a more complete application of the assembly.
Of course, it requires a certain level of familiarity, but it is not very deep.
-
Are you sure you have really finished reading Mr. Wang Shuang's book, if you want to be proficient in compilation, it is recommended that you study Mr. Wang Shuang's book several times, do a good job in each of the above questions, every course design, and then consider the next step when these are done.
-
Hello, glad to answer for you.
When you're done reading the book, you need to understand what it's saying.
When you understand what the book says, then you are ready to compile.
Next, it's to go to the forum, and then do it yourself more, remember. Be hands-on.
Keep practicing repeatedly, find a forum to ask if you don't understand, and then ponder by yourself.
Once you've started, it's time to get hands-on yourself.
-
Tsinghua University 8086x8088 assembly language design.
--Introduction to Assembly Language by Wang Shuang.
8086x8088 assembly language design improved.
-
I suggest you read Intel Assembly Language Programming, the latest version of this book is the fifth edition, but there is only a fourth electronic version on the Internet. This book is a must-see book from 16-bit assembly to 32-bit assembly, and after reading it, you can read Luo Yunbin's "32-bit assembly language programming under windows", the latest version of this book is the third edition (the third edition is called "Stone into a device - 32-bit assembly language programming under windows"), there is only the electronic version of the second edition on the Internet, but it is said that the third edition has changed, and it is completely okay to see the second edition. This book can be said to be a classic of 32-bit under Windows.
over
-
8 2 to the 3rd power;
1kb = 2 to the 10th power b;
8x1kb = 2 (3+10 13) power;
So the result is 13
-
The principle is that the nth power of 2 is equal to 8192, and n=13. Thank you!
There are four segments in it, which are A, B, C, and Code. >>>More
Assembly language can be said to be machine language, and what deals directly with hardware is to transform computer language into 1001 that machines can recognize. It's not going to go out of style, at least not for this decade. It's mostly about the hardware side though. >>>More
There are several books on the market called "IBM-PC Assembly Language Programming". >>>More
The latter instruction is div bx, indicating that you are doing 16-bit division, then the default dividend is [dx,ax], where dx is the higher 16 bits of the dividend, ax is the lower 16 bits of the dividend, and in fact your dividend is only stored in ax, then the high position of the dividend should be cleared to zero, for example, if you want to calculate 72 8, but the dividend must be 4 digits, so should your dividend be written as 0072? >>>More
As long as you don't develop hardware drivers, then Xuexue 8086 assembly is enough. The main purpose of learning compilation is to make you understand how the underlying computer works. It's not really about making it so that everyone can learn to program with it.