9fans archive / 2008 / 01 / 486 /    prev next

From: Pietro Gagliardi <pietro10@mac.com>
Subject: Re: [9fans] How to read/write pixels from Memimage
Date: Sun, 27 Jan 2008 13:55:54 -0500

That transformation is in the book? It divides by zero for y == 0. I  
have to look.

I'm working on an update. It adds:
	r x y w h file (done)
		Reads a certain rectangle of a file. This makes crop(1)'s -r option  
three lines of rc or /bin/sh:
			echo 'r '$1' '$2' '$3' '$4' '$5'
			new = old
			w '$6 | pico
	Simple variables (started)
	Undo command u (done)
	Use of RGB24 instead of RGBA32 to make the examples work (done)
	Using Brdstr instead of Bgetc/Bungetc (this is not working)

On Jan 27, 2008, at 1:05 PM, Skip Tavakkolian wrote:

>> The code led me to confusion, so I just decided to use wordaddr. It
>> works properly now,  and my Pico is now up at /n/sources/contrib/
>> pietro/pico9.tgz (note the 9). Details are in README.Plan9, test
>> files are in /lib/face/.
>
> some book examples are failing:
>
> cpu% 8.out
> 1:	new[x,y] = x % y
> 8.out 181613: suicide: sys: trap: divide error pc=0x000023fd
>