![]() |
| | #1 |
| Registered User Join Date: Mar 2004
Posts: 38
| writing to vdu memory but done enough c programming in dos my problem is that i use the following code set a poniter to VDu memory in dos char far *scr=(char far *)0xB8000000L; unaware that gcc supports flat memory model i used the same code in programming for linux obviously it didn't work and error was flashed then i read some documentation and found where the problem was so i modified the above code as(removed far keyword and converted 0xB8000000 to flat model equivalent 0xB800000 ..tell me if i'm wron here) char *scr=(char *)0xB800000; this time it compiled successfully but when i treid to run the executable it didn't give proper result ....... please help me how to do this(ihave also treid including farptr.h ..but no use) |
| surdy is offline | |
| | #2 |
| and the hat of Jobseeking Join Date: Aug 2001 Location: The edge of the known universe
Posts: 21,676
| There is no direct access to the hardware, Linux is a protected operating system. |
| Salem is offline | |
| | #3 |
| Registered User Join Date: Mar 2004
Posts: 38
| thanks buddy well .......what does a closed post mean |
| surdy is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| memory reading vs. writing | R.Stiltskin | C++ Programming | 14 | 08-20-2008 04:57 AM |
| help! fifo read problem | judoman | C Programming | 1 | 08-16-2004 09:19 AM |
| Pointer's | xlordt | C Programming | 13 | 10-14-2003 02:15 PM |
| Managing shared memory lookups | clancyPC | Linux Programming | 0 | 10-08-2003 04:44 AM |