Re: [colorforth] XcolorForth crashes on read or write to frame buffer.
- Subject: Re: [colorforth] XcolorForth crashes on read or write to frame buffer.
- From: "Samuel A. Falvo II" <kc5tja@xxxxxxxx>
- Date: Sat, 1 Nov 2003 07:36:56 -0800
On Friday 31 October 2003 10:33 pm, Mark Slicker wrote:
> 'frame' returns a byte address, ! writes to a word address. You need
> to divide by 4 if you wish to use @ or ! . Also you may
> want to define a word '2!' two write two bytes to a byte address.
>
> macro
>
> : 2! [a!] $28966 3, [drop] ; forth
>
> The frame buffer is 16-bits per pixel in a 5:6:5 format.
Oops. Thanks. :) This should help a great deal. I'll do that when I
get home from work today.
--
Samuel A. Falvo II
---------------------------------------------------------------------
To unsubscribe, e-mail: colorforth-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: colorforth-help@xxxxxxxxxxxxxxxxxx
Main web page - http://www.colorforth.com