flat assembler
Message board for the users of flat assembler.

Index > Main > displaying the result of int 12h

Author
Thread Post new topic Reply to topic
ahelg



Joined: 17 Sep 2006
Posts: 1
ahelg 17 Sep 2006, 23:35
I've been messing around in assembly. I noticed that the command INT 12h gets the ammount of RAM and stores it in kbs. Now I've been trying to write a program which gets the amount of RAM and displays it but I can't seem to find a way of doing that. Could someone explain to me how I would display the results of 12h?

P.S. As you probably have noticed I'm a complete newbie to assembly. I saw some code for finding the ram size and being me I started messing with it to try and find a way of throwing it back at me.
Post 17 Sep 2006, 23:35
View user's profile Send private message MSN Messenger Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo 18 Sep 2006, 22:49
If the number is in kilobytes, you'll need to multiply it by 1024 to get the amount in bytes. To print the result, you'll need a hex2ascii routine (e.g., see thread below):

http://board.flatassembler.net/topic.php?p=40158
Post 18 Sep 2006, 22:49
View user's profile Send private message Visit poster's website Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo 19 Sep 2006, 22:14
This will probably also help a lot: Smile

How to determine amount of free conventional memory?
http://board.flatassembler.net/topic.php?p=30603
Post 19 Sep 2006, 22:14
View user's profile Send private message Visit poster's website 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.