Xref: utzoo comp.sys.att:4314 unix-pc.general:1422
Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!rutgers!cbmvax!ditto
From: ditto@cbmvax.UUCP (Michael "Ford" Ditto)
Newsgroups: comp.sys.att,unix-pc.general
Subject: Re: More "/etc/magic" entries, and a question on them ...
Summary: Unix PC file program sign-extends numbers in /etc/magic.
Keywords: /etc/magic, magic numbers, file command
Message-ID: <4804@cbmvax.UUCP>
Date: 23 Sep 88 06:35:48 GMT
References: <497@icus.islp.ny.us> <847@vsi.UUCP> <501@icus.islp.ny.us>
Reply-To: ditto@cbmvax.UUCP (Michael "Ford" Ditto)
Organization: Commodore Technology, West Chester, PA
Lines: 22

In article <501@icus.islp.ny.us> lenny@icus.islp.ny.us (Lenny Tropiano) writes:
>| 0	short		0x1f9d		squeezed data
>| >2	byte		0x90		- 16-bit mode
>| >2	byte		0x8f		- 15-bit mode
>
>Why doesn't this work on a 3B1?

Because the Unix PC's file command sign-extends the numbers for some reason.
I forgot to mention this in my previous posting, but you can see I had to
discover it to do the "Ms.Dos file system" (I put "short 0xffffeb34").

This works fine:

>2	byte		0xffffff90	- 16-bit mode

-- 
					-=] Ford [=-

	.		.		(In Real Life: Mike Ditto)
.	    :	       ,		ford@kenobi.cts.com
This space under construction,		...!ucsd!elgar!ford
pardon our dust.			ditto@cbmvax.cbm.commodore.com