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

this is what i get when i try it with HIDE.....

READY C:\hide\bin>khla -v hw

KHLA - Customizable HLA shell utility
Written by Sevag Krikorian
Version 1.01

HLA (High Level Assembler) is
Written by Randall Hyde and released to the public domain.

===== Active Options =====
==========================
FORMAT: Win32 COFF output
ASSEMBLER: MASM
Generating CONSOLE Executable
-test active, redirecting STDERR
TEMP folder: C:\HIDE\temp\
Using Custom Link Section : Link
Processing Files:
        hw.hla
Compiling :hw.hla
hlaparse.exe -@ -v -sm -test "hw.hla"

HLA (High Level Assembler) Parser
Released to the public domain by Randall Hyde.
Version Version 1.77 build 9970 (prototype)
-t active
File: hw.hla
Output Path: "C:\HIDE\temp\"

Compiling "hw.hla" to "C:\HIDE\temp\hw.asm"
Compilation complete, 6246 lines,   0.048 seconds,  130125 lines/second
Assembling: C:\HIDE\temp\hw.asm
Target    : hw.obj
ml /c /Cp /coff /Fo"hw.obj" "C:\HIDE\temp\hw.asm"

    hw.obj
Error with program execution

READY C:\hide\bin>

READY C:\HIDE>cd temp

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

Directory of C:\HIDE\Temp

02/12/2006  07:51 AM    <DIR>          .
02/12/2006  07:51 AM    <DIR>          ..
02/12/2006  11:20 AM             1,305 hw.asm
02/12/2006  11:20 AM                 0 hw.bss.inc
02/12/2006  11:20 AM               170 hw.consts.inc
02/12/2006  11:20 AM               284 hw.data.inc
02/12/2006  11:20 AM               517 hw.extpub.inc
02/12/2006  11:20 AM                 0 hw.ro.inc
               6 File(s)          2,276 bytes
               2 Dir(s)  48,194,351,104 bytes free

READY C:\HIDE\Temp>

MichaelW

I think this does not necessarily indicate a problem. Try creating a new project, give it a unique name and make sure Console: Program or Unit is selected. Then once the project has been created paste your hw.hla code into the editor panel, save it, and select Build & Run from the Make menu.

I would try a repair from a XP install disk only if I could be reasonably certain that doing so would not create additional problems. I have had mixed results doing this with Windows 9x, never tried with Windows 2000 or XP.

eschew obfuscation

kb7wg

ok...did what u said...i got some info in output box....something.....could not execute tile and some other stuff...how do i copy from the output box?

MichaelW

The output box is an editor, you just mark and copy.
eschew obfuscation

kb7wg

i cant figure out how to use the mark function. i can highlite the text with my curser....but cant do anything with it. the control alt s and control alt e doesnt seem to do anything?

kb7wg

i can use the con-alt-s and con-alt -e and then copy in the console box......but not in the output box....

kb7wg

ok..sorry....had to use keyboard to copy....

Kmake Start
KHLA.exe helloW.hla


KHLA - Customizable HLA shell utility
Written by Sevag Krikorian
Version 1.01

HLA (High Level Assembler) is
Written by Randall Hyde and released to the public domain.

===== Active Options =====
==========================
FORMAT: Win32 COFF output
ASSEMBLER: MASM
Generating CONSOLE Executable
-test active, redirecting STDERR
TEMP folder: C:\HIDE\temp\
Using Custom Link Section : Link
Processing Files:
        helloW.hla
Compiling :helloW.hla
hlaparse.exe -@ -v -sm -test "helloW.hla"

HLA (High Level Assembler) Parser
Released to the public domain by Randall Hyde.
Version Version 1.77 build 9970 (prototype)
-t active
File: helloW.hla
Output Path: "C:\HIDE\temp\"

Compiling "helloW.hla" to "C:\HIDE\temp\helloW.asm"
Compilation complete, 6246 lines,   0.032 seconds,  195188 lines/second
Assembling: C:\HIDE\temp\helloW.asm
Target    : helloW.obj
ml /c /Cp /coff /Fo"helloW.obj" "C:\HIDE\temp\helloW.asm"

Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997.  All rights reserved.

Assembling: C:\HIDE\temp\helloW.asm

Linking:
polink @"C:\HIDE\temp\helloW.link"


Running...  C:\WINDOWS\system32\cmd.exe; /k "C:\HIDE\Projects\helloW\helloW.exe"

Could not execute tile


MichaelW

OK go into the projects folder, open the project folder, and run the exe (if present).


eschew obfuscation

kb7wg

it is present and it runs....even though the output box says it couldnt link....

MichaelW

The output indicates that it linked OK but failed to execute. Try entering the command line:

C:\WINDOWS\system32\cmd.exe; /k "C:\HIDE\Projects\helloW\helloW.exe"

At a command prompt. If this works then I'm not sure what to think.

eschew obfuscation

Sevag.K

Quote from: kb7wg on February 12, 2006, 03:23:16 PM
what wud u suggest?......a repair from my xp pro install disk?

Why does your ComSpec environment variable have a semicolon after it?
This will probably cause the "Run" feature of HIDE to malfunction as it uses this environment.
It may also malfunction any program that calls external programs using ComSpec environment.


By the way, to get the HIDE to work with MASM in all future projects and non-project mode, edit the khla.ini file in the HIDE\bin folder
In that file, there is a section called [KHLA Settings]

Here is what mine looks like:

[Environment]
lib=C:\Dev\HIDE\hlalib
hlalib=C:\Dev\HIDE\hlalib\hlalib.lib
hlainc=C:\Dev\HIDE\hlainc
hlatmp=C:\Dev\HIDE\temp\

[KHLA Settings]
UseCustomLink=true
GenerateLinkResponse=true
Verbose=false
Map=false
Symbol=false
Test=false
CompileTo=exe
ObjectType=coff
Assembler=fasm
Resource=porc
Linker=polink
Library=polib
LinkSystem=console
CleanTemp=false

[Link]
-heap:0xF4240,0xF4240
-stack:0xF4240,0xF4240
-base:0x4000000
-entry:HLAMain
-section:.data,RW
-section:.text,ER
-machine:ix86
kernel32.lib
user32.lib
gdi32.lib

[Defines]

[Process Files]


To use the MASM32 files, change the following 4 lines

Assembler=fasm
Resource=porc
Linker=polink
Library=polib

to

Assembler=masm
Resource=rc
Linker=link
Library=lib

And add a path to the MASM32\bin folder in Option -> Set Paths -> User Path


But before doing all that, you should see if HIDE works in default mode first.


MichaelW

Good catch. On my Windows 2000 system a trailing semicolon on the ComSpec environment variable will prevent the program from executing. It will not, however, cause hla.exe to fail.

eschew obfuscation

kb7wg

ok micheal.....ur command line works......what can i say.......
sevag......never fooled around with comspec.....removed it.......

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

READY C:\>cd hla

READY C:\hla>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
HLA include path: C:\hla\include
HLA temp path:
Linker Lib Path:  C:\hla\hlalib;C:\masm32\lib;C:\hla\hlalib

Files:
1: hw.hla

Compiling 'hw.hla' to 'hw.asm'
using command line [hlaparse  -v -sm -test "hw.hla"]
HLA (High Level Assembler) Parser
Released to the public domain by Randall Hyde.
Version Version 1.79 build 10130 (prototype)
-t active
File: hw.hla
Output Path: ""

Compiling "hw.hla" to "hw.asm"
Compilation complete, 6382 lines,   0.048 seconds,  132958 lines/second

Assembling "hw.asm" to "hw.obj" via [ml /c /coff /Cp /Fo"hw.obj"   "hw.asm"]
Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997.  All rights reserved.

Assembling: hw.asm
Linking via [link @hw.link._.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
kernel32.lib
user32.lib
gdi32.lib
-subsystem:console
-out:hw.exe
C:\hla\hlalib
hw.obj
LINK : fatal error LNK1181: cannot open input file "C:\hla\hlalib.obj"
Error returned by link = 1181

READY C:\hla>


and with hide ....

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

READY C:\hide\bin>khla -v hw

KHLA - Customizable HLA shell utility
Written by Sevag Krikorian
Version 1.01

HLA (High Level Assembler) is
Written by Randall Hyde and released to the public domain.

===== Active Options =====
==========================
FORMAT: Win32 COFF output
ASSEMBLER: MASM
Generating CONSOLE Executable
-test active, redirecting STDERR
TEMP folder: C:\HIDE\temp\
Using Custom Link Section : Link
Processing Files:
        hw.hla
Compiling :hw.hla
hlaparse.exe -@ -v -sm -test "hw.hla"

HLA (High Level Assembler) Parser
Released to the public domain by Randall Hyde.
Version Version 1.77 build 9970 (prototype)
-t active
File: hw.hla
Output Path: "C:\HIDE\temp\"

Compiling "hw.hla" to "C:\HIDE\temp\hw.asm"
Compilation complete, 6246 lines,   0.032 seconds,  195188 lines/second
Assembling: C:\HIDE\temp\hw.asm
Target    : hw.obj
ml /c /Cp /coff /Fo"hw.obj" "C:\HIDE\temp\hw.asm"

    hw.obj
Error with program execution

READY C:\hide\bin>


READY C:\hide\bin>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
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\earl
lib=C:\hla\hlalib;C:\masm32\lib
LOGONSERVER=\\SYSTEM2
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Path=C:\masm32;C:\masm\bin;C:hla;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Syste
m32\Wbem;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:\hide\bin>

looks like a little progress......

Evenbit

Quote from: kb7wg on February 11, 2006, 08:05:38 PM
hey nathan...explain something to me......when i was coding....long time ago......all i had to do was assemble a text file to a obj file and run it........then only complier there was....was for basic.what is a linker?   why do i have to complile anything.....and why do u have all these lib files?.......i have read the first 5 ass tuts on programmers haven.....and not one word of these things????
where can i get this info?
earl

Earl,

You can learn about these topics on Wikipedia (it expains things a lot better than I could):

http://en.wikipedia.org/wiki/Assembler
http://en.wikipedia.org/wiki/Compiler
http://en.wikipedia.org/wiki/Linker
http://en.wikipedia.org/wiki/Object_code
http://en.wikipedia.org/wiki/Library_%28computer_science%29

Nathan.

kb7wg