Interrupt 21h service 30h (get version number of dos)?
-
Hi everyone, can anyone give me a sample source code on how to show the main version of dos (for ex. 3 in DOS 3.10) and the minor version number (for ex. 10 in DOS 3.10) separately. I am new to assembly language programming and i need to create a program that will show the version number of dos. ;for example if my computer DOS version number is DOS 3.10, and i run the program using tasm.exe and tlink.exe the output will be: THE MAIN VERSION OF DOS IS: 3 THE MINOR VERSION OS DOS IS: 10 YOUR DOS VERSION NUMBER IS: 3.10 I will really appreciate you help guys, Thank you and GOD BLESS... =)
-
Answer:
Well i can guide you coding is your part so here is the trick which i got. First of all have a look at the int 30h function at http://tutorialacademy.blogspot.com/2009/09/int-21h-general-function-despatcher.html As you see there int 30h returns the value of main version in AL and minor version in AH , So now you have to print them for printing you can use 02h service which prints character so now add 48 in the value so it will now represents a character as 48 is the ascii code of 0. So if dos version is 4.6 then it will print 48+4=52 which is ascii code of 4 and then 48+6=54 which is the ascii code of 6. Hope you got the trick. For detailed info of interrupt services you can check this page http://tutorialacademy.blogspot.com/2009/09/int-21h-general-function-despatcher.html
Ransom at Yahoo! Answers Visit the source
Related Q & A:
- How to get line number from .NET pdb?Best solution by Stack Overflow
- How to get specific number in XPATH?Best solution by Stack Overflow
- How can I delete or change my mobile device number on yahoo messenger beta version?Best solution by in.answers.yahoo.com
- How do you get misty back to her gym in crystal version?Best solution by Yahoo! Answers
- What is the at&t customer service number?Best solution by ChaCha
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.