Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
X86 MASM中的If-else宏_X86_Masm - Fatal编程技术网

X86 MASM中的If-else宏

X86 MASM中的If-else宏,x86,masm,X86,Masm,在MASM中,是否可以创建if…ekse宏(类似于高级编程语言中的宏)?我还没有为MASM找到任何类型的if-else语句宏,但我认为用于此目的的宏将非常有用 如果我能找到一个宏,使它更容易在masm中编写一系列复杂的if语句,这将非常有用,如下所示: ;jump to each case here checkCase1: cmp theVariable, 5; jne case1; checkCase2: cmp theVariable, var2;

在MASM中,是否可以创建if…ekse宏(类似于高级编程语言中的宏)?我还没有为MASM找到任何类型的if-else语句宏,但我认为用于此目的的宏将非常有用

如果我能找到一个宏,使它更容易在masm中编写一系列复杂的if语句,这将非常有用,如下所示:

;jump to each case here
    checkCase1:
    cmp theVariable, 5;
    jne case1; 

    checkCase2:
    cmp theVariable, var2;
    jne case2;

    jmp defaultCase; do this if no other statement is true
;each of the cases are handled here

    case1:
    ;handle case 1
    jmp checkCase2; //check whether case 2 is true

    case2:
    handle case 2
    jmp endOfStatement;
    defaultCase:
        ;this is the default case
endOfStatement:
;this is the end of the statement

没有人再看手册了???组装已经存在多年了,MASM已经存在多年了!!!大量的样品和文件

例如:

.if eax == 1

.elseif eax !=10

.elseif eax >= 11

.else

.endif

MASM32包含一个case宏…

没有人再阅读手册了???组装已经存在多年了,MASM已经存在多年了!!!大量的样品和文件

例如:

.if eax == 1

.elseif eax !=10

.elseif eax >= 11

.else

.endif

MASM32包含一个case宏…

我发布的示例更像一个if…else if…else语句,而不是switch语句。我不确定是否可以编写一个接受可变数量参数的MASM宏。也许编写一个简单的if…else宏会更容易。我发布的示例更像if…else if…else语句,而不是switch语句。我不确定是否可以编写一个接受可变数量参数的MASM宏。也许编写一个简单的if…else宏会更容易。这是迄今为止我找到的唯一文档:您可以下载MASM32:它包含includes、libs宏、示例代码、帮助文件。。。MASM32是类固醇上的MASM这是迄今为止我找到的唯一文档:您可以下载MASM32:它包含,libs宏,示例代码,帮助文件。。。MASM32是使用类固醇的MASM