1

我是 HLA 汇编编程的新手,想知道为什么会出现以下错误:

内存到内存的比较是非法的。近:<<; >> 断言失败:o->l.leftOperand != NULL,文件 output.c,第 6696 行

我想要达到的目标:

在此处输入图像描述

我的代码:

#include( "stdlib.hhf" );

static  
start: int8;
stop: int8;
i: int8;

begin print_Sequence;

    stdout.put("Gimme a decimal value to use as a start:");
    stdin.get(start);
    stdout.newln();
      
    stdout.put("Gimme a decimal value to use as a stop:");
    stdin.get(stop);
    stdout.newln();
      
    stdout.put("Here's your answer:");

    for( mov(1,i) ; start<=stop ; inc(i)) do //Getting the error here
        stdout.put(start,"_");
        add(i,start);
    endfor;
      
    stdout.put(start);
    stdout.newln();
    
end print_Sequence;
4

0 回答 0