computer. 8086 there are 8 8-bit data registers, these 8-bit registers can be composed of 16-bit registers: Ahal=ax: Cumulative register, commonly used in operations; BHAMP;BL=BX: base register, commonly used for address index; CHAMP;CL=CX: Count register, commonly used for counting ; DHAMP;DL=DX: Data registers, commonly used for data transfer. In order to use all memory space, 8086 set four segment register, dedicated to save segment address: CS (c
move boot here- outThe the the-the-Bootsect is moved here setupseg =0x9020! The setup starts Here Setup program starts here Sysseg =0x1000! System loaded at0x10000(65536). The system module is loaded into0x10000(64KB) at endseg = sysseg + syssize! Where to stop loading stop loading the segment address! Root_dev:0x000-same type of floppy as boot. Root filesystem device and boot use the same floppy drive device!0x301-First partition on primary drive etc root file system device on first hard disk
Al = 8-character 1.0Auxiliary output 04 H Ah = 04 h dl = character 1.0Printer output 05 h Ah = 05 h 1.0DL = character── ─5. Disk Functions── ─Refresh disk buffer 0dh Ah = 0dh 1.0 see function 68 h── ─Select disk drive 0eh Ah = 0eh DL = drive Id Al = system drive letter1.0 for dos3.0 and later versions, Al> = 05 h── ─Obtains the current magnetic field.Disk No. 19 h Ah = 19 h Al = drive ID 1.0── ─Set the DTA address 1ah Ah = 1ah DS: DX → DTA segment: displacement 1.0── ─Take the default drive inf
8080 Assembly manual 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 it.Movzx is zero-scale and then transmitted.Push pushes words into the stack.Pop pops up the word stack.Pusha pushes ax, CX, dx, BX, SP, BP, Si, di into the stack in sequence.Popa pops up the Di,
Compilation of getting started Study Notes (6) -- si, di, Dual Loop, compilation of si
Getting started with crazy summer vacation Study Notes (6) -- si, di, dual cycle
Reference: Chapter 7th of Assembly Language
1. and or commands, and [bx + idata]
And or.
[Bx + idata] This can be written. In some cases, it is more convenient.
[Bx + idata] can also be written as idata [bx]
For example, replace 'abcde' and 'fghig' with uppercase letters (uppercase and lowercase letters in ASCII are only
clear these 3 points, or to give an example of better, this example I will step-by-step improvement (because I am also 1.1 points to explore out, if there is wrong, you can rest assured that the spray, I will and you in the end of the debate, hehe)Now let's say you find a new job and take over the classes written by one of the previous programmers, as follows:///Old.h: This is the class you receive // #include #include #include //5 are file, DB,
);//------------------------------------------------------------------// First record the button size without text// Csize notextbuttonsize; defined in the header fileCrect rect;M_wndtoolbar.getitemrect (0, rect );Notextbuttonsize. Cx = rect. Width ();Notextbuttonsize. Cy = rect. Height ();
// Set toolbar button textFor (INT I = 0; I {Cstring strtext;Strtext. loadstring (m_wndtoolbar.getitemid (I ));Int J = strtext. Find ("/N ");If (j> = 0){Cstring
One. Change in size and position
1. First add the CRect m_rect for the form class, which is used to record the current size of the form.
2. In the Class Wizard (Ctrl+w), add the message wm_size response function OnSize () to the form;
Note if (ntype==1) return; This sentence must be added, otherwise the minimum recovery will be an error.
void Cpapermanagementdlg::onsize (UINT ntype, int cx, int cy) {cdialog::onsize (ntype,
ClickTale
ClickTale says they are implementing "In-page Web Analytics" (compared to other analytics software, which mainly considers changes between pages). Similar to the crazy egg, there are also data related to keystrokes, mouse scroll bars, and mouse movement trajectories.
http://www.clicktale.com/
4. Let your visitors tell you what you missed on the page!
Google Talk Chatback
http://www.google.cn/search?client=aff-cs-worldbrowserforid=1ie=utf-8oe=utf-8hl=zh-cn Q=google+talk+chatbac
One. Both size and position change1. First add CRect m_rect to the form class, which is used to record the current size of the form.2. Inside the Class Wizard (Ctrl+w), add the response function of the message wm_size to the form onsize ();Note if (ntype==1) return, this sentence must be added, otherwise the error will occur when the restore is minimized.[CPP]? View Plain Copy
void ? Cpapermanagementdlg::onsize (UINTnType,? int ? CX,? intcy)???
[Reprint] study on how nt loads ntldr nt guidance 1
Http://forum.eviloctal.com/thread-17505-1-1.html
Source: www.hackart.org
Author: windy men
The operating system boot process is as follows:1. the BIOS reads the MBR to 0000: 7c00 and submits the execution permission to the MBR.2. MBR identifies partitions and reads dbr0000 with boot permission: 7c003 DBR: locate ntldr and read ntldr into memory at. ntldr is 32-bit and loaded into the kernel. The following is the code analysis in step 1 of the
The size of the MFC control varies with the size of the form.
This article will share with you the methods and sample code for using VC ++ to adjust the widget Size Based on the dialog box size. For more information, see.
I. The size and position change.
1. First, add the CRect m_rect for the form class. This member variable is used to record the current size of the form.
2. In the Class Wizard (Ctrl + W), add the response function OnSize () for the message WM_SIZE to the form ();
Note that if (
3.3 x86 Command System3.3. 1 data transmission instructions
1. General transfer commands(1) mov commandFormat: mov DST, SRCFunction: Send the content of the source operand SRC to the destination operand DST.(2) movsx signed extended transfer command (after 386)Format: movsx DST, SRCFunction: (DST) compliant with the extension (SRC)(3) movzx transfer instruction with zero extension (after 386)Format: movzx DST, SRCFunction: (DST) Zero-Scaling (SRC)Example 3.25 movzx dx, Al; 816Example 3.26 movzx
Problem: Computes the number in the ffff:0006 unit multiplied by 3, and the result is stored in the DX.
Answer:
One: Analysis of ideas:
1. Whether the result of the operation will exceed the range that DX can store. The book in the ffff:0006 unit is a byte-type data, 8-bit, which ranges between 0 and 2 of eight parties, and the maximum is 2 of 8, or 255. Then the value after multiplying it with 3 is 255X3=765=02FDH. And the maximum value that DX can store is 2 of 16 square, namely 65535=0FFFFH,
/*** Determine whether shortcuts have been added to the desktop** @ Param cx* @ Param titleName* Shortcut name* @ Return*/Public static boolean hasShortcut (Context cx ){Boolean result = false;// Obtain the name of the current applicationString title = null;Try {Final PackageManager pm = cx. getPackageManager ();Title = pm. getApplicationLabel (Pm. getApplication
string in the data segment.
Push ax // All scopy @ the above code is used to allocate the source string and the target string so many spaces in the stack
MoV CX, 3 // Cx = 3 specify the number of characters to copy
Call far PTR scopy @ // another function is executed to copy the source string in the data segment to the stack.
;? Debug L 10
Lea Si, word PTR [BP-6]
;? Debug L 11
Lea Di, word PTR [bp-2]
;? De
appears in both A and B in the array C1.
Here's the full-text code
DATAS SEGMENT num DW 0 y DW Ten flag DW 0 a DW 0 B DW 2 d DW 1 e DW 0 F DW 0 Both DW 2 flag2 DW 0 H1 DB "Please input a number:", ' $ ' H2 db 0AH,0DH, "Your input is inlow!", ' $ ' H3 DB 0AH,0DH, "the input must be even or greater than 6", ' $ ' DATAS ENDS STACKS SEGMENT DW-dup (0) STACKS ENDS CODES SEGMENT assume Cs:codes,ds:datas,ss:stacks main proc far push DS mov ax,0 push ax mov ax,datas mov Ds,ax Call input Call Chec
. The 8086 CPU has a total of 14 registers and is all 16 bits.That is, a total of 14 ax,bx,cx,dx,sp,bp,si,di,ip,flag,cs,ds,ss,es .These 14 registers are divided into general registers, control registers and segment registers in a certain way. Universal Registers:AX,BX,CX,DX is called a data register:AX (ACCUMULATOR): Cumulative register, also known as accumulator;BX (Base): Base address register;
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.