Solved

How can I access a device using phisical address in win95?

Posted on 1998-08-03
3
153 Views
Last Modified: 2013-11-19
I  have made  a PC card (ISA bus) composed of a dual port ram.
 
I need to read and write the ram in my app which is coded using MFC in WIN95

 I know that I can access  the ram directly  In MS-DOS. For example to write

10 at adress 0x08000 where the ram is mapped

unsigned int * a = ox08000;
(*a) = 10;

but I don't know how to do it  in WIN95 using MFC

Please, help me to solve that problem

Thank you
0
Comment
Question by:aeteta
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Author Comment

by:aeteta
ID: 1320160
I designed the pc- card use the address lines a0-a19 in ISA
0
 
LVL 2

Expert Comment

by:warmcat
ID: 1320161
If you change to using IO mapping, access to your dual port RAM is much simpler under '95.  Also, it is quite antisocial to reserve chunks of ISA high memory.
0
 
LVL 8

Accepted Solution

by:
Answers2000 earned 100 total points
ID: 1320162
I don't think you can do this in Ring 3 (user app level) code in Win95.

You need to write Ring 0 code which means a VxD or device driver.

For tools for a quick start check out
http://www.vireo.com
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Suggested Courses

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question