Question: I need some help debugging some code. I keep getting this error: Error in file C: Users dovah ASSEMBLY _ ROOT

I need some help debugging some code. I keep getting this error: Error in file "C:\Users\dovah\ASSEMBLY_ROOT\hla\include\stdout.hhf" at line 1[errid:98726/hlaparse.c]:
syntax error, unexpected ';', expecting DoOneValStmt.
Near: << ; >>
Here is the full code:
// HLA Assembly: Function to check if both numbers end in 7
#include("stdout.hhf")
#include("stdin.hhf")
procedure endsInSeven( x: int16; y: int16);
@nodisplay;
@noframe;
static
begin endsInSeven;
push( ebx ); // Save ebx register
push( ecx ); // Save ecx register
mov( x, ebx ); // Move x into ebx
mov( y, ecx ); // Move y into ecx
// Check if both numbers end in 7
mov( ebx, eax ); // Copy ebx to eax
and( eax, 0x000F ); // Isolate the last digit
cmp( eax, 7); // Compare it with 7
jne L1; // Jump if not equal to 7
mov( ecx, eax ); // Copy ecx to eax
and( eax, 0x000F ); // Isolate the last digit
cmp( eax, 7); // Compare it with 7
jne L1; // Jump if not equal to 7
mov(1, al ); // Both end in 7, set AL to 1
jmp L2; // Skip to end
L1:
mov(0, al ); // Otherwise, set AL to 0
L2:
pop( ecx ); // Restore ecx register
pop( ebx ); // Restore ebx register
end endsInSeven;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!