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

14
zero_extension.hla Normal file
View File

@@ -0,0 +1,14 @@
program zero_extension;
#include("stdlib.hhf")
static
magic_num: int8 := 42;
magic_num_16: int16;
begin zero_extension;
mov(magic_num, al);
mov(0, ah);
mov(ax, magic_num_16);
stdout.put("magic_num_16 = ", magic_num_16); // should be 42
end zero_extension;