Files
learn_assembly/dec.hla
2023-11-08 14:27:21 +00:00

13 lines
278 B
Plaintext

program ConvertToDecimal;
#include("stdlib.hhf")
static
value: int32;
begin ConvertToDecimal;
stdout.put("Input a hex value: ");
stdin.get(eax);
mov(eax, value);
stdout.put("The value $", eax, " converted to decimal is ", value, nl);
end ConvertToDecimal;