News:

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

Hello (and a question)

Started by Tinito16, September 26, 2009, 06:10:24 AM

Previous topic - Next topic

sinsi

Light travels faster than sound, that's why some people seem bright until you hear them.

MichaelW

Quote from: evlncrn8 on September 26, 2009, 09:52:15 AM
you could try running it in dosbox (google), it might work then...

AFAIK ML 6.11 functions only as a 32-bit Windows app.

QuoteBut is it useful?

Not to me :lol
eschew obfuscation

sinsi

I'm pretty sure that ML versions before 6.14 were dos/os2 bound exe's - my version of masm6 (on 5 1/4 floppies!) was for programming os2 or dos, not even win3
Light travels faster than sound, that's why some people seem bright until you hear them.

MichaelW

I think you're right, near the start I find:
Copyright (C) 1986-1991 Phar Lap Software
eschew obfuscation

dedndave

Tino
"link sum2...." isn't gonna get it - lol
and - you need a 16-bit linker
look in the masm32\bin folder and see if you can find link16
if not, d/l one here...
http://website.masm32.com/microsoft/Lnk563.exe

ThexDarksider

I never tried to compile a 16 bit application in Assembly but I tried it in C and I never got it to run so I installed DOS on Virtual PC and it worked there...

Tinito16

Quote from: dedndave on September 26, 2009, 12:13:17 PM
Tino
"link sum2...." isn't gonna get it - lol
and - you need a 16-bit linker
look in the masm32\bin folder and see if you can find link16
if not, d/l one here...
http://website.masm32.com/microsoft/Lnk563.exe

Why won't "link sum2,,,,," work? It worked before (when I still had Vista). Or at least, the .exe was created. I checked in the masm folder (I have it in C:\masm\), but the linker is only "LINK" not "LINK16"... will try it.

Tinito16

I downloaded the file, renamed it "LINK16" so it would not conflict with the linker I already had, put it in the masm folder, and ran the rest from command prompt. It worked! Here's a screenshot of a program that writes in video memory:


dedndave

ohhhhhhh - those are commas
my eyes are going - lol - i thought they were periods
good to see you got things going Tino   :U
most of us use a batch file to do the assembling and linking - you may want to do the same
i wrote one that also looks for resource files and if a second parameter "P" appears on the line, it uses PoLink (with different resource files)

Tinito16

The only thing I'm left with right now as far as doubts are concerned is whether my system is ok or not (given that Vista worked with the linker provided to me by my professor). Or, maybe the new version of NTVDM.exe isn't compatible with that particular linker?

Tinito16

Quote from: dedndave on September 27, 2009, 06:01:28 AM
ohhhhhhh - those are commas
my eyes are going - lol - i thought they were periods
good to see you got things going Tino   :U
most of us use a batch file to do the assembling and linking - you may want to do the same
i wrote one that also looks for resource files and if a second parameter "P" appears on the line, it uses PoLink (with different resource files)

I was reading up on wikipedia's batch file entry, just before my Vista installation died, but I'm not sure how to do such a thing (I basically created a "Hello, World" .bat in notepad).

dedndave

i am not sure what happened there
it may be a failure that is unique to vista
i have, so far, managed to avoid vista - lol

batch files are simple text files
let me dig up a 16-bit batch....

dedndave

here is what i use for 16-bit code

@echo off
if "x%1"=="x" goto ascusage
if exist %1.asm goto ascasm
:ascusage
echo Usage: asc asmfile
echo "asmfile" = asmfile.asm
goto batchexit
:ascasm
if exist %1.obj del %1.obj
c:\masm32\bin\ml /c %1.asm >c:\masm32\bin\asmbl.txt
if errorlevel 1 goto showtxt
if exist %1.exe del %1.exe
c:\masm32\bin\Lnk563 %1.obj; >>c:\masm32\bin\asmbl.txt
:showtxt
if exist %1.obj del %1.obj
type c:\masm32\bin\asmbl.txt
:batchexit
dir %1.*

notice that my 16-bit linker is named "Lnk563.exe"

dedndave

here - i made one for you that uses "Link16.exe"
unzip this and put the BAT file in the masm32\bin folder (that folder should be in your path variable)
then, if you want to assemble "My16Code.asm", just type

a16 My16Code

at the command prompt

Tinito16

Thanks! I just got it now (it's 4 am and I gotta wake up at 8) so I'll make sure to check it out tomorrow (or today? lol). The reason for my being awake at this hour: Java project. For NEXT week. LOL. I love to code, but sometimes I take it too far...