News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

installation problem

Started by kb7wg, February 05, 2006, 09:11:55 PM

Previous topic - Next topic

kb7wg

i tried that again with hlaparse -v -sm -test hw.....and it goes back to its old tricks.......if i take the test switch out....then it works......??????

MichaelW

It works with -test for me.

The attachment contains a HLA source, a linker response file, and a batch file to build the exe. The batch file calls hlaparse.exe directly, and neither it nor the response file depend on your path or environment variables. You need to make sure that HLA and MASM32 are installed at the locations specified in the batch and response files. You should be able to unzip the attachment in any folder, and run the batch file to build the exe. Here is an example of the directory listing after the build is complete:

02/10/2006  11:07p      <DIR>          .
02/10/2006  11:07p      <DIR>          ..
02/10/2006  11:45p                 205 makeit.bat
02/10/2006  11:06p                 249 _hello.link
02/10/2006  11:22p                 223 hello.hla
02/10/2006  11:47p                 719 HlaTest.zip
02/10/2006  11:48p               1,448 hello.asm
02/10/2006  11:48p                 284 hello.data.inc
02/10/2006  11:47p                   0 hello.bss.inc
02/10/2006  11:48p                 319 hello.consts.inc
02/10/2006  11:47p                   0 hello.ro.inc
02/10/2006  11:48p                 181 hello.link
02/10/2006  11:48p                 587 hello.extpub.inc
02/10/2006  11:48p               1,139 hello.obj
02/10/2006  11:48p               8,192 hello.exe
              13 File(s)         13,546 bytes




[attachment deleted by admin]
eschew obfuscation

Sevag.K

Quote from: kb7wg on February 11, 2006, 05:27:40 AM
i tried that again with hlaparse -v -sm -test hw.....and it goes back to its old tricks.......if i take the test switch out....then it works......??????

That could be the clue.  hla.exe seems to have -test active by default even if you don't specify it on the command line.  I'm not even sure what that's supposed to do and it never concerned me since it doesn't cause any problems on any of my systems.

If that's causing problems, I have another utility that may come in handy.  It's a replacement for hla.exe that uses an initialization file for its setup (it's a part of the HIDE package, but it can be used separately, even with MASM32).

The archive contains 3 files

1. khla.exe  -copy to the hla folder
2. khla.ini - copy to the hla folder
3. khla.rtf - some documents for khla

khla works almost exactly like hla, except it uses a configuration file for environment, etc.  And it may solve your problem since -test is not active by default (I still don't know why that's a problem, if it is that).

I've set up the configuration to run with the MASM32 assembler and linker.  All you need to supply it is a path to the hla folder (which you've already done) and it will find everything else on its own.

example of use: to compile hw.hla using ml.exe:

khla hw

Please let me know if it works for you as it will isolate what's causing the problem and we can contact Randall about removing the default -test behavior.



[attachment deleted by admin]

MichaelW

Quote-test Send diagnostic info to stdout rather than stderr (This option is intended for HLA test/debug purposes).

eschew obfuscation

kb7wg

ok michael.....i extracted ur file to hla\test folder and this is what i got....hope i did this right...

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

READY C:\>cd hla\test

READY C:\hla\test>makeit

READY C:\hla\test>set path=c:\masm32\bin;c:\hla;C:\WINDOWS\system32;C:\WINDOWS;C
:\masm32\bin\;C:\hla;C:\WINDOWS\System32\Wbem;C:\Program Files\Support Tools\

READY C:\hla\test>hlaparse  -v -sm -test "hello.hla"
HLA (High Level Assembler) Parser
Released to the public domain by Randall Hyde.
Version Version 1.79 build 10130 (prototype)
-t active
File: hello.hla
Output Path: ""

Compiling "hello.hla" to "hello.asm"
Compilation complete, 7047 lines,   0.048 seconds,  146812 lines/second

READY C:\hla\test>pause
Press any key to continue . . .

READY C:\hla\test>ml /c /coff /Cp /Fo"hello.obj" "hello.asm"
Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997.  All rights reserved.

Assembling: hello.asm

READY C:\hla\test>pause
Press any key to continue . . .

READY C:\hla\test>link /SUBSYSTEM:CONSOLE hello.obj @_hello.link
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
c:\hla\hlalib\kernel32.lib
c:\hla\hlalib\user32.lib
c:\hla\hlalib\gdi32.lib
c:\hla\hlalib\hlalib.lib

READY C:\hla\test>pause
Press any key to continue . . .

READY C:\hla\test>dir
Volume in drive C is Tom
Volume Serial Number is 5072-4B1A

Directory of C:\hla\test

02/11/2006  07:31 AM    <DIR>          .
02/11/2006  07:31 AM    <DIR>          ..
02/11/2006  07:30 AM             1,448 hello.asm
02/11/2006  07:30 AM                 0 hello.bss.inc
02/11/2006  07:30 AM               319 hello.consts.inc
02/11/2006  07:30 AM               284 hello.data.inc
02/11/2006  07:31 AM             8,192 hello.exe
02/11/2006  07:30 AM               587 hello.extpub.inc
02/10/2006  11:22 PM               223 hello.hla
02/11/2006  07:30 AM               181 hello.link
02/11/2006  07:31 AM             1,139 hello.obj
02/11/2006  07:30 AM                 0 hello.ro.inc
02/10/2006  11:45 PM               205 makeit.bat
02/10/2006  11:06 PM               249 _hello.link
              12 File(s)         12,827 bytes
               2 Dir(s)  48,242,487,296 bytes free

