VC flower instruction method

xiaoxiao2021-03-06  19

In the VC joining the flower directive, I tried it a few years ago, a little experience, everyone exchange: ------------------------------------------------------------------------------------------ ------------------------------ 1, first, define the macros of various flower commands, can be placed separately. H In the file, you can also be directly defined in the process of the program, I suggest put it in the .h file. Note that all transfers and calls are indicated by the relative address symbol $, taking the problem upstairs as an example, the format is as follows: #define _wjq_used_flower // This switch control the compiler to use the flower instruction //// flower instruction definition (definition How many kinds, you need it? BYTES LEN * //_ASM_Emit 0e8h / * This directive 1 bytes len * // / * Here is the address to be transferred * //} # Endif 2, according to the above format, edit a variety of flowers, such as my editor 10 kinds of: __FLOWER_XX0 __FLOWER_XX1 __FLOWER_XX2 __FLOWER_XX9 3, using the method of the VC:... int WJQ_Function (char * pStr, DWORD nIndex) {__FLOWER_XX0 char buffer [200]; __FLOWER_XX9 / * buffer assignment portion (omitted) * / __Flower_xx7 for (long i = 0; i <100; i ) {__flower_xx2 pstr [i] = buffer [i]; __flower_xx5} __flower_xx4 return} __flower_flower_xx6} The above program is only defined to define _wjq_used_flower to decide whether to insert flowers instruction. Comment #define _wjq_used_flower, you can debug the program without flowering, after debugging, join the macro definition to join the flower instruction. Spring.w 2005.3.20

转载请注明原文地址:https://www.9cbs.com/read-43380.html

New Post(0)