1

I'm new to HLA Assembly programming, and was wondering why I'm getting the following error:

Memory to memory comparisons are illegal. Near: << ; >> Assertion failed: o->l.leftOperand != NULL, file output.c, line 6696

What I want to achieve:

enter image description here

My code:

#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;
Khalil
  • 334
  • 2
  • 10

0 Answers0