flat assembler
Message board for the users of flat assembler.

Index > Main > can't compile with INT 10h

Author
Thread Post new topic Reply to topic
MaaSTaaR



Joined: 09 Aug 2005
Posts: 8
Location: Kuwait
MaaSTaaR 23 Aug 2005, 22:53
Hello ..


i written this code

Code:
MOV     AH,0Eh
MOV     AL,'A'
INT     10h
    


and try to compile it (using command line) it's show this massege for me : `10` is not recognized as an internal or external command , operable program or batch file.

why ? Rolling Eyes
Post 23 Aug 2005, 22:53
View user's profile Send private message Reply with quote
gunblade



Joined: 19 Feb 2004
Posts: 209
gunblade 24 Aug 2005, 07:03
That sounds like a DOS error.. you sure your doing "fasm file.asm"?.. sounds like your trying to run the source file if anything Smile
Post 24 Aug 2005, 07:03
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 24 Aug 2005, 13:37
yup,
1. add "org 100h" and the beginning and "int 20h" at the end Smile
2. in command line write "fasm file.asm file.com'
3. run "file.com"
Post 24 Aug 2005, 13:37
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
MaaSTaaR



Joined: 09 Aug 2005
Posts: 8
Location: Kuwait
MaaSTaaR 24 Aug 2005, 15:31
Great it's work now Smile

but i have question , i know 20h is DOS int , but when i want write my own OS , should i use 20h ?
Post 24 Aug 2005, 15:31
View user's profile Send private message Reply with quote
Matrix



Joined: 04 Sep 2004
Posts: 1166
Location: Overflow
Matrix 24 Aug 2005, 23:14
MaaSTaaR,
if you write os what exactly dos interrupt should do in your os? Smile

i whould think you are making an os for dos...
Post 24 Aug 2005, 23:14
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 25 Aug 2005, 08:21
i quess it's not time for you to write OS yet. but of course, you can't use int 20h outside DOS. But your problem is problem of logic - what should int 20h do in your OS. int 20h is exit to parent program, so it has no meaning in OS.
Post 25 Aug 2005, 08:21
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number 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.