最近,我开始从Randall Hyde的《汇编语言的艺术》一书中学习汇编语言。他还开发了HLA(高级汇编)语言,使初学者更容易学习汇编器。
要编译已创建的.hla程序,可以从here下载.exe,以安装所有必需的设置。您只需将目录更改为/ hla并在命令行中输入hla PROGRAM.hla
即可编译程序。
我的问题:最初,编译器运行良好,但是现在,当我想编译程序时,会出现错误。该程序如下所示:
program helloWorld;
#include ("stdlib.hhf");
begin helloWorld;
stdout.put("Hello, World of Assembly Language", nl);
end helloWorld;
现在,当我在命令行中输入hla helloWorld.hla
时,会弹出一个带有conversion error的窗口。
此错误也出现在命令行中:
POLINK: fatal error: File not found: 'Level.OBJ'.
Error returned by POLINK = 1
然后编译器会创建一个.link文件,如下所示:
-heap:0x1000000,0x1000000
-stack:0x1000000,0x1000000
-base:0x4000000
-entry:HLAMain
-section:.text,ER
-section:.data,RW
-section:.bss,RW
kernel32.lib
user32.lib
gdi32.lib
我使用以下命令进行了尝试:hla -v helloWorld.hla
,并得到以下输出:
HLA (High Level Assembler)
Use '-license' to see licensing information.
Version 2.16 build 4413 (prototype)
Win32 COFF output
OBJ output using HLA Back Engine
-test active
HLA Lib Path: C:\hla\hlalib\hlalib.lib
HLA include path: C:\hla\include
HLA temp path:
Linker Lib Path: ;D:\hla\hlalib;D:\hla\hlalib;C:\hla\hlalib;C:\hla\hlalib;D:\hla\hlalib;C:\hla\hlalib;C:\hla\hlalib
Compiling 'helloWorld.hla' to 'helloWorld.obj'
using command line:
[hlaparse -WIN32 -level=high -v -test "helloWorld.hla"]
----------------------
HLA (High Level Assembler) Parser
use '-license' to view license information
Version 2.16 build 4413 (prototype)
-test active
Output Path: ""
hlainc Path: "C:\hla\include"
hlaauxinc Path: ""
Compiler generating code for Windows OS
Back-end assembler: HLABE
Language Level: high
Assembling "helloWorld.hla" to "helloWorld.obj"
HLAPARSE assembly complete, 40963 lines, 0.058 seconds, 705043 lines/second
------------
HLA Back Engine Object code formatter
----------------------
Linking via [polink @"helloWorld.link._.link"]
POLINK: fatal error: File not found: 'Level.OBJ'.
Error returned by POLINK = 1
重新启动了系统,重新安装了.exe,还尝试了其他程序,但是我不太熟练,无法解决此问题。
任何帮助将不胜感激。