The MASM Forum Archive 2004 to 2012

Miscellaneous Forums => 16 bit DOS Programming => Topic started by: Magicle on January 31, 2010, 01:58:55 PM

Title: Trouble assembling \ linking... I didn't find anything on search ..
Post by: Magicle on January 31, 2010, 01:58:55 PM
When im trying to assemble or link it gives me the following error:

assembling
QuoteAssembling: C:\Documents and Settings\Schnitzel\Desktop\asd.asm
C:\Documents and Settings\Schnitzel\Desktop\asd.asm(8) : error A2004: symbol type conflict
C:\Documents and Settings\Schnitzel\Desktop\asd.asm(18) : warning A4023: with /coff switch, leading underscore required for start address : main
Volume in drive C has no label.
Volume Serial Number is B44D-7E31

Directory of C:\Documents and Settings\Schnitzel\Desktop

01/31/2010  01:26 PM               228 asd.asm
               1 File(s)            228 bytes
               0 Dir(s)   1,756,749,824 bytes free

linking:

Volume in drive C has no label.
Volume Serial Number is B44D-7E31

Directory of C:\Documents and Settings\Schnitzel\Desktop

01/31/2010  01:26 PM               228 asd.asm
               1 File(s)            228 bytes
               0 Dir(s)   1,756,749,824 bytes free


Anyone has some insight on this?
Btw, I have put the 'link16.exe' file into the bin.

The code I am trying to compile is the following

.model small
.stack
.data
message db "blablabla $"
.code

main proc
    mov ax,seg message
    mov ds, ax

    mov ah, 09
    lea dx,message
    int 21h

    mov ax,4c00h
    int 12h
main endp
end main

Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: Magicle on January 31, 2010, 03:56:18 PM
This is annoying, let me try and explain what i've done.

I've downloaded MASM32 -> installed -> renamed link.exe to link32.exe -> downloaded the 16bit link and named it link.exe.
I have no idea what these error lines mean honestly. Perhaps I should just use turbo assembly?
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: TNick on January 31, 2010, 05:07:31 PM
You didn't tell us what command line you have used. Since I have little time, here is a small example program posted a while ago in another forum. I had a quick translation, but you should understand what's going on inthere.

Make.bat assumes the package is in c:\masm32\ and uses standard name (link16)

Use this to see where your problem is. If posted example does not work, please post entire output from the console.
Nick

PS
Quote from: Magicle on January 31, 2010, 03:56:18 PM
Perhaps I should just use turbo assembly?
Perhaps you should...  :toothy
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: Magicle on January 31, 2010, 06:01:16 PM
Lol, that seems to work. Putting my code as 'sort.txt' worked just fine.
It generates the correct .exe - i even used debug 'sort.exe' from cmd, and everything was fine.

Can you actually tell me how come the assembler won't do it? /cry

edit: thanks alot btw :)
and sorry im a bit new to this as you can see.
I dont have too much issues with the code, but the assembler is killing me - lol

Edit2:
Btw, about that command line...................rofl.
I just used the "assemble + link" or each one separately from project -> assemble and link on MASM32
Should I have used the ml function from the cmd window? <:
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: TNick on January 31, 2010, 06:31:18 PM

Quote from: Magicle on January 31, 2010, 06:01:16 PM
Btw, about that command line...................rofl.
I just used the "assemble + link" or each one separately from project -> assemble and link on MASM32
Should I have used the ml function from the cmd window? <:

It does, ultimately, use the command line. However, I don't use qeditor and, as I said, I don't have much time right now to look into it. My suggestion is to use a similar bat file to get you running.

To have a look at various switches aviable, use:
c:\masm32\bin\ml.exe /?
c:\masm32\bin\link16.exe /?
at the command line.

Quote from: Magicle on January 31, 2010, 06:01:16 PM
Can you actually tell me how come the assembler won't do it? /cry
qEditor will - probably - use switches appropriate for 32-bit PE exe (like /coff), but is "hiding" that from you after a menu item.

Nick
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: Magicle on January 31, 2010, 06:45:30 PM
Alright, I'll be just using the c:\masm32\bin\ml.exe filename.asm
and ...\link.exe filename.asm

