The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: stk on February 05, 2007, 07:36:41 PM

Title: Absolute new to assembler.
Post by: stk on February 05, 2007, 07:36:41 PM
Hello everyone, :bg

i have written many lines in this posting(my first), but after i have clicked on preview
all was gone. :'(

So here is the abbreviated version:

I am VERY interrested in assembly programming, because it is the machine's language.
But i don't know how to start.
I do not understand why there are so many different versons of assemblers, so i have
downloaded the following versions:

MASM32-package: does not work, error message: "a connected device does not work"

NASM: when i am at home, i'll try a solution wich i have read in a forum

GoASM: Not installed so far

Thank you!

greetings,
stk


Title: Re: Absolute new to assembler.
Post by: hutch-- on February 05, 2007, 07:42:11 PM
I can't help you with NASM or GoAsm but the masm32 installation usually works fine unless there is something wrong with your OS installation. Tell us a bit more about what OS version and whether you have DEP enabled and we may be able to help you.
Title: Re: Absolute new to assembler.
Post by: Vortex on February 05, 2007, 07:45:38 PM
stk,

Welcome on board.

Here is where you can download the Masm32 package :

http://www.masm32.com/masmdl.htm
Title: Re: Absolute new to assembler.
Post by: stk on February 06, 2007, 04:22:47 PM
Hello,

i have 2 computers one with Windows XP Home SB version and one with Windows 98 SE,
i have installed the masm32-package on the Win 98 system.
After the installing, i have clicked on masm32.exe (i think) and then i have got the error-message
(see first posting).

greetings,
stk
Title: Re: Absolute new to assembler.
Post by: hutch-- on February 06, 2007, 04:31:32 PM


> MASM32-package: does not work, error message: "a connected device does not work"

The MASM32 Project does not connect to any device apart from the normal hard disk, memory and processor. I would check that your OS is installed properly and is not virus or trojan damaged, the project has been successfully installed on hundreds of thousands of computers and is very reliable but it has no way of debugging damaged OS installations.
Title: Re: Absolute new to assembler.
Post by: stk on February 06, 2007, 04:43:26 PM
Hello,

thank you but i have a question:

i have installed the version for Win 2000 or later on my Win 98 system and not the
Win9x os version,is this maybe the problem?

stk
Title: Re: Absolute new to assembler.
Post by: TNick on February 06, 2007, 05:16:28 PM
Hello, stk, and welcome aboard!

There is no masm32.exe in the package, but here is an way to go, that should work well:

- create a new folder somewhere (c:\MyProg\MyFirst)
- within this folder, create a new file and rename it MAKEIT.BAT
- still within this folder, create a new file and rename it MyFirst.asm
- add to MyFirst.asm

.586
.MODEL FLAT, STDCALL
OPTION CASEMAP:NONE
INCLUDE windows.inc
INCLUDE kernel32.inc
INCLUDE user32.inc

INCLUDELIB kernel32.lib
INCLUDELIB user32.lib

.CONST
AppName    BYTE   "My first app using masm32",0
Message     BYTE    "Damn, it works!!!",0

.CODE
App_Entry_Point:
INVOKE MessageBox, NULL,ADDR Message,ADDR AppName,MB_OK
INVOKE ExitProcess,NULL
END App_Entry_Poiny


- add to MAKEIT.BAT
c:\masm32\bin\ml /c /COFF /Cp /I"C:\masm32\include" MyFirst.asm
c:\masm32\bin\link /SUBSYSTEM:WINDOWS /RELEASE /VERSION:4.0 /LIBPATH:"C:\masm32\lib"


If your installation is ok, it will work. Also, change c:\ to whatever drive your masm is on..

Regards,
Nick
Title: Re: Absolute new to assembler.
Post by: hutch-- on February 06, 2007, 05:25:16 PM
stk,

Yes, use the right version for the OS you have.
Title: Re: Absolute new to assembler.
Post by: stk on February 06, 2007, 05:25:58 PM
Hello,

thank you i'll try this at home.

So, masm32 has no own IDE?

Should i use the windows editor or RadASM, or is RadASM not recommendable for newbies?

Is there existing a "best" assembler? Wich is the most used?

greetings (i am so glad that i have found this forum) :dance:,
stk
Title: Re: Absolute new to assembler.
Post by: TNick on February 06, 2007, 05:57:50 PM
EasyCode or RadASM are great, IMO, for beginers

Regards,
Nick
Title: Re: Absolute new to assembler.
Post by: Vortex on February 06, 2007, 06:23:35 PM
Quote from: stk on February 06, 2007, 05:25:58 PMIs there existing a "best" assembler? Wich is the most used?

The most popular assemblers are Masm, Tasm, Fasm, Goasm, Poasm, Nasm and HLA. Every assember has it's own specific features. Instead of looking for the best one, you can select the right tool for the right job.
Title: Re: Absolute new to assembler.
Post by: stk on February 06, 2007, 06:34:00 PM
When you read the following, please remember i am an absolute newby.

Do you mean with "right job" only software, or is it possible to program your
own digital wristwatch with these versions (wich would you take for this project)
for example?

Thank you.

stk
Title: Re: Absolute new to assembler.
Post by: Vortex on February 06, 2007, 06:40:30 PM
I would suggest you to use Masm32. It has a lot of examples, tools and it has a huge number of users. Hutch maintains the package regularly. For some special tasks, you would need an assembler supporting binary file output but Masm32 can meet nearly all your requirements. With Masm, you can code a digital clock, it's matter of experience and knowledge of dealing with GUIs.
Title: Re: Absolute new to assembler.
Post by: stk on February 06, 2007, 07:11:48 PM
Hi Vortex,

do we mean the same?

I mean a real digital wristwatch, not a clock for the screen.

stk
Title: Re: Absolute new to assembler.
Post by: TNick on February 06, 2007, 07:25:33 PM
I'm shore Vortex wasn't meaning "a real digital wristwatch"... mostly because a wristwatch doesn't use 32 bit flat memory model. Note that you are not allowed to use ml for any target platform other than Windows! :) So, no wristwatch except if it's running Windows :) :) :)
Title: Re: Absolute new to assembler.
Post by: stk on February 06, 2007, 07:33:40 PM
Hi,

thank you, but if a programmer want do this, he could do it with assembler (but with
another version), right?

What means "ml"?

stk
Title: Re: Absolute new to assembler.
Post by: TNick on February 06, 2007, 07:40:30 PM
Yeap, a programmer could do that...
ml is an assambler (C:\masm32\bin\) that can generate object files from .asm files, but I'm not shore about the license (is for ml or for masm32?)
Title: Re: Absolute new to assembler.
Post by: stk on February 06, 2007, 07:55:43 PM
Hello :U,

thank's to all (users) for the answers to my questions! :U

@TNick:
I suppose that you are an american, why do you use the german word "Kindergarten".

greetings,
stk
Title: Re: Absolute new to assembler.
Post by: TNick on February 06, 2007, 08:06:57 PM
:) just first that came up in my mind at that moment. I live in Eastern Europe (Romania).

Regards,
Nick
Title: Re: Absolute new to assembler.
Post by: stk on February 06, 2007, 08:12:15 PM
that's not so far away from me, i live in Austria.

greetings,
stk