473,395 Members | 1,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

meaning of the statement

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
3 2286
horace1
1,510 Expert 1GB
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
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
baburk
111 100+
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

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

Similar topics

4
by: renderman | last post by:
Hi, I looked through a computergenerated code because I had to edit something manually. I found this line: <xsl:when test="''='FALSE'"> I don't get what this means.
9
by: Qiao Jian | last post by:
I am new to c. Today I just read an h file within which there is statements: #ifndef _RANDOM_H #define _RANDOM_H So what is the meaning or purpose of this statement? When should I use such...
87
by: Robert Seacord | last post by:
The SEI has published CMU/SEI-2006-TR-006 "Specifications for Managed Strings" and released a "proof-of-concept" implementation of the managed string library. The specification, source code for...
43
by: emyl | last post by:
Hi all, here's an elementary question. Assume I have declared two variables, char *a, **b; I can then give a value to a like a="hello world";
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.