I don't wanna sound retarded but...
How do I make it work? Rofl. Double click on the executable file wont do it (again, sorry for being stupid!)
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: dedndave on January 31, 2010, 06:59:26 PM
it is a 16-bit program
you need to use the 16-bit linker (and a 16-bit batch file, which isn't included with masm32, as far as i know)
coff files are strictly 32-bit - won't do for 16-bit code   :P

there are a couple different 16-bit linkers floating around, so i have included a batch file for each
if your linker is named link16.exe, use a16a.bat
if your linker is named lnk563.exe, use a16b.bat
when you have the right one, delete the other and change the name to a16.bat   :U
oh - i place mine in the masm32\bin folder so it is in the execution path
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: TNick on January 31, 2010, 07:09:02 PM
:) Don't worry about it.
A funny solution would be to

QuoteECHO OFF
C:\masm32\bin\ml.exe /c Sort.asm
IF NOT %ERRORLEVEL% == 0 GOTO STOPNOW
C:\masm32\bin\link16.exe Sort.obj
IF NOT %ERRORLEVEL% == 0 GOTO STOPNOW
Sort.exe
:STOPNOW
pause
ECHO ON
Assuming you work under Windows and you use 16-bit emulated mode. Or are you posting these messages from a dos prompt (http://www.masm32.com/board/index.php?topic=13110.msg102018#msg102018)?  :bdg

Replace the Sort string with the name of your exe. It will be build and, if successfull, will run it.
To simply run the exe, just use
Sort.exe
pause


Nick
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: Magicle on January 31, 2010, 07:12:32 PM
Thank you very much dave !! :bg
Could u explain what's coff please?

@Nick
I just called my .asm file, sort - so it will directly work.
However, it does not run it when it's finished creating it (or am I missing something?)
again , really sorry if im not getting it - this is new to me  :'(

Edit:
Dave, I tried but still I get the 'ole same errors when trying to assemble and link from the MASM menu.
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: TNick on January 31, 2010, 07:15:31 PM
You should really refine your search skills.
COFF (http://en.wikipedia.org/wiki/COFF)

Please post the output from the command prompt.

Nick
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: Magicle on January 31, 2010, 07:16:26 PM
I didn't even bother to search what coff was lol, thanks.

edit:
here...

(http://img691.imageshack.us/img691/3556/cmd1.jpg)
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: dedndave on January 31, 2010, 07:21:44 PM
well - "coff" is a windows file format - Common Object File Format
they are the format (or one of the formats) required to link into 32-bit PE (Portable Executable) executable files
PE files are actually modifications of the COFF format

http://msdn.microsoft.com/en-us/library/ms809762.aspx

now - your problem
i haven't looked at the sort code
but - here is what i would do
write a simple 16-bit "Hello World" program and test the batch process to verify that is all up and running
it that works, you know you have a bug in the sort program   :bg

        .MODEL SMALL
        .STACK 512

;------------------------------------------------------------

        .DATA

MsgText db 'Hello World',13,10
        db 'Press any key to continue ...',13,10,36

;------------------------------------------------------------

        .CODE

_main   PROC    FAR

;set the DS register to DGROUP

        mov     ax,@DATA
        mov     ds,ax

;display the message

        mov     dx,offset MsgText
        mov     ah,9
        int     21h

;wait for a key

        mov     ah,0
        int     16h

;terminate

        mov     ax,4C00h
        int     21h

_main   ENDP

;------------------------------------------------------------

        END     _main
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: Magicle on January 31, 2010, 07:24:05 PM
Well, it gives me the same error for your program dave.
Safe to assume something in the code is not functioning as it should?

(btw Dave, if you look up - you'll see ive posted a similar source code , even simpler.)

edit:
I've tried doing it on my own through CMD , it gives me the same result.
either im doing something wrong, or i dont know what it is  :(
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: dedndave on January 31, 2010, 07:27:03 PM
using the a16 batch file, try this
get a console window into the same folder as the sort.asm file, then....

C:\whatever => a16 sort

try the same thing with the hello program....

C:\whatever => a16 hello
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: TNick on January 31, 2010, 07:31:33 PM
May we assume a brand new Windows Seven?
You may need this http://www.microsoft.com/windows/virtual-pc/download.aspx

Nick
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: Magicle on January 31, 2010, 07:32:33 PM
Unfortunately Nick, I am on a x86 (32bit) XP Pro.

Give me a second there dave ill edit in a sec.
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: dedndave on January 31, 2010, 07:34:39 PM
ahhhhh - maybe it is a 64-bit machine/OS - lol
if that is the case, you are SOL
you can't run a 16-bit program
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: Magicle on January 31, 2010, 07:37:16 PM
This is what im getting:

(http://img513.imageshack.us/img513/4773/cmd2.jpg)

Dave, what do you mean a 64bit machine? Like... my processor ? <: (Amd Phenom X4 )
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: TNick on January 31, 2010, 07:39:45 PM
I have found this while searching with your error message (http://www.google.ro/search?q=cannot+load+vdm+ipx/spx+support):
http://rumkin.com/reference/problems/csnw.php

The problem is not with your exe but with the settings of the system!! Solve that first!

Nick
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: Magicle on January 31, 2010, 07:42:33 PM
Damnit, thanks alot for this Nick !!!
I'll follow the steps and let you guys know shortly  :cheekygreen:

Edit: Alright I edited the file, now let me try again !

Edit2:
I still cannot run it... No error messages this time with => a16 sort

When im using your sort program this is what I get:

(http://img99.imageshack.us/img99/9738/cmd3q.jpg)
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: dedndave on January 31, 2010, 07:46:29 PM
also - it looks like you are trying to run a16 out of the zip file - that ain't gonna fly, either
unzip the a16.zip file and place the 2 batch files into your masm32\bin folder
c:\masm32\bin should be in the PATH environment variable
then, try a16a and a16b to see which one is right as mentioned before
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: Magicle on January 31, 2010, 07:49:38 PM
Alright. Give me a minute to do it. Will edit when I'm done. (And I HAVE extracted them... but just used the B one.)

Edit:
Sadly, none of the .bat files seem to work.
Perhaps I need a -how to install this fucking program 101- manual. lol .  :'( :'(
Well, I honestly don't know what to do. Perhaps
re-install -> rename to link32.exe the current one -> donwload the 16bit one and name it link16.exe -> put the .bat files into the bin dir
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: dedndave on January 31, 2010, 07:54:35 PM
the pic you posted here....

http://www.masm32.com/board/index.php?topic=13263.msg103050#msg103050

says something about PKSFX trying to extract something
that command is not in the a16 batch file

a16a is the one you want - your linker is named Link16.exe
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: Magicle on January 31, 2010, 07:56:50 PM
Quote from: dedndave on January 31, 2010, 07:54:35 PM
the pic you posted here....

http://www.masm32.com/board/index.php?topic=13263.msg103050#msg103050

says something about PKSFX trying to extract something
that command is not in the a16 batch file

a16a is the one you want - your linker is named Link16.exe

That is because of the lnk563 file - which extracts the link.exe (16bit) file !!!!
Maybe I should take it out of the BIN dir? lol , this is just annoying.
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: dedndave on January 31, 2010, 08:00:35 PM
no no no - lol
now you are making trouble for yourself
let's take things one step at a time   :bg
take a deep breath and repeat three times "this is easy stuff"

let's get 4 things in place that we all know work
place all of them into the masm32\bin folder, and we will execute from that folder
1) ml.exe - should already be there
2) Link16.exe - should already be there
3) hello.asm - i posted the code - i know it works
4) a16a.bat - copy it to that folder and rename it to a16.bat

once you have those 4 things in the c:\masm32\bin folder......
open a console window, and then.....
> cd \masm32\bin
> a16 hello
> hello
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: TNick on January 31, 2010, 08:02:11 PM
I would say we should separate the problems. First, you must be able to run a 16-bit application in console mode. I think you can't, and that's the problem.
Take this file and try to run it. It works fine here. If it doesn't work on you, then, as I said before, you do not have a problem assembling or liniking. You have a problem RUNNING the damn thing.

Nick

[EDIT]
This thread (http://www.computing.net/answers/windows-95/msdos-prompt-cannot-execute-exes/167580.html) gives some info about what may cause
"windows command prompt cannot execute"
In that particular case Conagent.exe  was missing.
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: Magicle on January 31, 2010, 08:09:07 PM
LOL Nick your program works !!! I'm so happy rofl.

Okay now just have to figure out what im doing wrong :(

@Dave,
thanks man, you're really awesome hahaha

Alright. I've put the 4 files in the \masm32\bin folder.
Copied the a16a.bin file from your attachment
ml.exe -> there
link16-> there

After running c:\masm32\bin a16a hello
It creates the hello.exe file - It still doesn't run it though.
Would you like to see what it writes? It's similar to the previous things. (I reinstalled btw, coz i had lots of junk in the bin folder. Now Just added the hello.asm and the a16a)
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: dedndave on January 31, 2010, 08:09:21 PM
that sort program runs fine here, Nick   :U
i am using windows xp media center edition (same as xp pro) sp2
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: dedndave on January 31, 2010, 08:10:52 PM
yes please - i would like to see if the batch file runs correctly - or if not, the error messages

EDIT - if the batch file runs and creates the hello.exe - zip that exe file and post it so i can try it on my machine   :bg
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: TNick on January 31, 2010, 08:11:30 PM
Quote from: Magicle on January 31, 2010, 08:09:07 PM
LOL Nick your program works !!! I'm so happy rofl.
Double-click or name typed in console?

QuoteThe MS-DOS window that pops up when a command is executed is not the same as the MS-DOS Prompt window.
In the first case "c:\windows\system\conagent.exe" is executed; in the second case "c:\windows\command.com" is executed.
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: Magicle on January 31, 2010, 08:17:08 PM
@Nick
Double click!

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

(http://img269.imageshack.us/img269/5470/fkthis.jpg)
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: dedndave on January 31, 2010, 08:18:12 PM
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
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: TNick on January 31, 2010, 08:19:29 PM
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.
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: dedndave on January 31, 2010, 08:20:09 PM
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
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: Magicle on January 31, 2010, 08:20:33 PM
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)
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: 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
but - he has the batch file running as it should
i am pretty sure the Link16.exe program is a 16-bit program
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: dedndave on January 31, 2010, 08:24:45 PM
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
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: Magicle on January 31, 2010, 08:26:52 PM
hahaha alrighty

Where do i put path in cmd?
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: TNick on January 31, 2010, 08:29:50 PM
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
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: dedndave on January 31, 2010, 08:30:00 PM
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
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: Magicle on January 31, 2010, 08:30:30 PM
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
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: TNick on January 31, 2010, 08:33:07 PM
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
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: Magicle on January 31, 2010, 08:34:21 PM
Rofl, I'm kinda tired of editing ........... :bg
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: dedndave on January 31, 2010, 08:35:51 PM
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
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: Magicle on January 31, 2010, 08:38:39 PM
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 !!!!
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: TNick on January 31, 2010, 08:44:54 PM
^Alright ! It worked just fine :)

Does it run? Or you managed to assemble the program?
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: Magicle on January 31, 2010, 08:47:20 PM
Yes Nick !
When im running it from the cmd (cd ..\dir\) and just put a16a filename
then it creates the .exe and i can run it successfully - the hello world message appears

when I use your sort batch file, it creats the .exe but i cannot run it !
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: TNick on January 31, 2010, 08:50:04 PM
Please Zip the sort exe and post it
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: dedndave on January 31, 2010, 08:52:15 PM
hmmmm - make sure the sort.exe is the only executable in the path that is named sort
which, by the way, is a bad choice of names, as there is a DOS pipe named sort
maybe it is trying to execute the pipe
you might consider renaming the program to mysort.asm and .exe to avoid the confusion
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: Magicle on January 31, 2010, 08:53:35 PM
There you go .
When the batch file finishes it creates it but says it cannot open it (like most of the previous screenshots).

Edit:
I've edited the .bat file, with some random names, so it wouldnt use sort
It did the exact same 'cant run the process' error....
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: TNick on January 31, 2010, 08:57:30 PM
QuoteHello World
Press any key to continue ...

It works here...
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: Magicle on January 31, 2010, 08:57:53 PM
Ok, then something weird is going on here <:
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: dedndave on January 31, 2010, 09:00:04 PM
works here - although it is not the sort program - lol
rename your SORT.ASM file to MYSORT.ASM
then, try assembling that
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: TNick on January 31, 2010, 09:01:01 PM
Really, did you restart the system after first solved problem (ipx/spx thing)? If not, I think you should do so and try again...

Nick
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: Magicle on January 31, 2010, 09:03:40 PM
I didn't restart my system... Ill do it and be back asap.

Btw Dave,
I've already tried naming it to bla.asm
and renaming the batch file as well (of course.... right click-> edit -> changed the .asm .obj .exe names to match)
Still didn't work..... I'll brb.
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: dedndave on January 31, 2010, 09:07:55 PM
well - you don't want the batch file to be named the same as the executable
the batch file will always be executed
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: Magicle on January 31, 2010, 09:10:12 PM
Ok I think the mystery is resolved !

I tried downloading my own Sort.exe file-  and while it was on the desktop, it worked just fine.
I compiled another 'bla.exe' file- and it didnt work in the sort folder.
So i took it out of the folder and voila - works.

@Dave
The batch file is called make.bat so no worries :)
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: dedndave on January 31, 2010, 09:11:43 PM
ok - NOW, you can be a Happy Larry   :P
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: TNick on January 31, 2010, 09:12:07 PM
Dave,

I think he is talking about my batch, which has the names hard-coded inside, as previously posted.

Quote from: Magicle on January 31, 2010, 09:10:12 PM
I compiled another 'bla.exe' file- and it didnt work in the sort folder.
So i took it out of the folder and voila - works.
Mystery is resolved when you know why... :) And I still don't.
Maybe a good night sleep will help.

Regards,
Nick
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: Magicle on January 31, 2010, 09:18:19 PM
Alright so ive done some more 'attempts'.

i deleted the .obj file -> still doesnt work
deleted the .asm file -> still doesnt work
moved the .bat file to another folder -> still doesnt work

moved the .exe file to another folder -> worked.

So its not one of the files interrupting the process, its the location maybe (???)
Though not clear why  :eek
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: Magicle on January 31, 2010, 09:22:36 PM
Btw, thanks alot for the help guys. You've been awesome.   :U
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: jj2007 on January 31, 2010, 10:15:04 PM
OT: This thread has reached five pages within 24 hours - never seen before :U
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: Magicle on January 31, 2010, 11:26:20 PM
That's probably because no one as retarded as me came up until now.  :lol ( :'()
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: TNick on February 01, 2010, 06:18:42 AM
Quote from: Magicle on January 31, 2010, 09:22:36 PM
Btw, thanks alot for the help guys. You've been awesome.   :U
You are welcome!

Quote from: Magicle on January 31, 2010, 11:26:20 PM
That's probably because no one as retarded as me came up until now.  :lol ( :'()
I think you should think higher about yourself. I find it annoying to keep reading these statements about yourself being this or that. You are just starting to learn a new thing and you're doing just fine. :U
Remember that you may come across your post in 5 years or so, when you will have 3749 posts.  :green2

Nick
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: Magicle on February 01, 2010, 02:34:38 PM
Hahaha thanks nick!  :wink

Its just that the damn program made me wanna kill something  :lol
But now when i can finally compile stuff (YES!), i can finally start working on codes.
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: Magicle on February 01, 2010, 02:36:30 PM
Btw, can you guys recommend some good tutorial sites?
I'm learning from 2 sites currently, but they sure hell don't cover even half of what assembly is about.
Also, if you know of a book that's really good - I might just buy it !
Thanks in advance.
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: TNick on February 01, 2010, 04:29:23 PM
I'm just curious why 16-bit? I would recommend http://win32assembly.online.fr/ for tutorials in 32bit
I don't think you should spent money on books, since there is plenty info on net about this subject.

Told ya, improve your search skills! :) Manny "noobs" came by and ask same questions over and over again. If you don't find your answer, then you are ready to open a new thread.

Nick
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: Magicle on February 01, 2010, 05:30:23 PM
Hence why I didn't open a new thread :P

And yes, I kinda fail at searching (or so I've been told...lol).
Thanks for the suggestion.
Why 16bit? I believe it is wiser to start from simple and then move to 32bit assembly codes.
Building your way up usually assures better results - a step at a time.  :wink
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: dedndave on February 01, 2010, 05:57:21 PM
well - it is nice to understand the basic principals of 16-bit
but, i would suggest you not spend a lot of time on it
you are going to learn all about BIOS and DOS function dispatchers via the INT instruction
and you have to learn all about segmented addressing
neither of those are any good to you when you move to 32-bit code
if you want to write programs that use the windows graphical interface, you may as well start out with 32-bit code
Title: Re: Trouble assembling \ linking... I didn't find anything on search ..
Post by: Magicle on February 01, 2010, 06:04:24 PM
Ahhhhh! Alrighty then, now I get it.
Thanks for sharing Dave, I've already started with the tutorials on the site that Nick gave me!
I have to admit, this is quite useful.
Again, you guys are awesome! Thanks.  :U
I'm really glad this isn't like most forums, that people try to show you how "smart" they are and know more than you.
People are willing to help here, and that's just grand. Thumbs up for everyone here.  :thumbu