This article focuses on how to display the actual data in the memory. First, let's take a look at how the Assembly is implemented. The next step is to implement it using Cobol.
000000 00000 00100 1 main csectR: C 00000 2 using *, 12000000 90ec
Data transmission instructions
── ─
They transmit data between the storage and registers, registers, and input/output ports.
1. General Data Transmission commands.
MoV transfers words or bytes.
Movsx first extends the symbol and then transmits
Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
.
386
. Model flat, stdcallOption
Casemap:
None include C: \ masm32 \ include \ windows. Inc include C: \ masm32 \
The operand of the assembly instruction can be the data in the memory. Addressing the memory is how to make the program obtain the required data correctly from the memory.
Intel's CPU can work in two addressing modes: real mode and protection mode.
Some people always say that the door is not as refined as a door. I don't know whether this is true or not. I feel like a young man in martial arts. I always want to learn all the martial arts in the world, but I will be fascinated at the end.
I
For anyone familiar with C language, the itoa function is certainly not unfamiliar. Itoa is a widely used non-standard C Language extension function. Its function is to convert any type of numbers into strings.To make it clearer, let us know how to
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)=================
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.