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

13 lines
268 B
Plaintext

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