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

veronicak5678


dedndave

to generate that sequence, i have to start with a seed of 5555h, not 555h
gotcha !!! - lol

veronicak5678

Oh! I'm so sorry. I had it wrong in my notes.

dedndave

it was a lucky guess   :P

veronicak5678

So can I see what you have so far? I 'm still not sure about whether or not reseed stops when I want it to or continues through random.

dedndave

i fixed reseed
it is done and working - lol
with bl=1, it generates the sequence 832, 6809, 8658, 1206

i moved UPPER and LOWER into the main program and they are transfered on the stack

i changed the segments all around
the main program uses the DS register and DGROUP
the random routine uses the ES register and FAR_DATA

veronicak5678

When I try assembling, it says fatal error l1093: random.obj object file not found. I see the object file has been made, so why is it doing this?

dedndave

are you using the batch file ?
it is probably not looking in the right folder - just a guess

veronicak5678

Honestly, I don't even know what a batch file is!

dedndave

use these command lines - lol

ml /c main.asm
ml /c random.asm
lnk563 main.obj+random.obj,main.exe,nul.map,io.lib,nul.def

your linker may be named Link16.exe instead
the regular LINK.exe will not work with 16-bit code

veronicak5678

I get 'cannot open file ml.' I have never seen any of that stuff before, so I have a feeling this is not what I was supposed to be doing...

dedndave

ml.exe may be named MASM.exe
are you using the masm32 package from this site ?

dedndave


veronicak5678


MichaelW

The batch file works for me using ML 6.11 and the 16-bit linker (version 5.60.339).
eschew obfuscation