flat assembler
Message board for the users of flat assembler.

Index > DOS > Syntax in TASM

Author
Thread Post new topic Reply to topic
sgabor68



Joined: 09 Sep 2025
Posts: 6
sgabor68 01 Nov 2025, 10:50
Hello guys !

What is the difference between a 16-bit asm exe file and a 32-bit asm exe file in terms of syntax?

What would a short program look like in 16-bit tasm asm code and how in 32-bit tasm asm code, such as printing the text "Hello world" to the screen?

Thanks to everyone who helps me, I'm having a hard time finding references.
Post 01 Nov 2025, 10:50
View user's profile Send private message Reply with quote
Feryno



Joined: 23 Mar 2005
Posts: 518
Location: Czech republic, Slovak republic
Feryno 01 Nov 2025, 11:32
TASM is abandoned and you'll only waste your time with it. Better to use and learn live assembler.
here manuals for TASM
https://bitsavers.trailing-edge.com/pdf/borland/turbo_assembler/
Post 01 Nov 2025, 11:32
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20768
Location: In your JS exploiting you and your system
revolution 01 Nov 2025, 12:00
If sgabor68 is using DOS then TASM is a valid option.

However fasm is also available in a DOS version, and it includes an IDE. Showing examples for fasm sources in 16-bit or 32-bit code would be much easier. Indeed, the fasm source itself can show how to use 32-bit code, since the DOS IDE is written in it.
Post 01 Nov 2025, 12:00
View user's profile Send private message Visit poster's website Reply with quote
sgabor68



Joined: 09 Sep 2025
Posts: 6
sgabor68 02 Nov 2025, 08:08
Okay, thanks for the advice, I'll try fasm. Can you write me an example of fasm in 16 and 32 bit versions?
Post 02 Nov 2025, 08:08
View user's profile Send private message Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1739
Location: Toronto, Canada
AsmGuru62 02 Nov 2025, 12:11
Can FASM make 32-bit programs for DOS?
I was not aware.
I would like to see the code for that also.
16-bit I can help with.
Is this a homework?
Why the 'educators' not teach the proper stuff, like Windows Console programs?
The book I am writing begins with Windows Console and goes on into threads and optimization.
Post 02 Nov 2025, 12:11
View user's profile Send private message Send e-mail Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20768
Location: In your JS exploiting you and your system
revolution 02 Nov 2025, 12:13
AsmGuru62 wrote:
Can FASM make 32-bit programs for DOS?
I was not aware.
The fasm DOS IDE is 32-bit. The code has been there for many years.

But it isn't really about fasm, or the OS, it is about the code one decides to write. So one can also write 64-bit code for DOS, with fasm, if one wants to. There is nothing to prevent it.
Post 02 Nov 2025, 12:13
View user's profile Send private message Visit poster's website 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.