Re: [colorforth] Setting a pixel on the screen
- Subject: Re: [colorforth] Setting a pixel on the screen
- From: "Ray St. Marie" <ray.stmarie@xxxxxxxxx>
- Date: Tue, 27 May 2008 13:23:56 -0600
rethinking my previous post to this question...
Hi Jason,
Ray here
On Tue, May 20, 2008 at 4:41 PM, Jason Kemp <jason.kemp@xxxxxxxxxxxxxxxx> wrote:
> Good evening all,
>
> I have been attempting to set a pixel on the screen to white. Please show
> me what I am doing wrong:
>
> : ohno show black screen ffff 400 400 1024 * + 2* 1e80000 + ! keyboard ;>
> Only the ffff and the 1e80000 are in hex. The screen is 1024x768, 16-bit,
> VESA 117h.
>
> Thanks,
> Jason
>
Jason, have you tried the word color after ffff, to set the color, as in...
: ohno show black screen ffff COLOR 400 400 1024 * + 2* 1e80000 + ! keyboard ;
I happened to be looking in an old source and reading the word SWITCH.
In the top of the word we see an example of writeing to AGP before
switching to keyboard.
Karig has a nice look at it :
http://www.karig.net/os/cf/g.htm
Halfway down the page. All of the rest of that page are examples of
'emit'ing pixels to the page.
Good luck with this, Jason. Please keep me in the loop, your
experiments, as I'd like to try them out as well. :-)
All the best,
Ray
--
Raymond St. Marie ii,
colorforthray.info
---------------------------------------------------------------------
To unsubscribe, e-mail: colorforth-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: colorforth-help@xxxxxxxxxxxxxxxxxx
Main web page - http://www.colorforth.com