TC is an efficient and optimized C compilation program developed by BORLAND on an ibm pc. It comes with an efficient full-screen editing program, in the integrated development environment, you can complete the editing, compilation, connection
Read a lot of articles about the Uboot analysis class, which mentions running the stack for the C language. And in Uboot start. S assembly code, about system initialization, also see the stack pointer initialization, that is, correctly to the stack
Write the operating system to a floppy disk and open the operating system in a floppy disk boot. Reboot the computer, boot the existing operating system, and display and set the clock (the so-called operating system). The debug phase is completed
f$ of Imitation (DOS7.1). EXE (>512m mode run), P_quest's p$. ExeThis article is based on 486DX2, motherboard, can be with primary (boot)/secondary control IDE 2, Interrupt 14/15, each IDE, can bring master (boot, cable)/slave (cable) (jumper
It is recommended that you use the MASM for EditPlus to test.
As "prevent the program multiple start" in the article said, when already knew own instance in the running, in order to save resources, the next instance needs to exit, but the user
1. Place the Lrvine folder in the installation directory of Microsoft Visual Studio 9.0. Mine is D:\Program Files\Microsoft Visual Studio 9.0\irvine
2. Open the Microsoft Visual Studio 9.0\vc\vcprojects directory, join ASM Project.ico and ASM
First, thumb instructions and arm instructions
The thumb instruction is 16 bits, so the storage code is highly dense and saves storage space. But the function is not complete, it is only the arm instruction (32 bit) set supplement, is a subset
Author: Sandy Original works reproduced please indicate the source"Linux kernel Analysis" MOOC course http://mooc.study.163.com/course/USTC-1000029000 "Experimental environment: C+linux64 bit (32-bit system may result in different)In accordance with
Here is a small program hdsn32.asm, I wrote in 2000, read the serial number of the hard drive under Win9x, it took advantage of similar CIH virus method to obtain RING0 permissions, under the Win2000 can not run.
; Hdsn32.asm
.386
. Model flat,
1. GeneralProgramAll are relocable. The addresses of variables or functions are recorded with relative addresses. After the address of the variable is linked, you can determine the relative location. After loading, you can determine the absolute
0f92: 0100 mov ah, 1; select dos API 01h Function
0f92: 0102 int 21 h; call 21h interrupt wait for keyboard input
0f92: 0104 mov CX, 8; 8 digits need to be processed
0f92: 0107 mov BH, 80; BH registers are placed into B
0f92: 0109 mov DH, Al; DH
0f92
Assembly Language and CPU, memory, port, and other hardware knowledge are connected. This is why the assembly language is not universal. The following is a brief introduction of basic knowledge (for intel X86 and compatible machines)=================
Assembly Analysis of advanced language programs
In advanced languages, such as C and Pascal, we do not directly operate on hardware resources, but solve problems. This is mainly reflected in data abstraction and program structuring. For example, we
At school, I got to know assembly language by chance, but I chose VC ++ when I was looking for a job. But now, I still have a hard-to-give-away feeling for compilation. Although I am working on C #, compilation is the most influential thing to me.
Method 1
MoV eax, 0MoV EBX, 0MoV ECx, 0MoV edX, 0
Method 2
XOR eax, eaxXOR edX, EDXXOR ECx, ECxXOR edX, ECx
Method 3
Hmm... yep, here the stall is partially balanced by the non-change of the source argument (a work/branch avoided by the CPU),
; Function: accelerate the operation of a floppy disk.
; Source: Software news, 1995, book 60
Author: Lu Jun, Chengdu (purple endurer corrected a location where the program could not be compiled)
; Principle:
We all know that the disk cannot be
Is there such a flash when I see this question? I have also seen replies from many people:
"Can assembly be object-oriented? Isn't it only available in advanced languages ."
"Oh, my God. If we even have ASM, it would be totally crazy"
"Someone
I recently learned CompilationProgramWang Shuang's Compilation Program, after some efforts, finally achieved the first curriculum design, establish a document as evidence, casuallyCodeThe write is poor, but the function is finally implemented.
I.
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.