flat assembler
Message board for the users of flat assembler.

Index > Windows > I have questions which I can't find in the FAQ.

Author
Thread Post new topic Reply to topic
2



Joined: 26 Sep 2006
Posts: 92
2
I'm considering trying Windows ASM. I've done some DOS and Linux,but
I feel I might want to try it for something new.

So,I have 2 questions.

What are the advantages of 32 bit Windows ASM compared to DOS?

Can I do stuff in Windows without having to include files?

Can I do Windows Console programs? Like you can in Dev-C++ ?

I'm interested in writing to the screen or to a file which I can already do under
DOS ASM. So I'm hoping that Win ASM allows me to do that stuff possibly
easier? That's what I've read.

_________________
There are 10 kinds of people in the world.
Those who know binary and those who haven't met me.
Post 14 Nov 2006, 23:04
View user's profile Send private message Reply with quote
coconut



Joined: 02 Apr 2004
Posts: 326
Location: usa
coconut
1) no segment:offset coding, your process has single large memory space
2) you can manually build pe file and/or imports section - but you must use win32 api to do almost anything
3) yes use fasm's 'format pe console' - then look into GetStdHandle api to output text
4) you may find some macros/snippets you can reuse in your code, otherwise youll need to learn the api to work with files. i dont believe you can output directly to screen like in DOS, maybe someone else here can confirm that
Post 14 Nov 2006, 23:54
View user's profile Send private message Reply with quote
2



Joined: 26 Sep 2006
Posts: 92
2
OK,well I'll try. I plan on at least doing Hello World.
Post 15 Nov 2006, 01:16
View user's profile Send private message Reply with quote
2



Joined: 26 Sep 2006
Posts: 92
2
Hey,here's something I need to know.

Does Windows have interrupts?

In both DOS and Linux,you have interrupt numbers.

I never forget the awesome string output calls.

int 33 when ah=9 can print text in DOS
int 128 when eax=4 can also do it in linux

So,does Windows have a set of those interrupts that do things?
Post 15 Nov 2006, 01:45
View user's profile Send private message Reply with quote
okasvi



Joined: 18 Aug 2005
Posts: 382
Location: Finland
okasvi
no, actual win32 coding has no interrupts.
Post 15 Nov 2006, 01:53
View user's profile Send private message MSN Messenger Reply with quote
coconut



Joined: 02 Apr 2004
Posts: 326
Location: usa
coconut
everything is done through the windows api. look in fasm windows package for some examples
Post 15 Nov 2006, 03:29
View user's profile Send private message Reply with quote
2



Joined: 26 Sep 2006
Posts: 92
2
I messed with the Hello World example,but what I want is a console.

I suppose since what I'm looking for is already done in DOS,I shouldn't
bother with a stupid API thing.
Post 15 Nov 2006, 19:35
View user's profile Send private message Reply with quote
coconut



Joined: 02 Apr 2004
Posts: 326
Location: usa
coconut
you cannot even do a simple 'hello world' in windows without using the api - even when working with the console from within windows
Post 16 Nov 2006, 02:41
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17669
Location: In your JS exploiting you and your system
revolution
Win32 fasm is a console program. Have a look at "fasm.asm" in the win32 folder of the download.
Post 16 Nov 2006, 10:48
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
also, take a look at Projects/FASMLIB, and there look at win32 examples.
Post 16 Nov 2006, 11:32
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number 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.