Nineth Chapter Advanced Assembly Language Technology
Macro compilation
Repeating assembly
Conditional compilation
Macro compilationMacro and Macro Directives macro definition, macro invocation, Macro expansion macro definition parameters local pseudo action using macro list in macro definition establishment and invocation of purge pse
1. The assembly language source program has two kinds of instructions, a assembly instruction, a pseudo-directive.2. The assembly instruction has the corresponding machine instruction, finally executes for the CPU3. The pseudo-directive does not have a corresponding machine instruction, which is executed by the compile
Compilation relatedSome common things about the assembly, including:ASCII Code character table debug command BIOS function call table DOS function call table assembly language error message form ASCII code character sheetDebug commandBIOS function Call tableDOS function call tableassembly Language Error Information tab
C Language Inline compilationvoid Main (){Char ps[20] = "aaaaaaaaaa\n";Char *p1 =ps;Rewrite the following 2 lines of code with assembly statementsPs[3]= ' B ';printf (PS);} //equivalent notation 1: Void Main () { Char ps[20] = "aaaaaaaaaa\n"; Char *p1 =ps; Hmodule hmod =getmodulehandle ("Msvcr90. DLL "); if (hmod) { PVOID pfun =getprocaddress (hmod, "printf"); if (Pfun) { __asm { //P1 is the memor
This is my sophomore time in the assembly language course design. I am satisfied with what I have done. Now take it out and show it to everyone. I've changed some of the code again. The size of the compiler is a bit larger than the original, but the speed is up. is actually a graphical interface. As long as you add your own practical function in the middle, you can use it directly. I have annotations to the
consistent with add 2. With borrow subtraction command: SBBFormat: SBB opd,opsAction: OPD = OPD-OPS-CFConsiderations are consistent with the ADC 3. Minus 1 Instructions: DEC and Inc agree 8. Request for compensation: NEG1. You take the reverse, plus 1 at the end.2. To complement an operand, the equivalent of 0 minus the operand3. Continuously complements an operand two times, its value is unchanged4. In addition to 0 (cf=0), cf=15. Complement the positive complement to its negative compl
, I believe that will be harvested. NASM the link that generates obj can use ALink.
3.FASM
FASM (flat assembler) is a purely in assembly language, and the use of the development of the technology of the compiler, FASM the biggest advantage is that no additional link steps to generate the executable file directly, there is no trivial pseudo command, So the written code looks very clean. In addition, using F
dx cmp dh,win_lrr jbe KK Dec dh kk:dec dh; After the roll up, DH with the self-reduction mov bh,0 mov ah,2 int 10h push DX jmp Next------------------------------------------handle line break--------------------en Ter:mov ah,3 mov bh,0 int 10h inc DH mov DL,WIN_ULC mov bh,0 mov ah,2 int 10h jmp Get_char ;-----------------------------------------cursor up-----------------------shift:mov ah,3 mov bh,0 int 10h Dec DH CMP dh,win_ulr jge S inc DH S:mov bh,0 mov ah,2 int 10h jmp get_char;------------c
The MOV instruction is a dual-operand instruction and cannot be fully memory-operated in two operandsFormat: MOV dst,srcPerform action: DST Note:1. The destination number can be a universal register, a memory unit, and a segment register (but not a CS segment register).2. Immediate number cannot send segment register directly3. Does not allow data to be transmitted directly to two storage units4. No direct transfer of information between two segment registers is allowedAssembly
Differences between compilations and high-level languages:first of all, assembly language directly corresponds to machine languages , different types of computers can not be compatible. Some of the high-level languages are high- level languages for object-oriented (users, etc.) developed in machine language. Second, the main features of
the world's top bull and Google's strong commitment to support, And after our group of love toss the yard of the full test and testing to confirm, why not. As the saying goes, it is not our blind adventures to make decisions with Go, but the clear conclusion that we first ate crabs a few years ago and have been tested by practice.
When using Go language programming, in addition to the official website publicly accessible documents, can refer to a v
Use a linked list to implement address book and language learning address book
The main function of this program is to add, delete, search, insert, and display contact information.
(Call the linked list operation interface, please refer to: http://blog.csdn.net/qlx846852708/article/details/43482497)
Here is the detailed implementation process of the linked list o
Linux Assembly Language Development Guide 1-Linux general technology-Linux programming and kernel information, the following is a detailed description. Linux Assembly Language Development Guide
The advantage of assembly language
Turn from: Uboot in Start.s Source code of the instruction level of the detailed analysis Green-wasteWhy the C language (function call) requires a stack, and assembly language requires a stackBefore looking at a lot of uboot analysis, which has said to the C language to run, ready to stack.And in Uboot's START.S
My earliest contact with assembly language can be traced back to the Yue Hing Learning machine that a burst. At that time, Yu Hing in the introduction of floating-point basic and Game basic is not fun, feel can also dig deeper into the potential of the machine, resulting in the introduction of 6502 assembly language di
C-language and assembly language mutual invocation principle and example 1. PrincipleIn fact, whether it is the C language or assembly language want to do is the final compile link to become a binary file.It is important to make s
I. StatementAlthough most of Linux's core code is written in C language, some of them are inevitably written in assembly language. Some assembly language code is directly written in the Assembly source program, especially the Linu
The main description of the three aspects of the content: the first is the assembly language program template, and the template involved in some of the knowledge points; the second is how to debug assembly language, and the third is how to call C library function in assembly
C language books. What, C language? Some readers are wondering. Yes, this time the main character is the C language that was born in 1973 and is now full of children and grandchildren. The reason we want to talk about C is not only because of its profound influence, but it can be proved by the prosperous development of the C-series
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.