Can someone help me out by coding this c into HLA(High Level Assembly)language. I am having so difficulty writting in HLA. That would be appreciated.
program crazy_8s;
#include ("stdlib.hhf");
static
num1: int16;
num2: int16;
num3: int16;
tens: int16;
eight_found: boolean;
begin crazy_8s;
eight_found := false;
while (1)
{
stdout.put("Gimme a number: ");
stdin.get(num1);
tens := num1 / 10 * 10;
if (tens == 8)
{
stdout.put("One of them ends in eight!");
eight_found := true;
break;
}
stdout.put("Gimme a number: ");
stdin.get(num2);
tens := num2 / 10 * 10;
if (tens == 8)
{
stdout.put("One of them ends in eight!");
eight_found := true;
break;
}
stdout.put("Gimme a number: ");
stdin.get(num3);
tens := num3 / 10 * 10;
if (tens == 8)
{
stdout.put("One of them ends in eight!");
eight_found := true;
break;
}
if (!eight_found)
{
stdout.put("Sorry Charlie! You lose the game!");
break;
}
}
end crazy_8s;