High Level Assembly (HLA)

hello, world!


參考資料:
1. webster

main.hla

program main;

#include("stdlib.hhf")

begin main;
    stdout.put("hello, world!");
end main;

編譯、執行

$ export PATH=$PATH:/opt/hla/
$ export hlalib=/opt/hla/hlalib/
$ export hlainc=/opt/hla/include/
$ qemu-i386 /opt/hla/hla main.hla
$ qemu-i386 ./main
    hello, world!


返回上一頁