<html>
<b>Hi,
I thought that the memory address of DOS screen is 0x0b00.
But this didnt work for me.
Can anyone help in accessing the screen by using this address.
</b>
</html> 8 1686
In article <20*******************@Brian-Darcey.news.aioe.org>,
jmorgan <yo*@somehost.somedomainwrote:
><b>Hi,
>I thought that the memory address of DOS screen is 0x0b00. But this didnt work for me. Can anyone help in accessing the screen by using this address.
Hmmm, word for word the same as a posting from 19 Mar 2006 19:46:35 -0800
--
"Is there any thing whereof it may be said, See, this is new? It hath
been already of old time, which was before us." -- Ecclesiastes
Richard Heathfield wrote:
jmorgan said:
>I thought that the memory address of DOS screen is 0x0b00. But this didnt work for me. Can anyone help in accessing the screen by using this address.
<OT>
In MS-DOS, the base segment of text video memory is either 0xB000 (if you
have a monochrome video adapter) or 0xB800 (for colour). At the cost of
making your program non-portable to non-MS-DOS platforms, you can access
video memory by setting a pointer to it, like this:
unsigned char *scrptr = (unsigned char *)0xB8000000UL;
(Make sure you're using large memory model, or it's a bit more
complicated.)
If I remember correctly you can still use far pointers
in the medium or small memory model if you qualify
them with "_far", for instance
unsigned char _far *scrptr = (unsigned char _far *)0xB8000000UL;
--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique http://www.cs.virginia.edu/~lcc-win32
jacob navia said:
Richard Heathfield wrote:
<snip>
>unsigned char *scrptr = (unsigned char *)0xB8000000UL;
(Make sure you're using large memory model, or it's a bit more complicated.)
If I remember correctly you can still use far pointers
in the medium or small memory model if you qualify
them with "_far", for instance
....which, as I said, is more complicated (but yes, you're right).
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
jmorgan wrote:
>
I thought that the memory address of DOS screen is 0x0b00.
But this didnt work for me.
Can anyone help in accessing the screen by using this address.
<OT>
The address of the text screen buffer on an IBM-PC compatible in real
mode is B800:0000.
</OT>
How to access this in C depends on implementation-specific extensions
in your particular compiler. You will need to go elsewhere to get
this implementation-specific information.
--
+-------------------------+--------------------+-----------------------+
| Kenneth J. Brody | www.hvcomputer.com | #include |
| kenbrody/at\spamcop.net | www.fptech.com | <std_disclaimer.h|
+-------------------------+--------------------+-----------------------+
Don't e-mail me at: <mailto:Th*************@gmail.com>
Walter Roberson wrote:
In article <20*******************@Brian-Darcey.news.aioe.org>,
jmorgan <yo*@somehost.somedomainwrote:
>><b>Hi,
>>I thought that the memory address of DOS screen is 0x0b00. But this didnt work for me. Can anyone help in accessing the screen by using this address.
Hmmm, word for word the same as a posting from 19 Mar 2006 19:46:35
-0800
That's strange indeed. Even the tags? Maybe it's a periodic post from a
spammer to harvest the email IDs of the respondents?
"santosh" <sa*********@gmail.comwrote in message
news:fs*********@registered.motzarella.org...
Walter Roberson wrote:
>In article <20*******************@Brian-Darcey.news.aioe.org>, jmorgan <yo*@somehost.somedomainwrote:
>>><b>Hi,
>>>I thought that the memory address of DOS screen is 0x0b00. But this didnt work for me. Can anyone help in accessing the screen by using this address.
Hmmm, word for word the same as a posting from 19 Mar 2006 19:46:35 -0800
That's strange indeed. Even the tags? Maybe it's a periodic post from a
spammer to harvest the email IDs of the respondents?
Maybe a cut-and-paste from the earlier message by someone who wasn't happy
with the answers at the time. Or maybe thought the DOS memory address may
have changed in last two years.
The subject line looks like his own work though, with his own spelling of
'address'.
--
Bart
In article <fs**********@canopus.cc.umanitoba.ca>,
Walter Roberson <ro******@ibd.nrc-cnrc.gc.cawrote:
>In article <20*******************@Brian-Darcey.news.aioe.org>, jmorgan <yo*@somehost.somedomainwrote:
>><b>Hi,
>>I thought that the memory address of DOS screen is 0x0b00. But this didnt work for me. Can anyone help in accessing the screen by using this address.
Hmmm, word for word the same as a posting from 19 Mar 2006 19:46:35 -0800
Wow. Can you say "Too much time on my hands..." ?
"Is there any thing whereof it may be said, See, this is new? It hath
been already of old time, which was before us." -- Ecclesiastes
I guess not.
On 26 Mar 2008 at 19:00, Kenny McCormack wrote:
In article <fs**********@canopus.cc.umanitoba.ca>,
Walter Roberson <ro******@ibd.nrc-cnrc.gc.cawrote:
>>In article <20*******************@Brian-Darcey.news.aioe.org>, jmorgan <yo*@somehost.somedomainwrote:
>>><b>Hi,
>>>I thought that the memory address of DOS screen is 0x0b00. But this didnt work for me. Can anyone help in accessing the screen by using this address.
Hmmm, word for word the same as a posting from 19 Mar 2006 19:46:35 -0800
Wow. Can you say "Too much time on my hands..." ?
Jeez, that's truly scary... I mean, I know there are some anaroks around
here, but that's ridiculous! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: hall |
last post by:
I have a question regarding where memory is allocated when arrays are
created. I'll illustrate this by example. I may be wrong on some
details, do feel free to correct me.
The code piece:
int...
|
by: Riadh Elloumi |
last post by:
Hi,
I have some problems when debugging memory allocation (for both malloc
and new) in a program that uses standard lists and vectors. When I add
an element to the vector, the overloaded...
|
by: TIM |
last post by:
for example i have one simple programm
int main()
{
int test = NULL;
while(1){
printf("%d\n",test);
getch();
test++;
}
|
by: Alan Brown |
last post by:
Subject: Setting Pointer to Video memory
Newsgroups: Optus:comp.lang.c++.moderated
Hi People,
I am trying to create a Help Screen in a program. I want to swap out the
video memory, use...
|
by: serikas |
last post by:
Is there a way to get aligned dynamically allocated memory?
(provided that the requested memory size is a power of 2.)
For example, if I request 128 bytes of memory, can I implement
an allocator...
|
by: Gurikar |
last post by:
HI,
class A()
{
private:
int i;
char c;
public:
A();
|
by: Nadav |
last post by:
Hi,
I am trying to get a direct pointer to the address of the screen ( something
like 0x0b00 in the happy DOS days ), how can I do that?
Should this be done in the kernel or it can also be done...
|
by: mwebel |
last post by:
Hi,
i had this problem before (posted here and solved it then) now i have
the same problem but more complicated and general...
basically i want to store the adress of a istream in a char* among...
|
by: Sagittarius |
last post by:
Hi there.
I have a problem concerning an UDP socket in C++ (Winsock).
The next paragraphs is merely to explain the system I am working on. If U want to skip it, I have marked the question in...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |