Trouble assembling \ linking... I didn't find anything on search ..

Started by Magicle, January 31, 2010, 01:58:55 PM

Previous topic - Next topic

Magicle

@Nick
Double click!

@Dave, give me a sec.
Here's the pic, ill post the file in a few.


dedndave

under xp, i get ntvdm.exe either way for 16-bit programs - cmd.exe is the 32-bit console window
conagent is an oldie - you must be running win 2000 or win 98

TNick

The red thing is because of what dave is using inside bat (dir)
Please try to run the exe by typing at the command prompt.

@Dave:
I didn't tested myself. Is the information in the thread I was talking about.

dedndave

ok - that looks great
but - i didn't see what happens when you run Hello
zip the Hello.exe file and post it

the report on the C: drive is ok - the batch file has a DIR command and that is part of it's output

Magicle

ALRIGHT GUYS I AM HAPPY TO DECLARE THATTTTTTTTT
THE PROGRAM IS FUCKING WORKING !!!!!!!!!!!!!

I have no idea what changed though  :eek :eek

The hello world one ! Working !  :cheekygreen:
Just wanna give a really big thanks to you both for helping me.. i know it was long and tiring (sorry about that)

dedndave

i looked at that thread, also, Nick
the one thing i did not see there as a re-boot - lol
but - he has the batch file running as it should
i am pretty sure the Link16.exe program is a 16-bit program

dedndave

don't be all "Happy Larry" just yet - lol
we are not done
what we have verified is that the batch file, the assembler, the linker, and the program work
what that tells us is that you probably do not have c:\masm32\bin in the PATH environment variable
at the command prompt, try this.....

> PATH

see if c:\masm32\bin is in the path
if not, we can modify it in the control panel and make it be there   :bg

Magicle


TNick

Quote from: dedndave on January 31, 2010, 08:21:54 PM
i looked at that thread, also, Nick
the one thing i did not see there as a re-boot - lol
:) By the way, that may help us here, too...

I wasn't careful enough, it seems. It was a thread about win98.

Quote from: Magicle on January 31, 2010, 08:20:33 PM
ALRIGHT GUYS I AM HAPPY TO DECLARE THATTTTTTTTT
THE PROGRAM IS FUCKING WORKING !!!!!!!!!!!!!
I still think it's weird that you had the message "Cannot execute ..."

EDIT
Just type path and <ENTER>. If masm32\bin is not there, it must be added
Nick

dedndave

Control Panel
System icon
Advanced tab
at the bottom - Environment Variables button
in the bottom window - scroll down until you find the "path" variable (not pathext)
double-click it - an edit window will pop up
add the path to the list "c:\masm32\bin" without the quotes
each folder in the path variable is seperated by a semicolon, so add that as well
click OK - OK - OK to close all the boxes

Magicle

Alright I just saw it doesnt matter, 'path' is the same in each directory lol. (damn i suck)

It doesnt appear in the 'path=...'  Sooooo, what now?  :lol

TNick

Boys! This doesn't work! We have to have some kind of rule...

Dave, you post when (minute mod 3) = 0
magicle, you post when (minute mod 3) = 1
yours, truly, willpost when (minute mod 3) = 2

:green2 :green2 :green2

Magicle


dedndave

Control Panel
System icon
Advanced tab
at the bottom - Environment Variables button
in the bottom window - scroll down until you find the "path" variable (not pathext)
double-click it - an edit window will pop up
add the path to the list "c:\masm32\bin" without the quotes
each folder in the path variable is seperated by a semicolon, so add that as well
click OK - OK - OK to close all the boxes

now, you should be able to place hello.asm into any folder on the C drive and assemble it using a16.bat
1) place the hello.asm file in a folder on the C drive
2) open a command prompt window and CD into that folder
3) at the prompt...
> a16 hello

if that works try it with the sort program

Magicle

Done.  :U

Alright ! It worked just fine :)
(And now I actually know what 'path' does ! cool)

Edit:
lol this is whack, now the .exe file from the sort program won't work !!!!