News:

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

Linking programs

Started by veronicak5678, October 09, 2009, 02:33:44 AM

Previous topic - Next topic

dedndave

what is the name of your assembler exe file and linker exe file ?
if you install the masm32 package, you will get masm version 6.14
i am using 6.15, but either should work

this is the one i use
http://www.4shared.com/file/139758027/648a9665/ML_online.html

here is a 16-bit linker (Lnk563.exe)
http://website.masm32.com/microsoft/Lnk563.exe

veronicak5678

I downloaded the file, but it executes and immediately shuts down... and what is the instruction 'OR?' and 'SHR?'

dedndave

grrrrr - lol
it is a zip file - you have to unzip it, first
i think the Lnk563 is also a zip (self-extracting) - you have to run it once before using it

veronicak5678

I did unzip it! I got an executable, which I executed, and then it died.

dedndave

ok - let me re-upload to that site - the file may be corrupt
hang on a few...


veronicak5678

The same thing happened, but I managed to run your after I took out the procs you wrote and put the putdec and putstrng stuff back in.

I am fooling around with it now trying to format it the way I need it and do the second part that uses the clock, but there are a few things I don't know, namely

shr, jc, jmp short, & or.

Also, it never seems to get to the bottom to display the stats. Did it when you ran it?

dedndave

SHR is shift right
JC is Jump if Carry
short tells the assembler it is a short forward reference (eliminates a NOP, is all)
OR - is logical OR - i use it to test the register value for zero

this is Randall Hyde's online instruction reference - very handy
http://www.arl.wustl.edu/~lockwood/class/cs306/books/artofasm/Chapter_6/CH06-1.html

i had to update that link
there is a file that goes with ML.exe named ML.err
it has all the error text used by that version of ML
i fixed the d/l link - you may want to d/l - once more - lol - sorry about that

veronicak5678

That reference looks great! Thank you. I have been looking for a good one.

I re-downloaded, and now I have both files, but the .exe still dies. Argh!

dedndave

lol - dang !
i dunno what to tell you - it runs here
i d/l'ed it and tested it
it may be something like this....
you type in ML
it runs the one that is in the PATH environment variable
the one you think you are running is not being executed
i don't suppose you know what a PATH environment variable is ?

find the old copy(ies) and rename it to ML_OLD.exe then try again

veronicak5678

No, I don't know what a Path environment variable is. I'm sorry! I renamed it, but to no avail.

dedndave

what version of windows are you using
well - let me upload version 6.14 - give me a few

try this one - version 6.14
http://www.4shared.com/file/139764026/1efb639b/ml614.html

veronicak5678

XP Home edition version 2002 SP2

Same thing happened!

Please don't worry anymore. I've taken so much of your time. I really appreciate all your help. I am going to have dinner and I will fool around with this some more later and tomorrow. I will most likely be back with all sorts of questions.

MichaelW

QuoteI re-downloaded, and now I have both files, but the .exe still dies.

By dies, do you mean that it closes immediately?
eschew obfuscation

veronicak5678

Yes. I see it flash open, then a split second later it closes by itself.