[comp.sys.sun] Getting BMX to run on a Sun 386i?

kovar%husc4@talcott.harvard.edu (-David C. Kovar) (01/11/89)

Has anyone out there managed to get Jef Poskanzer's PBM (portable bitmap
package) to run correctly on a Sun386i? I've tried converting a large
fullmoon image to Sun raster and get weird results when I do it on the
386i. (It worked fine when I used to have a 3/50). Imagine, if you will,
an image labeled as follows:

  0 1 2 3 4 5 6 7 8 9 a b c d e f . . . 
  -------------------------------
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
.
.
.

Each labeled row/column represents one row/column of bits. After running
it through BMX, it comes out looking like:

  3 2 1 0 7 6 5 4 b a 9 8 f e d c . . .
  -------------------------------
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
.
.
.

In other words, a vertical stripe of n bits is being swapped. As the 386i
is a byte swapped machine, this is not tooooo surprising. Has anyone taken
the time and figured out what exactly needs to be changed in the pbm files
to fix this? I've sent messages to Jef twice and have waited with great
anticipation for the fixes in the latest release but this didn't happen
...

-David C. Kovar
	Technical Consultant			ARPA: kovar@husc4.harvard.edu
	Office of Information Technology	BITNET: corwin@harvarda.bitnet
	Harvard University			Ma Bell: 617-495-5947