flat assembler
Message board for the users of flat assembler.

Index > DOS > Problem: Int 21 Ah =1 >> Int 15 Ah = 1!!!

Author
Thread Post new topic Reply to topic
Vion



Joined: 26 Apr 2004
Posts: 6
Vion
Hello!
I have a problem with the optimization:
I tried to make a program that should read keys from the keyboard & display them; i used int 21 with ah = 1. When I assembled it in Debug, it worked: You pressed a key, and it showed up.
Unfortunately, FASM (which otherwise seems to be WONDERFUL - though I am a newbie to judge this...) assembled it into int 15: But this one DOES NOT wait you to enter the key!
Is there any way to turn this off?
Is there any way to turn this off absolutely, i.e. to try out "no optimization" or so?? Cause I don't REALLY want to use Debug to check it... Rolling Eyes

Thank You in advance!!!!
Vion
Post 26 Apr 2004, 12:12
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7796
Location: Kraków, Poland
Tomasz Grysztar
You should use interrupt 21h not 21, as pure 21 means decimal number, and this is of course the same as 15h - that's why debugger shows such hexadecimal number to you. Just fix int 21 to int 21h and it should work.
Post 26 Apr 2004, 12:27
View user's profile Send private message Visit poster's website Reply with quote
Vion



Joined: 26 Apr 2004
Posts: 6
Vion
THANK YOU!!! Embarassed Very Happy
Post 27 Apr 2004, 06:56
View user's profile Send private message 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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.