flat assembler
Message board for the users of flat assembler.

Index > Windows > include problems for beginner

Author
Thread Post new topic Reply to topic
casey



Joined: 18 Aug 2005
Posts: 35
casey
Hi All,

I am new to Windows assembler programming apart from playing
around a bit back when I joined this group. At the time I was
tossing up between masm and fasm. Now I am trying to make time
to give it another go on my new computer. I am familiar with
with assembler DOS programming using TASM, MASM (without the
HLL macro directives) and mostly NASM although this was some
time ago now.

Once again I am working through the Iczelion tutorials using
fasm source code provided by Sulaiman Chang. I remembered to
change the return to ret but the include I have forgotten
how to set up. With MASM this seemed to be all automatic after
I loaded it.

When using the editor provided with fasmw I had to change the
include '%fasminc%\win32a.inc' to include 'win32a'. But when
I unzipped the Fresh editor (perhaps too complicated for me to
use?) I had to give the full pathway.

include 'c:\fasmw\include\wind32a'

This worked for the Fresh editor but now it doesn't work for
the other editor, even for those with the include 'win32a',
that worked fine before loading Fresh.

It now gives error messages:

Instruction:
define field@struct ExceptionCode,dd<?>
Source:
exceptions.inc[32]
struct.inc[14]

I am sure this all very elementary but I haven't really done
any of this for many years.

Thanks,

John Casey
Post 21 Mar 2006, 21:51
View user's profile Send private message Reply with quote
vbVeryBeginner



Joined: 15 Aug 2004
Posts: 884
Location: \\world\asia\malaysia
vbVeryBeginner
sorry casey,
it could be code faults.
maybe it is time for me to do a real update on the tutorial code.

btw, could you let me know what tutorial are you following now?
Post 22 Mar 2006, 00:30
View user's profile Send private message Visit poster's website Reply with quote
casey



Joined: 18 Aug 2005
Posts: 35
casey
> sorry casey,
> it could be code faults.
> maybe it is time for me to do a real update on the tutorial code.
>
> btw, could you let me know what tutorial are you following now?

=========================

I thought the only Windows tutorial for fasmw was the
Iczelion tutorials?

It is a problem in that the Iczelion text is for the MASM
version and I now have to figure out the HLL stuff again,
.IF and IFELSE etc.

One of the problems I had earlier was the examples being
in other assembler syntax, namely MASM and RosAsm both
not looking like the simple NASM DOS syntax I used to use.
Thus I spent hours trying to figure them out so I could
translate their code to FASM. One of the reasons I think
I lost interest back then.

I did a search of the FlatAsm messages to find my old posts
when I first tried to learn Windows Asm. This was back in
September 2005. It is amazing how much I had forgotten!

Back then I changed,
'%fasminc%\win32a.inc' to '%include%\win32a.inc
but I don't remember how I figured that one out.

However it isn't working now. Fresh requires the full file
path. Someone also suggested back then to use win32ax.inc
but that isn't recognized by Fresh anymore either.

I don't see how it could be source code faults as they
compiled fine back in September 2005.

--
JC
Post 22 Mar 2006, 08:33
View user's profile Send private message Reply with quote
vbVeryBeginner



Joined: 15 Aug 2004
Posts: 884
Location: \\world\asia\malaysia
vbVeryBeginner
hi casey,
Quote:

I don't see how it could be source code faults as they
compiled fine back in September 2005.

oh. fasm underwent some changes from september 05 to now, (well, unless u are using the sept 05 version) otherwise, usually, some changes in code are required.

i am trying to set up some video tutorials so that to ease everybody learning journey, i post the link here later.
Post 22 Mar 2006, 16:57
View user's profile Send private message Visit poster's website Reply with quote
vbVeryBeginner



Joined: 15 Aug 2004
Posts: 884
Location: \\world\asia\malaysia
vbVeryBeginner
ok,
i just made 7 tutorials movie for new comer. hopefully could somehow solve ur problem.

http://sulaiman.netadvant.com/
Post 22 Mar 2006, 20:26
View user's profile Send private message Visit poster's website Reply with quote
casey



Joined: 18 Aug 2005
Posts: 35
casey
Am unable to unzip the files.

Although I seem to remember seeing the .rar files
before I don't actually have the software to unzip
them? Seems like .rar adds more complexity to get
some simple outcome.

I see I have to buy WinRAR from rarlab?

I have to minimize my video downloads as my limit
it 200Meg download per month.

casey
Post 25 Mar 2006, 23:34
View user's profile Send private message Reply with quote
AsmER



Joined: 25 Mar 2006
Posts: 64
Location: England
AsmER
casey,
Don't worry, actually you don't have to buy anything. You can download WinRAR trial version from winrar's homepage. In trial version at the and, you will see message which says that you should register your copy of the program. Nothing more Very Happy

_________________
;\\ http://theasmer.spaces.live.com \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Post 25 Mar 2006, 23:45
View user's profile Send private message Reply with quote
UCM



Joined: 25 Feb 2005
Posts: 285
Location: Canada
UCM
you can use 7zip too: http://www.7-zip.org/
although decompression only for all formats except ZIP, 7z, tar, bz2 and gzip, supports also rar, cab (windows can compress these for you), arj, lzh, chm (wow!), z, cpio, rpm and deb

_________________
This calls for... Ultra CRUNCHY Man!
Ta da!! *crunch*
Post 25 Mar 2006, 23:57
View user's profile Send private message Reply with quote
r22



Joined: 27 Dec 2004
Posts: 805
r22
WinRAR's good but 7zip is better.
7zip is open source freeware.
www.7-zip.org
Post 26 Mar 2006, 00:00
View user's profile Send private message AIM Address Yahoo Messenger Reply with quote
casey



Joined: 18 Aug 2005
Posts: 35
casey
Thank you everybody I have the movie tutorials unzipped and working.

Not sure about the movies however as I have to try and memorize
all the moves, a series of stills or just statements as to what to
select with the mouse may have been easier? I could just print
them out. Anyway I shall give it a go.

casey
Post 26 Mar 2006, 01:06
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.