Question: Can you give me and HLA code without high langauage assembly that works? Heres my code when i run i get this error Error in

Can you give me and HLA code without high langauage assembly that works? Heres my code when i run i get this error Error in file "program3.hla" at line 11[errid:98726/hlaparse.c]: syntax error, unexpected ')', expecting '('.
Near: )>>
program hasDuplicates;
#include("stdlib.hhf")
static
x: int16;
y: int16;
z: int16;
procedure hasDuplicatesRec(x: int16; y: int16; z: int16); @nodisplay; @noframe;
begin hasDuplicatesRec;
cmp(x, y);
je checkDuplicates;
cmp(x, z);
je checkDuplicates;
cmp(y, z);
je checkDuplicates;
mov(0, al); // No duplicates found
jmp endProc;
checkDuplicates:
mov(1, al); // Duplicates found
endProc:
ret;
end hasDuplicatesRec;
begin hasDuplicates;
stdout.put("Feed Me x: ");
stdin.geti16(x);
stdout.put("Feed Me y: ");
stdin.geti16(y);
stdout.put("Feed Me z: ");
stdin.geti16(z);
hasDuplicatesRec(x, y, z);
stdout.put("AL =", al, nl);
end hasDuplicates;
Can you make sure it runs? Also if a new hla is needed feel free to change it. Thanks.
Can you give me and HLA code without high

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 Finance Questions!