WEB开发网
开发学院软件开发汇编语言 如何在C/C++使用内联汇编[英文版] 阅读

如何在C/C++使用内联汇编[英文版]

 2010-01-10 09:37:23 来源:WEB开发网   
核心提示:Accessing C or C++ data in an asm statementIn general, instructions in an asm statement can reference any symbol in scope where the statement appears. The follo

Accessing C or C++ data in an asm statementIn general, instructions in an asm statement can reference any symbol in scope where the statement appears. The following statement loads the AX register with the value of var, a C variable in scope:asm mov AX,varAn asm statement can reference a uniquely named member of a class, structure, or union without specifying the variable name or type before the period operator. But if the member name is not unique, you must specify a variable or type name before the period operator. If two structure types have a member name in common, as in this example:

struct first_type
  {
    char *mold;
    int common_name;
  };
  struct second__type
  {
    char *mildew;
    long common_name;
    int unique_name;
  };

上一页  1 2 3 4 5  下一页

Tags:如何 使用 内联

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接