Message-ID: <3AD74FC0.6040205@NOSPAM.uv.net>
From: jon <jon@NOSPAM.uv.net>
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.18 i686; en-US; 0.6) Gecko/20010123
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.minix
Subject: Re: writing to video memory and ioctl.
References: <3ACCBF39.9030105@NOSPAM.uv.net> <9auuko$2qd$1@news.netmar.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 93
Date: Fri, 13 Apr 2001 20:13:04 +0100
NNTP-Posting-Host: 212.134.126.108
X-Complaints-To: abuse@easynet.net
X-Trace: monolith.news.easynet.net 987192551 212.134.126.108 (Fri, 13 Apr 2001 21:09:11 BST)
NNTP-Posting-Date: Fri, 13 Apr 2001 21:09:11 BST
Organization: [posted via Easynet]
Path: news.adfa.edu.au!clarion.carno.net.au!news0.optus.net.au!news1.optus.net.au!optus!news.mel.connect.com.au!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!diablo.netcom.net.uk!netcom.net.uk!easynet-monga!easynet.net!easynet-post2!monolith.news.easynet.net!not-for-mail
Xref: news.adfa.edu.au comp.os.minix:37191

Thats because i was copying from my vmware session by hand,
so i mad a few spelling mistakes !

Jon
--



m.bannister@consultant.com.nospam wrote:

> You're having a laugh right?  I can't see how your C code is even compiling! 
> Fix your typos first...!
> 
> Change...
>     int actual_addresse;
> to...
>     int actualy_address;
> 
> Change...
>     phys_copy(VID_MEM_ADDR + actually_address, &tc, 1L);
> to...
>     phys_copy(VID_MEM_ADDR + actualy_address, &tc, 1L);
> 
> Change...
>     if(mode = 0x13)
> to...
>     if(mode == 0x13)
> 
> 
> Then see if your problems are still the same  :-)
> 
> Best regards,
> Mark.
> 
> 
> In article <3ACCBF39.9030105@NOSPAM.uv.net>, jon  <jon@NOSPAM.uv.net> writes:
> 
>> Hi,
>> 
>> i managed to sort my problems with my driver. The problem I am having is
>> drawing a pixel on a screen from my driver.
>> 
>> 
>> my code for switching video mode goes like this:
>> 
>> void v_change_videomode(u8_t mode)
>> {
>> 	reg86.b.intno = 0x010;
>> 	reg86.b.ah = 0x0;
>> 	reg86.b.al = mode;
>> 	level0(int86);
>> }
>> 
>> and my code for drawing to video memory goes like this:
>> 
>> #define VID_MEM_ADDR 0xa0000L
>> 
>> void v_put_pixel(u16_t cols, u16_t x, u16_t y, u8_t col)
>> {
>> 	int actual_addresse;
>> 	u8_t tc;
>> 
>> 	tc = col;
>> 
>> 	actualy_address = x + (y * cols);
>> 	phys_copy(VID_MEM_ADDR + actually_address, &tc, 1L);
>> }
>> 
>> i then placed a bit of code on that end of v_change_videomode() that 
>> went like this:
>> 
>> ....
>> if(mode = 0x13)
>> 	for (x = 0; x < 320 ; x++)
>> 		v_put_pixel(320, x, 10, x % 255);
>> ....
>> 
>> my intention was just to draw a multi colo(u)red line across
>> the screen. however, the driver changes videomode, but no line is
>> drawn, and im baffled to why this is. any ideas?
>> 
>> Jon
>> --
>> 
> 
> 
> 
>  -----  Posted via NewsOne.Net: Free (anonymous) Usenet News via the Web  -----
>   http://newsone.net/ -- Free reading and anonymous posting to 60,000+ groups
>    NewsOne.Net prohibits users from posting spam.  If this or other posts
> made through NewsOne.Net violate posting guidelines, email abuse@newsone.net


