This commit is contained in:
2023-11-08 14:27:21 +00:00
commit f39b67e87d
32 changed files with 238 additions and 0 deletions

12
dec.hla Normal file
View File

@@ -0,0 +1,12 @@
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;