READY C:\hla\test>pause
Press any key to continue . . .
READY C:\hla\test>

i hope this helps.....earl

kb7wg

and sevag......this is what i get when i run urs

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

READY C:\>khla hw
Assembling: hw.asm

READY C:\>cd hla

READY C:\hla>khla hw
    hw.hla
Could not open file
Could not open hw.hla
    hw.asm
Error with program execution

READY C:\hla>

i put ur files into hla dir.....if i run it from c....it says assembling and goes back to prompt......if i run it from hla dir.....i get some errors......

i have no idea what it means....earl

Evenbit

02/11/2006  07:31 AM             8,192 hello.exe

Glad to see you finally got it to compile!

Do you know about the 'aoaprogramming' group at Yahoo?  You might want to try some of the examples in the FILES section there as you go through the rest of the chapters in AoA.

Nathan.

kb7wg

thnk u nathan...but nothing is working yet.......

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

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

HLA Lib Path:     C:\hla\hlalib\hlalib.lib
HLA include path: C:\hla\include
HLA temp path:
Linker Lib Path:  C:\hla\hlalib;C:\hla\hlalib

Files:
1: hw.hla

Compiling 'hw.hla' to 'hw.asm'
using command line [hlaparse  -v -sm -test "hw.hla"]

READY C:\>khla hw
    hw.hla
Could not open file
Could not open hw.hla
    hw.asm
Error with program execution

READY C:\>


i cud only get a result using the makeit.bat file executed from the test folder......very far from success. i cant understand why i cant get the hla and the masm32 to work together. earl

Evenbit

Just out of curiosity, does the following work?
hla -v -fasm hw

Nathan.

kb7wg

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

READY C:\>hla -v -fasm hw

**********************************************************
Warning: You've selected MASM-compatible output, but you've
selected the FASM assembler to process the output.  This is
unusual.  You may want to check your command line options.
**********************************************************

HLA (High Level Assembler)
Released to the public domain by Randall Hyde.
Version Version 1.79 build 10131 (prototype)
Win32 COFF output
Using FASM assembler
MASM output
-test active

HLA Lib Path:     C:\hla\hlalib\hlalib.lib
HLA include path: C:\hla\include
HLA temp path:
Linker Lib Path:  C:\hla\hlalib;C:\hla\hlalib

Files:
1: hw.hla

Compiling 'hw.hla' to 'hw.asm'
using command line [hlaparse  -v -sm -test "hw.hla"]

READY C:\>

stops at the same place..........................

Evenbit

Oh, I forgot...  that should be....
hla -v -sf -fasm hw

Nathan.

kb7wg

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

READY C:\>hla -v -sf -fasm hw
HLA (High Level Assembler)
Released to the public domain by Randall Hyde.
Version Version 1.79 build 10131 (prototype)
Win32 COFF output
Using FASM assembler
FASM output
-test active

HLA Lib Path:     C:\hla\hlalib\hlalib.lib
HLA include path: C:\hla\include
HLA temp path:
Linker Lib Path:  C:\hla\hlalib;C:\hla\hlalib

Files:
1: hw.hla

Compiling 'hw.hla' to 'hw.asm'
using command line [hlaparse  -v -sf -test "hw.hla"]

READY C:\>



same thing....aint that something?

Evenbit

I am uploading a package of batch files that you might want to use.  Here are the usage instructions:

setpath.bat - sets all paths and environmental variables
USAGE:
C:>setpath C:

'sets according to C: drive


E.BAT - runs QEditor from MASM32 package so you can edit you code
USAGE:
C:>e URprog.hla

'opens URprog.hla (or creates "URprog.hla") in Qeditor


H.BAT - assembles your program with HLA
USAGE:
C:>h URprog

'assembles URprog and shows compile status (errors?) in a notepad window


R.BAT - runs your program
USAGE:
C:>r URprog

'runs your URprog and shows its output (if any) in a notepad window


Nathan.

Evenbit

Ooops!  Forgot to attach the ZIP...



[attachment deleted by admin]

kb7wg

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

READY C:\>set
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\earl\Application Data
CLASSPATH=C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=SYSTEM2
ComSpec=C:\WINDOWS\system32\cmd.exe;
FP_NO_HOST_CHECK=NO
hlainc=C:\hla\include
hlalib=C:\hla\hlalib\hlalib.lib
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\earl
lib=C:\hla\hlalib
LOGONSERVER=\\SYSTEM2
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Path=C:\hla;C:\masm32\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbe
m;C:\Program Files\Support Tools\
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model 31 Stepping 0, AuthenticAMD
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=1f00
ProgramFiles=C:\Program Files
prompt=READY $P$G
QTJAVA=C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\earl\LOCALS~1\Temp
TMP=C:\DOCUME~1\earl\LOCALS~1\Temp
tvdumpflags=8
USERDOMAIN=SYSTEM2
USERNAME=earl
USERPROFILE=C:\Documents and Settings\earl
windir=C:\WINDOWS
__COMPAT_LAYER=EnableNXShowUI

READY C:\>

sorry nathan i dont understand what u want me to do.......doesnt this enviroment settings look good?