flat assembler
Message board for the users of flat assembler.
Index
> DOS > Could someone give me a basic skeleton of a FASM Program? |
Author |
|
Cas 19 Jun 2004, 07:00
In FASM, you don't need any kind of skeleton if what you're trying to build is a COM file (something short, as you ask). Even for an EXE file, there will be no much more you will have to write. You can make the COM file like this:
Code: org 100h mov ah,9 mov dx,message int 21h xor ah,ah int 21h int 20h message: db "Hello, world!", 0Ah, 0Dh, "$" That should be enough. For an EXE file, it's the same. You just have to add a format MZ at the beginning and define a main segment and an entry point. But this all is explained in the FAQ and plus, there are examples in the FASM ZIP that show this quite well! _________________ «Earth is my country; science is my religion» - Christian Huygens |
|||
19 Jun 2004, 07:00 |
|
zck127 20 Jun 2004, 05:04
thanx for your help:)!
|
|||
20 Jun 2004, 05:04 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.