Hi All,

New to this forum and HLA, hope someone can help. Have just installed HLA, MASM32 etc. and run HW test prog. Compiled okay and HW.exe runs okay, however system reports errors that Command.Com is invalid and halts the system. Runtime report below, any assistance to cause of error would be grateful.

Thanks

MArc

******************



C:\hla>hla -v hw
HLA (High Level Assembler)
Released to the public domain by Randall Hyde.
Version Version 1.59 build 8265 (prototype)
Win32 COFF output
Using MASM assembler
MASM output

Files:
1: hw.hla

Compiling 'hw.hla' to 'hw.asm'
using command line
HLA (High Level Assembler) Parser
Released to the public domain by Randall Hyde.
Version Version 1.59 build 8264 (prototype)
File: hw.hla
Output Path: ""

Compiling "hw.hla" to "hw.asm"
Compilation complete, 6059 lines, 1.082 seconds, 5600 lines/second

Assembling "hw.asm" to "hw.obj" via
Bad command or file name
Linking via
Bad command or file name
File not found
Invalid COMMAND.COM

Cannot load COMMAND, system halted



***************************************************
Posted on 2003-12-05 13:51:12 by Krug
Strange error, what version of windows are you running?
Posted on 2003-12-05 15:03:27 by Odyssey
That is odd. Are you sure it's compiling or was there a preexisting HW.exe in the folder? Try deleting HW.exe and try to compile it again.

From the output, it seems that HLA can't find ML.exe and link.exe, in which case you have to set a global environment path to the masm32\bin folder.
Posted on 2003-12-05 22:32:33 by Kain
Hi All,

Thanks for reading: -

Current O/S is Windows XP Professional

Path to Masm32\bin - okay. Deleted HW.exe and recompiled, following generated -

Microsoft Windows XP
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Marc Abbott>cd\

C:\>cd hla

C:\hla>ihla

C:\hla>path=c:\hla;c:\masm32\bin;C:\FSC\PCOBOL32;%SystemRoot%\system32;%SystemRo
ot%;%SystemRoot%\system32\WBEM;%SYSTEMROOT%\COMMAND;C:\Program Files\Common File
s\Adaptec Shared\System;C:\Program Files\Panda Software\Panda Antivirus Titanium
;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;c:\hla;c:\hla\radasm;c:\hl
a\radasm\addins;c:\program files\devstudio\sharedide\bin\ide;c:\program files\de
vstudio\sharedide\bin;c:\program files\devstudio\vc\bin;c:\fsc\pcobol32

C:\hla>set lib=c:\masm32\lib;c:\hla\hlalib;c:\program files\devstudio\vc\lib;c:\
fsc\pcobol32;;c:\hla\hlalib

C:\hla>set include=c:\hla\include;c:\masm32\include;c:\program files\devstudio\v
c\include;c:\program files\devstudio\vc\atl\include;c:\program files\devstudio\v
c\mfc\include;%include%

C:\hla>set hlainc=c:\hla\include

C:\hla>set hlalib=c:\hla\hlalib\hlalib.lib

C:\hla>dir
Volume in drive C has no label.
Volume Serial Number is 6802-FE65

Directory of C:\hla

05/12/2003 19:35 <DIR> .
05/12/2003 19:35 <DIR> ..
16/10/2003 21:05 53,248 hla.exe
05/12/2003 18:55 <DIR> hlalib
16/10/2003 21:05 1,372,160 hlaparse.exe
05/12/2003 19:35 1,301 hw.asm
05/12/2003 19:35 0 hw.bss.inc
05/12/2003 19:35 170 hw.consts.inc
05/12/2003 19:35 284 hw.data.inc
05/12/2003 19:35 6,144 hw.exe
05/12/2003 19:35 776 hw.extpub.inc
04/12/2003 20:29 144 hw.hla
05/12/2003 19:35 181 hw.link
05/12/2003 19:35 248 hw.link._.link
05/12/2003 19:35 964 hw.obj
05/12/2003 19:35 0 hw.ro.inc
04/12/2003 12:57 195 IHLA.bat
05/12/2003 18:55 <DIR> include
19/03/1998 17:28 462,899 LINK.EXE
22/07/2001 06:31 9,687 ML.ERR
29/03/1999 18:45 372,736 ML.EXE
10/06/1998 07:50 157,456 MSPDB50.DLL
16/10/2003 12:45 24,576 PatchRadASM.exe
05/12/2003 18:55 <DIR> RadASM
05/12/2003 18:55 14,042 unins000.dat
17/12/2002 04:00 82,253 unins000.exe
21 File(s) 2,559,464 bytes
5 Dir(s) 788,542,976 bytes free


