flat assembler
Message board for the users of flat assembler.
Index
> DOS > The standard .com sceleton on fasm? |
Author |
|
revolution 15 Jun 2008, 14:54
See the example that comes with the fasm download.
|
|||
15 Jun 2008, 14:54 |
|
rCX 15 Jun 2008, 15:28
Quote:
All you really need is... Code: org 100h ;code goes here ...but you can also use... Code: format binary as "com" use16 ;use 16 bit registers org 100h ;code goes here As revolution said you should look at the COMDEMO, or LIFE examples that come with fasm. _________________ "To define Recursion we first need to define Recursion." |
|||
15 Jun 2008, 15:28 |
|
FASMresearcher 16 Jun 2008, 08:50
revolution wrote: See the example that comes with the fasm download. Great thanks! |
|||
16 Jun 2008, 08:50 |
|
FASMresearcher 16 Jun 2008, 08:53
rCX wrote:
Great thanks! As revolution said you should look at the COMDEMO, or LIFE examples that come with fasm. _________________ "To define Recursion we first need to define Recursion."[/quote] |
|||
16 Jun 2008, 08:53 |
|
DOS386 16 Jun 2008, 09:54
> .model tiny
Not needed and prohibited > .386 Regrettably not supported ... but there are some macros > org 100h Required ... or org $0100 Code:
.code
entry_point:
end entry_point
Not needed and prohibited Code: push cs pop ds Required for MZ, optional for COM > And how I can mark the start/end of programm? Not needed Code: ; END. Code: format binary as "COM" ; better than undocumented guesses use16 ; use 16 bit code (default anyway) org $0100 ; critical ;code goes here Code:
assume blah:yes
Not needed and prohibited _________________ Bug Nr.: 12345 Title: Hello World program compiles to 100 KB !!! Status: Closed: NOT a Bug |
|||
16 Jun 2008, 09:54 |
|
wht36 22 Jun 2009, 14:39
org 100h - because DOS loads .com files at address 100h
bytes 0-FF = program segment prefix = holds command line, environment table pointer, file control blocks, etc. (check HelpPC) |
|||
22 Jun 2009, 14:39 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.