Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

·­ÒëÒ»°ëµÄDelphi»ã±à°ïÖú

 The built-in assembler allows you to write assembly code within Delphi programs. It has the following features:
ÄÚǶµÄ»ã±àÆ÷ÔÊÐíÔÚdelphi³ÌÐòÖÐÊéд»ã±à´úÂ룬ËûÓÐÈçÏÂÌØÐÔ£º
Allows for inline assembly
ÔÊÐíÄÚǶ»ã±à
    Supports all instructions found in the Intel Pentium III, Intel MMX extensions, Streaming SIMD
 Extensions (SSE), and the AMD Athlon (including 3D Now!)
Ö§³ÖËùÓÐÖ¸ÁÈçÓ¢Ìضû±¼Èý´¦ÀíÆ÷£¬Ó¢ÌضûMMXÀ©Õ¹£¬Streaming SIMDÀ©Õ¹£¨SSE£©£¬ÒÔ¼°AMD Athlon´¦ÀíÆ÷£¨°üÀ¨3D£©
    Provides no macro support, but allows for pure assembly function procedures
²»ÌṩºêÖ§³Ö£¬µ«ÔÊÐí´¿»ã±àº¯Êý¹ý³Ì
    Permits the use of Delphi identifiers, such as constants, types, and variables in assembly statements
ÔÊÐíʹÓÃdelphi±êʶ·û£¬ÖîÈçÔÚ»ã±à¶ÎÄڵij£Á¿£¬ÀàÐͺͱäÁ¿
As an alternative to the built-in assembler, you can link to object files that contain external procedures and functions. See External declarations for more information.
µ±Ìæ´úÄÚÖûã±àµÄʱºò£¬Äã¿ÉÒÔÁ´½Óµ½Ò»¸ö°üº¬ÓÐÍⲿ¹ý³ÌºÍº¯ÊýµÄÄ¿±êÎļþ¡£¸ü¶àµÄÐÅÏ¢²é¿´ÍⲿÉùÃ÷¡£
Note
×¢Ò⣬Èç¹ûÄãÓÐÍⲿ»ã±à´úÂ룬ÄãÏë°ÑËüÃÇÓÃÔÚÄãµÄÓ¦ÓóÌÐòÖУ¬ÄãÒª¿¼ÂÇÔÚDelphiÖÐÖØдËû£¬»òÕß×îµ×Ï޶ȵÄʹÓÃÄÚǶ»ã±àÀ´ÊµÏÖ¡£
If you have external assembly code that you want to use in your applications, you should consider rewriting it in the Delphi language or minimally reimplement it using the inline assembler.
The built-in assembler is accessed through asm statements, which have the form
ÄÚǶ»ã±àͨ¹ýasm±êʶ·ûÀ´´æ´¢£¬Ê¹ÓÃend¶ÎÀ´½áÊø¡£
asm statementList end
where statementList is a sequence of assembly statements separated by semicolons, end-of-line characters, or Delphi comments.
»ã±à¶ÎʹÓ÷ֺÅÀ´·Ö¸î»ã±à´úÂë¶Î£¬×Ö·ûµÄĩβ¿ÉÒÔʹÓÃdelphi×¢ÊÍ¡£
Comments in an asm statement must be in Delphi style. A semicolon does not indicate that the rest of the line is a comment.
ÄÚǶ»ã±àµÄ×¢ÊͱØÐëÊÇdelphiµÄ·ç¸ñ£¬·ÖºÅ²¢²»Äܱíʾµ±Ç°ÐÐÊ£Óಿ·Ö¾ÍÊÇ×¢ÊÍ¡£
The reserved word inline and the directive assembler are


Ïà¹ØÎĵµ£º

delphi»ñµÃÍø¿¨µÄMACµØÖ·


 
»ñµÃÍø¿¨µÄMACµØÖ·ÔںܶàµØ·½¶¼ÓкܴóµÄÓô¦,ÏÂÃæµÄº¯ÊýÒÔXX-XX-XX-XX-XX-XX µÄ¸ñʽ·µ»ØÔ¶³Ì»ò±¾µØ»úÆ÷µÄMACµØÖ·¡£
Function to return the MAC address of a remote or local machine in the format XX-XX-XX-XX-XX-XX
·µ»ØµÄMACµØÖ·ÊÇÒ»¸öÄÜÓÃÔÚ¶à¸ö·½ÃæµÄΨһ±êʶ¡£Ê¹Ó÷½·¨£º
ShowMessage(GetMacAddress( ......

Delphi ShlÓëShr ÒÆλ²Ù×÷½éÉÜ

 ¸ñʽ£º²Ù×÷Êý Shl/Shr Òƶ¯Î»Êý
˵Ã÷£º²Ù×÷ÊýÓë·µ»ØÖµ¶¼ÊÇÕûÊý
Àý×Ó£º16(10) = 10000(2)
     16(10) Shr 1 = 10000(2) Shr 1 = 1000(2) = 8(10)
     16(10) Shr 2 = 10000(2) Shr 2 = 100(2) = 4(10)
˵Ã÷£ºÒ»¸öÕûÊý(I)°´Î»×óÒÆһ룬Ï൱ÓÚ°ÑËü³ËÒÔ2£¬¼´ I * 2
&n ......

delphiº¯Êý²Î¿¼ÊÖ²á(±È½ÏÔçµÄ°æ±¾)

Ãû³Æ    ÀàÐÍ   ˵Ã÷
abort º¯Êý ÒýÆð·ÅÆúµÄÒâÍâ´¦Àí
abs º¯Êý ¾ø¶ÔÖµº¯Êý
addexitproc º¯Êý ½«Ò»¹ý³ÌÌí¼Óµ½ÔËÐÐʱ¿âµÄ½áÊø¹ý³Ì±íÖÐ
addr º¯Êý ·µ»ØÖ¸¶¨¶ÔÏóµÄµØÖ·
adjustlinebreaks º¯Êý ½«¸ø¶¨×Ö·û´®µÄÐзָô·ûµ÷ÕûΪcr/lfÐòÁÐ
align ÊôÐÔ Ê¹¿Ø¼þλÓÚ´°¿Úij²¿·Ö
alignment ÊôÐÔ ¿ ......

delphi ¶¯Ì¬¿ØÖÆ´°¿ÚÖö¥ÇÒ½çÃæ²»ÉÁ

procedure TForm1.CheckBox1Click(Sender: TObject);
begin
if CheckBox1.Checked then
SetWindowPos(Handle, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE or SWP_NOMOVE)
else
SetWindowPos(Handle, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOSIZE or SWP_NOMOVE);
end;//ʹÓÃSelf.FormStyle := fsStayOnTop;»áʹ½ç ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