generate_disasm_line 以及 generate_disassembly

但从字面上也很容易理解这两个函数的意思,但是事实在实际使用的时候效果却并不是想要的那样。 sad

idaman int ida_export generate_disassembly(
                                // Generate disassembly (many lines)
                                // and put them into a buffer
                                // Returns number of generated lines
        ea_t ea,                // address to generate disassembly for
        char *lines[],          // buffer to hold pointer to generated lines
        int bufsize,            // size of buffer
        int *lnnum,             // number of "the most interesting" line
                                // may be NULL
        bool as_stack);         // Display undefined items as 2/4/8 bytes

idaman bool ida_export generate_disasm_line(
                                // Generate one line of disassembly
                                // This function discards all "non-interesting" lines
                                // It is designed to generate one-line desriptions
                                // of addresses for lists, etc.
        ea_t ea,                // address to generate disassembly for
        char *buf,              // pointer to the output buffer
        size_t bufsize,         // size of the output buffer
        int flags=0);
#define GENDSM_FORCE_CODE 1     // generate a disassembly line as if
                                // there is an instruction at 'ea'
#define GENDSM_MULTI_LINE 2     // if the instruction consists of several lines,
                                // produce all of them (useful for parallel instructions)
Continue Reading

absinthe-win-2.0.2汉化版

其实Mac下的资源汉化是一件比较蛋疼的事情,这几天在折腾各种汉化。Windows下的字符串编码相对来说常用的格式比较单一要么AnsiString,要么UnicodeString。而到了Mac底下发现各种编码Utf-8,Utf-16,UTF-32.这几天几乎把所有的编码都折腾了一遍。这个鸟东西也确实很蛋疼的说。

但是呢,客观的说这个鸟东西由于中文字符编码的问题会导致汉化之后的长度比原来的要长。于是很多的地方就没有办法进行彻底的汉化。

猛击此处下载Mac版。

Continue Reading