C:\hla>hla -v hw
HLA (High Level Assembler)
Released to the public domain by Randall Hyde.
Version Version 1.59 build 8265 (prototype)
Win32 COFF output
Using MASM assembler
MASM output

Files:
1: hw.hla

Compiling 'hw.hla' to 'hw.asm'
using command line
HLA (High Level Assembler) Parser
Released to the public domain by Randall Hyde.
Version Version 1.59 build 8264 (prototype)
File: hw.hla
Output Path: ""

Compiling "hw.hla" to "hw.asm"
Compilation complete, 6059 lines, 1.092 seconds, 5549 lines/second

Assembling "hw.asm" to "hw.obj" via
Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997. All rights reserved.

Assembling: hw.asm
Linking via
Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

-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
-subsystem:console
-out:hw.exe
c:\hla\hlalib\hlalib.lib
hw.obj
File not found
Invalid COMMAND.COM

Cannot load COMMAND, system halted

*************************************
HW compiles and runs okay, however command shell "hangs" until cleared using ctrl/alt/del.

Any suggestions would be appreciated

Thanks

Marc
Posted on 2003-12-06 10:23:34 by Krug

Hi All,

-subsystem:console
-out:hw.exe
c:\hla\hlalib\hlalib.lib
hw.obj
File not found
Invalid COMMAND.COM

Cannot load COMMAND, system halted

*************************************
HW compiles and runs okay, however command shell "hangs" until cleared using ctrl/alt/del.

Any suggestions would be appreciated

Thanks

Marc


try running command.com by itself from your command prompt. What result do you get?
Posted on 2003-12-06 12:00:19 by Kain
On opening a Command Window, Windows converts %System Root% to c:\Windows, or C:\WINNT, etc... Thus, when you type path in a Command window, you should see actual path names not %System Root etc... In order for this to work, Windows expects to find %System Root%, etc to be at the beginning of the line, and refuses to translate it if it appears in the middle of the line.

So, here's the problem. Randy's installer adds the paths to HLA at the start of the path (in front of %System Root, instead of at the end. Thus when Windows opens a Command Window, Command com cannot be accessed. (Neither can anything else...)

The path should be corrected... in the System Variables Section of the Environment Variables Section in Advanced in System Properties (Right-Click My Computer and choose Properties, then the Advanced pane, then Environment Variables, scroll down to path in System Variables).

Simply, move the "c:\hla;c:\masm32\bin;C:\FSC\PCOBOL32;" from the start of the path in the Environment variables as above, to the end.

Close Command Window. Reboot perhaps, I cannot remember.

It should work now.
Posted on 2003-12-06 19:47:50 by V Coder
Hi All,

That is very strange, because on an XP system command.com shouldn't be called. The command shell is cmd.exe. I have never seen ihla.bat do what you have posted on my XP Pro system. OTOH, I have not done a full install/re-install of HLA in a long time (v1.46). My path has c:\hla first; and having it first has not caused any problems on my system (and I add and remove stuff frequently). V coder, you are probably right that the later installer has a bug in its path string handler.

Krug, did you install HLA from an admin (super user/ Administrators group) account? When you install programs as a regular user, XP will not necessarily add your new path values to the system path; it may only add to the user specific path. When you look at your environment variables, check the path string in *both* locations (system and user) if you are using a regular user account (not a member of the Administrators group).

HTH,

Charles
Posted on 2003-12-06 22:27:28 by cdquarles
For a new install, download the SETUPHLA.EXE program and run that.
Do *NOT* install HLA manually as you've done. Manual installation is for upgrading, not for initial installation.

Where "command.com" is bugging out is a good question. AFAIK, it only gets invoked under Windows when you run 16-bit code (e.g., a "DOS-box" application).

Also, it turns out that it's not a good idea to put any paths before %systemroot%. So try moving the HLA path (and other paths) to the end of the path= statement.
Cheers,
Randy Hyde
Posted on 2003-12-08 10:46:38 by rhyde
Posted on 2003-12-08 23:39:05 by eet_1024