473,499 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Graphic mode under gcc

Hello,
I used GCC under Linux.
I want to change the graphic mode to write directly in the video memory.
I wrote that :
void setmode(unsigned int mode)
{
if (mode == 1)
{
__asm__("movl $0x13, %eax");
}
else
{
__asm__("movl $0x03, %eax");
}
__asm__("int $0x10");
}

I've a segfault at the "int instruction".

Thanks
Nov 14 '05 #1
4 1952
Jean-Baptiste CAMPESATO wrote:
Hello,
I used GCC under Linux.
I want to change the graphic mode to write directly in the video
memory. ...


ISO C only defines the core language, leaving tasks like yours
as implementation extensions. Because comp.lang.c only deals
with ISO C, your question is off-topic.

Please ask your question in a linux developers group.

--
Peter

Nov 14 '05 #2
Le Sat, 12 Mar 2005 01:58:58 -0800, Peter Nilsson a écrit*:
nly defines the core language, leaving tasks like yours
as implementation extensions. Because comp.lang.c only deals
with ISO C, your question is off-topic.

Please ask your question in a linux developers group.


Scuse me...
Nov 14 '05 #3
Jean-Baptiste CAMPESATO wrote:
I used GCC under Linux.
I want to change the graphic mode to write directly in the video memory.


You cannot write to video memory directly in any decent OS. There are APIs
(the Linux framebuffer API, vgalib, SDL) that more or less do the same,
but those are not on topic here.

Uli

--
Questions ?
see C++-FAQ Lite: http://parashift.com/c++-faq-lite/ first !

Nov 14 '05 #4
Mac
On Sat, 12 Mar 2005 01:58:58 -0800, Peter Nilsson wrote:
Jean-Baptiste CAMPESATO wrote:
Hello,
I used GCC under Linux.
I want to change the graphic mode to write directly in the video
memory. ...


ISO C only defines the core language, leaving tasks like yours
as implementation extensions. Because comp.lang.c only deals
with ISO C, your question is off-topic.

Please ask your question in a linux developers group.

^^^^^^^^
That's funny. I reread the orignal post very carefully, and I saw no
question. Just a series of statements.

;-)

--Mac

Nov 14 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
9876
by: Maxime Biais | last post by:
Hello, I'm looking for a graphic debugger for python on linux like DDD or GVD. I tried pdb and pdb-mode for emacs, but I would use a more gvd-like debugger. -- Maxime Biais
2
4972
by: curwen | last post by:
Hi, I have problem to create a well formed xsl-fo document using images dynamically generated from an http request using this tag: <fo:external-graphic content-type="content-type:image/gif"...
0
1019
by: bozdog | last post by:
Hi I have developed an access 2000 application which utilizes reports with a graphic file as the background of the detail section. There are several subforms placed over the graphic indicating...
1
4071
by: Mathias Goldau | last post by:
Hi, Can someone tell me where I find some material (e.g. a compiler with graphics.h and conio.h (for free)) related to graphic programming BGI-like, and sound programming (not PC-speaker). The...
1
5682
by: hamil | last post by:
I am trying to print a graphic file (tif) and also use the PrintPreview control, the PageSetup control, and the Print dialog control. The code attached is a concatination of two examples taken out...
8
1753
by: LM-Krav | last post by:
Hey all, i'm trying to access the screen memory, and generaly - enter the graphic mode. and do not know it's address or the commandline for it, please tell me what it is (the address or command...
1
3466
by: icepick72 | last post by:
On an academic note, I want to copy a Graphic to an Image (Bitmap). I have the Graphic object but not the origin image from which it originates; this is because I'm overriding the PrintDocument...
6
2135
by: dontwantspam | last post by:
Hello everyone, I'm working on this css site redesign http://www.maranathamalta.com/4given/testingmain.php I've tested on my machine running XP using Firefox 2.0.0.4, IE6 and IE7. It looks...
3
1123
by: Peter Anthony | last post by:
I would like to be able to save a Bitmap to a graphic file, such as a JPG, BMP, etc. Are there any 3rd party sources that provide a means to put this functionality into my VS C++ 2008 application...
0
7128
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,...
1
6892
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7385
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...
0
5467
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4917
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4597
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1425
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
661
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
294
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.