times 1M 2 is 30 times is 1G 2 32 is 4G
The stack- related stack is where we temporarily store the data in the stack operation two, the stack and the stack. * * The address of the stack is reduced, and the address of the stack is added. The stack is manipulated in words (2 bytes) * *.Also note the distinction:arm's word is 32 bits.
486 Seven data types unsigned binary number signed binary number floating point BCD code string ASCII pointer data
Addressing method immediate number addressingThe
This problem algorithm describes:
hexadecimal conversion to binary is the expansion of each bit:
such as 1234H expansion: 0001 0010 0011 0100
1.bx:0000 0000 0000 0000
2. Enter a legal number to convert to 0000b~1001b or to: 1010b~1111b
3. Merge with BX
4.BX shift left four bit
; receives a four-bit 16 binary number from the keyboard and displays its equivalent b
The difference between the assembly instruction and the machine instruction is in the representation method of the instruction. Assembly instruction is a written form of machine instruction that is easy to remember. Assembly instructions are mnemonics for machine instructions. Register: A device in the CPU that can store data, with multiple registers in one CPU. AX BX is the code name of the register. Assembly language consists of the following three
1. Where is the data processed?2. How long is the data?The following reason Reg represents register, Sreg represents segment registerReg has: Ax,bx,cx,dx,ah,al,bh,bl,ch,cl,dh,dl,sp,bp,si,diSreg are: Cs,ds,es,ss8.1 Bx,si,di and BP1) [...] Only use these 4 kinds of registers, others can not2) Only the following combinations can be used, others may not[Bx],[bp],[si]
In the CPU, programmers can read and write commands only by using registers. programmers can control the CPU by changing the content in the registers.Where the CPU executes commands is determined by the content in Cs and IP addresses. programmers can control the CPU to execute the target commands by changing the content in Cs and IP addresses.
How can we change the value of CS and IP addresses? Obviously, the 8086cpu must provide corresponding commands. How do we modify the value in ax? You can
Four data registers (eax, EBX, ECx, and EDX)2 address changes and pointer registers (ESI and EDI) 2 pointer registers (ESP and EBP)Six segment registers (ES, Cs, SS, DS, FS, and GS)1 Instruction Pointer register (EIP) 1 flag register (eflags)
1. Data RegisterData registers are mainly used to save information such as the operands and operation results, thus saving the time required to read the operands by occupying the bus and accessing the memory. The 32-bit CPU has four 32-bit General registers
with [Si] and ends with 0; Return: NoneLetterc:MoV CH, 0
S_letterc:MoV Cl, DS: [Si]Jcxz end_letterc; ends when the byte is 0.
CMP Cl, 61 HJB s0_letterc; smaller than 61CMP Cl, 07ahJa s0_letterc; greater than 7A
Sub Cl, 20 hMoV DS: [Si], ClS0_letterc:INC SiJMP short s_letterc
End_letterc:RET
; Name: show_strFunction: Specify the position and color to display a string ending with 0; Parameter: (DH) = row number (0--24), (DL) = column number (0--79); (CL) = color, DS: Si points to the first addres
Copy codeThe Code is as follows :#! /Usr/bin/perl
# Use strict;
Open (FILE1, "C:/Perl/BX/BX-Users.csv ");
Open (FILE2, "C:/Perl/BX/BX-Books.csv ");
Open (FILE3, "C:/Perl/BX/BX-Book-Ratings.csv ");
Open (result1, "> C:/Perl/
elementary Programming
If you have not copied the wrong question, it will be okay.1 B2 B3 C // It must be C. The first println is commented out.4 F56 C7 C8 B9 B10 B11 D12 B13 C14 D15 C//////////////////////////////////////// ////// 1Public class BaiduTest {Public static void main (String [] args ){System. out. println (add (6, 2 ));System. out. println (sub (6, 2 ));System. out. println (mul (6, 2 ));System. out. println (div (6, 2 ));}Public static int add (int x, int y ){Return x + y;}Public
compiler executes commands sequentially.
5. WriteCodeTo add the data in segment A and segment B in sequence and save the result to segment 2.
Assume Cs: Code
A segment
DB 1, 2, 3, 4, 5, 6, 7, 8
A ends
B segment
DB 1, 2, 3, 4, 5, 6, 7, 8
B ends
C segment
Db 0, 0, 0, 0, 0, 0
C ends
Code segment
Start:
MoV BX, 0
MoV CX, 8
S:
MoV ax,
MoV ds, ax
MoV DL, [BX]
MoV ax, B
MoV
same time.
1.2-paragraph mechanism compilation
? The effect of the segment mechanism on assembler programmers is discussed from a purely hardware perspective:
x86 address mode register indirect addressing modes:
The 80x86 CPUs let you access memory indirectly through a register using the register indirect addressing modes. There is four forms of this addressing mode in the 8086, best demonstrated by the following instructions:
mov [bx
byteDW 0; EnvironmentPrm2 EQU this wordDW 0; Command Line-ip CSDW 0PRM3 equ This byteDW 0; Default Fcb-ip CSDW 0PRM4 equ This byteDW 0; Second default FCB-IP CSDW 0P010:XOR Ax,ax; Get PSPMOV es,ax; Es=0MOV bx,ds; Save DSMOV ds,ax; Ds=0CliPush Ds:[basicds]; Save Basic ' s DSPush DS:[I24IP]; Save int 24h and ShadowPush Ds:[b24ip]Push Ds:[b24ip]Pop Ds:[i24ip]Push Ds:[i24cs]Push Ds:[b24cs]Push Ds:[b24cs]Pop ds:[i24cs]Push DS:[I1BIP]; Save int 1bh and
that the logic or operation of the idea is: the same position as long as there is a true result is true, other cases result is false. Scenario: For example, if you want to change the 2nd bit of a binary number from No. 0 digit to 1, make it logical OR operation with 00000100B
3, in the assembly, we can use a pair of single-quote package form to indicate that the data is given in the form of characters, such as:dw ‘fork word‘mov ‘a‘4, in assembly language, you can use [
mov and add instructions
Assembly Instructions
Control what the CPU is doing
Formal syntax description
mov ax, 18
Send 18 to Ax
(AX) =18
mov Ah, 78
Send 78 to AH
(AH) =78
Add Ax, 8
Add 8 to the value in AX
(AX) = (AX) +8
MOV ax, bx
Send data in BX to AX
(AX) = (
the length of the program is missing, second, the code at the beginning of each section of the program is always different from that of the source program after disassembly, which indicates that some additional code is generated between the two sections, causing the anti-assembler to be cheated. The following two pieces of code: the code on the left is the section at the junction of the 16-bit part and the 32-bit part in the source program, the code on the right is the disassembly code at the s
parameters:Al = default drive letter (0 = A, 1 = B, 2 = C ,...)
Ah = 1aFunction: sets the DTA address.Call parameters:DS: dx = DTA address
Ah = 1bFunction: obtains the default drive fat information.Response parameters:Al = number of sectors per clusterDS: BX = fat ID byteCx = physical sector sizeDX = number of clusters on the default drive
Ah = 1cFunction: obtains the fat information of any drive.Call parameters:DL = drive letterResponse parameters:S
Http://www.hack86.com/read.php? Tid-20788.html
# Include "graphics. H"
# Include "stdlib. H"
# Include "stdio. H"
# Include "fcntl. H"
# Include "Dos. H"
Union regs R;
Struct mouse {
Int getit;
Int x1;
Int Y1;
Int X2;
Int Y2;
} MS;
Void MSB (float, float, Int, INT );
Void mouse_drop (struct mouse * In );
/* Define the mouse drag function, and select a rectangular area by pressing and opening the mouse */
Int data_processor (struct mouse M, float * x0, float * X1, float * y0, float * Y1 );
/* Con
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.