Message board for the users of flat assembler.
> DOS > Newbie information on com programming
Goto page 1, 2 Next
Heya, i am new to fasm asm, i played with hla, and win32 masm, but decided that i wanted to cover real asm, well 100% not lots of macros etc.
so i went to the most talked about multi os assembler (fasm)
unfortunatly i cannot find any tutorials for fasm com programming.
me and a friend are learning together, and are currently lost, i have found some tutorials, but they don't work,(A86 tutorials).
so i was wondering if you could give me some information
the skeleton of a com project, ie. how does it layout with data etc
in masm, on the win32 side it was .data etc
what i intend to end up with is a simple program that works like so:
1: asks the user for input
2: compares that input to a predefined value
3: if the value matches, send exit message (congratulations) then hit exit code
4: if the user doesn't enter the correct character, jump back and start again, after displaying a error message stating try again.
if anyone has a good source of tutorials, for fasm/com programming. please inform me!
|13 Sep 2005, 07:25||
if you mean dos com executable, a fasm package of dos version has such example. com format is extremelly easy: it has to start from 100h, and will start also from 100h after loading. some dos function needed to be known to provide input/output.
here is a (stupidiest?) example - maybe will be helpful
Last edited by shoorick on 13 Sep 2005, 14:03; edited 1 time in total
|13 Sep 2005, 10:03||
; fasm example of writing 16-bit COM program org 100h ; code starts at offset 100h use16 ; use 16-bit code call printz db 'Guess a number ',0 mov ah,1 int 21h cmp al,