Thursday, October 21, 2010

Examples in assembly language, the [] usage



"[]" The use of the "Frequently Asked Questions" has been stated quote:

1, push dword ptr [024c1100] stacking 024c1100 value of the two-word
2, cmp eax, [ebp +14] eax-ebp +14's RMS, not retention, mainly to see the flag
3, cmp byte ptr [eax], 46 byte eax-46, see flags
4, lea eax, [edx-02] Valid values for the edx-02 (an address value) to eax
5, mov ecx, [edx +08] edx +8 value as the address, this address points to the value to ecx

I would like to add a few situations I encountered, with reference to some information and my personal understanding.
-------------------------------------------------- -----------------------------
mov instruction used in "[]"

1 - mov [edi], eax ---- the eax value (dword) in the memory address assigned to the value of edi Department
2 - mov [bp-02], dx --- the dx value (word) is assigned in the memory address values of bp-02 Department
3 - mov esi, [BP +14] --- the memory address of BP +14 in the size of the value of the inflow of dword esi register
4 - mov eax, dword ptr [ebp-04] --- put in the memory address of the dword ebp-04 moved into eax register value of the size of
5 - mov eax, dword ptr [0000003Ah] - to 3A of the dword in the size of the memory address value into the eax register
6 - mov cl, byte ptr [34h] - the byte at memory address 34, the size of the value of the register into the cl
7 - mov dx, word ptr [3Eh] - to 3E of the word in the size of the memory address value into the dx register
8 - mov eax, [00403045h] - 403 045 read from the memory address the value of a 32-bit
9 - mov al, byte ptr [eax + ecx] - to the memory address at eax + ecx the byte size of value into the al register

Integrated brackets "[]" is used from the brackets between the value at memory location, not only the value in parentheses on the register and memory address can be.

10 - mov cx, [eax] - put the word in the size of the memory address of the value of eax moved cx register
In mov cx, [eax], the processor will first see what the value of eax with (= memory address), then what is the memory address value, and this word (16 bit, because the target is a 16-cx- bit registers) moved cx.
-------------------------------------------------- -----------------------------
cmp instruction used in "[]"

1 - cmp dword ptr [ebp-04], 00000007 - the memory address of ebp-04 in the dword value of the size compared with 00,000,007
2 - cmp byte ptr [si], 00 - si to the byte at memory address value of the size compared with 00

-------------------------------------------------- -----------------------------
lea instruction used in "[]"

1 - lea di, [bp-22] ---- the bp-22 of the RMS (= memory address) to di
-------------------------------------------------- -----------------------------
test instructions used in "[]"

1 - test byte ptr [bx +08 FD]
- Will be located in memory address bx +08 FD Department of value byte size of the logic to determine whether the operation result 00







Recommended links:



H.264 to AVI



GOOD E-Commerce



MP4 to 3G2



new battery Can not be fully charged



MOV to MPEG4



Log multiple Gmail accounts at the SAME time - Firefox extension



The basic concepts of object-oriented



Command & Conquer 3 - the most difficult opponents experience



Inventory And BARCODING introduction



Comment E-Mail Clients



Recommend Languages Education



SARFT Issued The First Batch Of 3G Licenses Audio-visual



21st Century Business Herald: reversal eBay



Thread termination



Alipay's disregard the changing circumstances



Tuesday, October 12, 2010

C + + Builder to pass other parameters form


Usually created in the IDE application form, to create a form in this way, the form contains only one parameter has a constructor Owner. Owner refers to a form created by the owner of the pointer (usually the owner of the application object or form object). Owner can be Null. To other parameters passed to the form, create another constructor, and use the new operator to enable the form, the next example shows an additional form class constructor, it contains an extra parameter whichButton . This new constructor form themselves in to join the class.




This is a self-compiled constructor, pass an additional parameter whichButton. This constructor uses whichButton parameter to set the form's Caption property of Label control.




Constructor to create multiple instances of the form, choose the most suitable choice for the constructor. For example, the following form, call the button handler nClick create an instance of the use of additional parameters TResultsForm:









Recommended links:



Let the old computer "rejuvenation"



YUV to AVI



MPEG to MOV



Infomation Cursors And Fonts



DV To AVI



Rising Claims The Former Executives Was Leaked 2.31 Million



RUP Anti-pattern



Flexible USE of beautifully button style



I pirated your personal fight Daolian Thunder Sohu



John XINHUA Introduction Of Guangxi Sugar Set EAM2008



Lucent TECHNOLOGIES Qingdao Company



How to convert mpg to epson p-2000



Expert Printer



"The Sims 3" fun things continue to occur



Good Chat And Instant Messaging



DOS, also USE flash tips



Launchers And Task Managers Wizard



Friday, October 8, 2010

After the way you do business you're considering?



All along, this is like the common and in many cases, can really be understood. Some, however, the situation is really too bad people incomprehensible.

In a way, the companies take different routes can also be said as a business tool, but I always feel, and everyone is taking the price line, the ultimate victims or themselves. The user is next to smiling at the news.

Take today for instance touch the things, one client said to get another price than my original price of the low half of the tool. I really want to fall down, is not never seen such a thing, but now it is too different

I sell the broker, the space can be imagined, Furthermore, as sales of the brand, and then stupid people know that this is the price of any formal company can not enter the arrival. Not even went into this purchase price, but also about what selling price?

This event has involved many reasons for this: the internal reasons for this brand, and management, as well as domestic production occurs slowly re-tool this brand OEM's are as shoddy.

Depressed, the Chinese people that like to do such a thing. Let me first talk about or against this practice, say then say it to your posterior, today, you produce these shoddy things, has been the so-called profits, how much money you can send it? This business will long it?

Also, markets got this point, you can make the market after luxury forget it? These people really do not understand the point of departure in the end is on what? Market a mess, you have to do is not say no to This brand has to screw up. Well, the Chinese people sad.

In fact, such incidents in the tool sector has long been common, I just want to ask next, in the end are we going? Money? Old saying, gentlemen love money, in a proper way.

Profiteer profiteer, may this evil law, I do not dare to Christine violation.







Recommended links:



No TRACE of her it just so to find the original 1000 Baidu



OGM To MKV



R accounting economics foundation (3)



Fixboot Command Changes Windows Partitions From



New Geography Education



Qi Cheng white-collar workers willing to work part-time outside the "private activities"



OGM to MP4



FLV to PSP



Digital China Open play the "Famous Brand" legal battle



Source Editors Guide



Let the old computer "REJUVENATION"



Super-operator altar



"Dalian Sigma Elevator" use EastFax