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:UsersdovahASSEMBLYROOThlaincludestdouthhf at line errid:hlaparsec:
syntax error, unexpected ; expecting DoOneValStmt.
Near: ;
Here is the full code:
HLA Assembly: Function to check if both numbers end in
#includestdouthhf
#includestdinhhf
procedure endsInSeven x: int; y: int;
@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
mov ebx, eax ; Copy ebx to eax
and eax, xF ; Isolate the last digit
cmp eax, ; Compare it with
jne L; Jump if not equal to
mov ecx, eax ; Copy ecx to eax
and eax, xF ; Isolate the last digit
cmp eax, ; Compare it with
jne L; Jump if not equal to
mov al ; Both end in set AL to
jmp L; Skip to end
L:
mov al ; Otherwise, set AL to
L:
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
