flat assembler
Message board for the users of flat assembler.

Index > OS Construction > displaying memory size

Author
Thread Post new topic Reply to topic
adefeo



Joined: 12 Jan 2004
Posts: 46
Location: Bellmore, Long Island, New York
adefeo 29 Jun 2005, 04:42
Hi all,

I have a rather noobish question. When you call Int 0x12 in realmode, it returns the memory size in AX. My problem is, how do I get this value into a string, and ultimately, on the screen. I can't put it in AL and call the teletype function, as this is a 16-bit value, and AL is only 8 bits.

Any ideas?

Thanks,
Anthony
Post 29 Jun 2005, 04:42
View user's profile Send private message Visit poster's website AIM Address Reply with quote
YONG



Joined: 16 Mar 2005
Posts: 7997
Location: 22° 15' N | 114° 10' E
YONG 29 Jun 2005, 07:15
This is, again, a question on integer outputting, i.e., printing the value of AX.

Check this link:

http://board.flatassembler.net/topic.php?t=42
- "i wrote a Sample code for Outputting integers" by Tommy

Also, I suggest you take a look at the DOS FAQs.

YONG
Post 29 Jun 2005, 07:15
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.