Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > character ROM programming

Reply
Thread Tools

character ROM programming

 
 
Guest
Posts: n/a
 
      08-12-2003
I am having difficulty getting the correct results accessing the character
rom. I should be getting 0 for the following code but instead it is giving
me E8h. The top byte of character bitmap 'A' is all 0, and thats what i
should be getting. I am compiling this in turbo c using large model. Any
suggestions. Thanks.

main()
{ unsigned char far *char_rom = (unsigned char far *)0xF000FA6EL;
printf("%x\n", *(char_rom + (65<<3)) );
return;
}



 
Reply With Quote
 
 
 
 
Jack Klein
Guest
Posts: n/a
 
      08-13-2003
On Tue, 12 Aug 2003 22:22:54 GMT, <(E-Mail Removed)> wrote in
comp.lang.c:

> I am having difficulty getting the correct results accessing the character
> rom. I should be getting 0 for the following code but instead it is giving
> me E8h. The top byte of character bitmap 'A' is all 0, and thats what i
> should be getting. I am compiling this in turbo c using large model. Any
> suggestions. Thanks.
>
> main()
> { unsigned char far *char_rom = (unsigned char far *)0xF000FA6EL;
> printf("%x\n", *(char_rom + (65<<3)) );
> return;
> }


We discuss the International Standard C language here, and it has no
"character rom" or "large model" or keyword "far". None of this has
anything at all to do with the C language.

Ask in news:comp.os.msdos.programmer.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++ ftp://snurse-l.org/pub/acllc-c++/faq
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
External H/H CD/Rom/CD-RW/DVD-Rom Drive Gerald Computer Support 5 12-13-2004 02:50 AM
Win XP Sp1 CD ROM and DVD Rom Not Recognizing Newly inserted discs Hunter Computer Support 5 12-12-2003 05:33 AM
How to burn the sound of a DVD-ROM to a CR-ROM Jean-Frédéric FRANCISCO DVD Video 0 12-11-2003 12:54 PM
Win XP Sp1 CD ROM and DVD Rom Not Recognizing Newly inserted discs Hunter Computer Support 4 10-14-2003 05:38 AM
Suggest Drive DVD ROM + CD ROM and CD+G (Karaoke) Thunder9 DVD Video 6 10-13-2003 07:41 PM



Advertisments