flat assembler
Message board for the users of flat assembler.

Index > Main > Assembly for i8086 in linux/windows

Author
Thread Post new topic Reply to topic
pEk



Joined: 29 Apr 2005
Posts: 2
Location: Portugal
pEk 29 Apr 2005, 21:13
I have this question and I'm sure you can help me on this:

I have to make a few simple programs using assembly (using intel 8086 instructions "I think!"), in class we gonna use TASM but I think this is only for windows, here is my problem, at home I just use linux so I've googled and found FLAT assembler, if I made my programs in linux using FLAT will they compile with TASM too?
The instructions are the same?
If not, how could I make the programs to work with TASM too without leaving my good old suse?

Thank you to all, and sorry if this is a stupid question but I'm a kind of new to assembly.
Post 29 Apr 2005, 21:13
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 30 Apr 2005, 08:02
problems:
Under linux you have completely diffrent API (system services, via int 40h in linux)

TASM, unless in "ideal mode" has different syntax, for example
FASM's "mov eax,variable" is TASM's "mov eax,offset variable" and
FASM's "mov eax,[variable]" is TASM's "mov eax,variable"

But genereally instructions are same. Other difference is in control directives (like FASM's "format", "org", etc.) in TASM they are completely different, and generally there is more of them.

I personally quess you had to create program for DOS, which would be running under windows. Then just use som e DOS emulator. If it should be really windoze application, then you have to use Windows emulator, kinda more fun.
Post 30 Apr 2005, 08:02
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
pEk



Joined: 29 Apr 2005
Posts: 2
Location: Portugal
pEk 30 Apr 2005, 15:00
I've downloaded and installed DOSEMU then installed TASM and it's working fine (so far). Very Happy

Thanks vid, your help where precious.
Post 30 Apr 2005, 15:00
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.