By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,601 Members | 1,543 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,601 IT Pros & Developers. It's quick & easy.

meaning of the statement

P: 19
I went to the site http://www.brackeen.com/home/vga/bitmaps.html and wanted to check out one of the c programs available there on my Turbo C++ compiler. But those files couldn't be opened by TC. It asked me to check the pif file. I don't know what is pif.
Also I noticed the statement below.
"Remember to compile in the LARGE memory model"
What is the meaning of this statement? Are there some extra steps for me to take so that the file can be viewed by tc.exe?

Also I need the asckey codes for right, top, left and right arrow keys please.
Nov 15 '06 #1
Share this Question
Share on Google+
3 Replies


Expert 100+
P: 1,510
I went to the site http://www.brackeen.com/home/vga/bitmaps.html and wanted to check out one of the c programs available there on my Turbo C++ compiler. But those files couldn't be opened by TC. It asked me to check the pif file. I don't know what is pif.
Also I noticed the statement below.
"Remember to compile in the LARGE memory model"
What is the meaning of this statement? Are there some extra steps for me to take so that the file can be viewed by tc.exe?

Also I need the asckey codes for right, top, left and right arrow keys please.
The memory model determines how the Turbo C compiler generates code for the 16-bit Intel x86 processors. For a description see
http://en.wikipedia.org/wiki/Memory_model

To compile the bitmap.c program under Turbo C open a Command Window, change to the directory where the code is and type (switch -ml specifies the large memory model)

tcc -ml bitmap.c

if you are using the TC IDE you select Options > Compiler > Code generation and select Large

When you run the bitmap program the display will switch in Full Screen mode, Alt/Enter will switch back
Nov 15 '06 #2

P: 19
The memory model determines how the Turbo C compiler generates code for the 16-bit Intel x86 processors. For a description see
http://en.wikipedia.org/wiki/Memory_model

To compile the bitmap.c program under Turbo C open a Command Window, change to the directory where the code is and type (switch -ml specifies the large memory model)

tcc -ml bitmap.c

if you are using the TC IDE you select Options > Compiler > Code generation and select Large

When you run the bitmap program the display will switch in Full Screen mode, Alt/Enter will switch back

Thanks Horace1...I will follow your directions and later give you feedback later.
Nov 15 '06 #3

100+
P: 111
Hai srinpraveen

convert this

byte *VGA=(byte *)0xA0000000L;

to

char far *VGA=(char far *)0xA0000000L;

outp( ); to outportb();

The file size should be 64KB only. Because the size of char array is 65536 bytes only if we are working in TC in low memory. In dos we can able to work with 1Mb of RAM. To access more memory we have to use large memory model. Read the book IBM Pc and clones by GovindRajalu and Hardware trouble shoothing maintainig and repairing by JonhBeglow

visit this for trouble shooting

www.brackeen.com/home/vga/trouble.html
Nov 16 '06 #4

Post your reply

Sign in to post your reply or Sign up for a free account.