I am complete newbie in asm and thought that you may help me build a simple hello exe (from a tutorial i found on the web) :

So the code is....

.model small
.stack
.data
message db "Hello world, I'm a stupid noob learning Assembly !!!", "$"

.code

main proc
mov ax,seg message
mov ds,ax

mov ah,09
lea dx,message
int 21h

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

..............

Using radasm or dos prompt i always get an error at linking whenever I use tasm or masm :

1)Masm32 > link test

Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
LINK : error : Segment reference in fixup record
test.obj : fatal error LNK1123: failure during conversion to COFF: file invalid
or corrupt

2)TASM 5r>tlink32 test

Turbo Link Version 1.6.71.0 Copyright (c) 1993,1996 Borland International
Fatal: 16 bit segments not supported in module test.ASM

If I try to assemble then link with tlink and not tlink32 I receive a message asking for the dpmiloader.exe file (for protected mode as I understood)

You guys have any idea ?
Posted on 2002-04-11 08:23:55 by Aquarius
That ASM code you have there is 16-bit DOS code, this forum is mainly about 32 bit Windows ASM. To get started in Win32asm, I suggest Hutch's MASM32 package. It has all the "Hello world's" and other sample files you'll ever need :) If you really really want to assemble the file you posted above, you need an old DOS link.exe, which I believe is available from Iczilions site, http://win32asm.cjb.net.

Good luck on your first programs :alright:
Posted on 2002-04-11 11:32:37 by Qweerdy
Thx m8 for help and support...I indeed wanted to start win32asm but the tutorials require a knowledge of asm I don't have...so think I'll start from the bottom and I'll play with dialogboxes later...

Soz for posting something at the wrong place
Posted on 2002-04-11 11:42:57 by Aquarius
Aquarius,

Depending on how much you already know, if you are starting from scratch, try reading Randy Hyde's Art Of Assembler to get the basics of how assembler works.

You can download the MASM32 package and it already has a large amount of example code to play with. It also has a code Wizard to create working skeletons with in a minute or so.

Iczelions tutorials are very good and some of our members have also written tutorial material to help programmers get into assembler. Thomas Bleeker is one of our members who has directly addressed this area.

For reference material, download the Intel manual set for either the PIII or PIV and make sure you get a copy of WIN32.HLP. MSDN later or the platformsdk for more recent reference material.

Good luck.

hutch@movsd.com
Posted on 2002-04-11 17:26:33 by hutch--
aquarius you can post your questions here, we'll quickly port you to win32 anyway :grin:

And don't call yourself a stupid noob :alright:
Posted on 2002-04-11 17:54:00 by Hiroshimator
Since 'Thomas Bleeker' is not searchable, his Alias is just 'Thomas', I thought i would set you up with his web site:

MadWizard.Org :grin:

:NaN:
Posted on 2002-04-11 19:53:17 by NaN
I would just like to say I learnt the basics of my assembly knowledge (from scratch) with Icz masm32 tutorials
Posted on 2002-04-11 22:54:18 by huh