×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How to access ISA device which be mapped memory address 0xF00000~0xF80000?

How to access ISA device which be mapped memory address 0xF00000~0xF80000?

How to access ISA device which be mapped memory address 0xF00000~0xF80000?

(OP)
hi~

We have a ODM x86 PC board which has a on-board NVRAM. (NVRAM can store data even power-off)
The NVRAM is designed as a ISA device. and map to memory address 0xF00000~0xF80000 (For ISA device)
We have test the hardware in MS-windows using utility "rw-everything" (some kind of debug tool)
Now, I want write a C program to do some NVRAM R/W test and run the program in DOS
But as I known, a program cannot access memory address 0xF00000~0xF80000 directly
for example. the following code cannot work.
int *pAddr = (int *)(0xF00000);
printf( "memory: %d", *pAddr );

do anyone know how to do? or has some kind library can access special system memory?

Thanks.

RE: How to access ISA device which be mapped memory address 0xF00000~0xF80000?

Which MS windows OS are you using? Win 95/98/ME or Win NT/2K/XP/Vista/7? They way you access memory is different depending on which one you are using.

RE: How to access ISA device which be mapped memory address 0xF00000~0xF80000?

(OP)
Hi ~
First of all,thanks for your reply.

l use MS DOS 6.22 .
Do you have any idea?

Thanks

RE: How to access ISA device which be mapped memory address 0xF00000~0xF80000?

Sorry, didn't check that you replied. Which compiler are you using?

If you are using a 16 bit compiler, then the addressing is slightly different.

1) You have to make sure you are using the large model. The small model only has an addressing range of 64K.
2) Check the addressing: 0XF0000 to 0xF8000 is F000:0 to F000:8000. Check if your compiler has a format for segmented addressing. The alternative is to do something like

CODE

unsigned int far * pAddr = 0xF0000000;
printf ("%04x\n", *pAddr); 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close