Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

TIFF in Forth

0 views
Skip to first unread message

Howerd

unread,
Apr 16, 2008, 6:06:28 AM4/16/08
to
Hi Forthers,

Does any one have any TIFF ( Tag Image File Format ) code written in
Forth?
I'm investigating TIFF for a potential client, so any help would be
appreciated,

TIA

Howerd

Frank

unread,
Apr 17, 2008, 6:18:40 AM4/17/08
to
Should you have to write it yourself try this resource:
http://partners.adobe.com/public/developer/en/tiff/TIFF6.pdf

Frank

Howerd

unread,
Apr 30, 2008, 12:49:16 PM4/30/08
to
Hi Frank,

Thanks for the link...

I've made a start on tiff.f - so far it just displays the file header
information, without displaying an image yet.
I've posted it on my website in case anyone is interested, or wants to
finish it ;)

http://www.inventio.co.uk/tiff.f

Also http://www.inventio.co.uk/tiff.zip has tiff.f and two test tiff
files.

Regards

Howerd

Frank

unread,
May 1, 2008, 8:45:55 PM5/1/08
to
I have downloaded your file but have a few problem getting it to run.
I am using Win32Forth, what are you running? Please tell me what this
does: 'if >< then'. It is the >< I do not understand. Found around
line ~ 32.

Frank

Howerd

unread,
May 5, 2008, 1:59:28 PM5/5/08
to
Hi Frank,

I am using swiftForth :
>< swaps the bottom two bytes on the stack
hex 1122 >< . 2211

Regards

Howerd

Bruce McFarling

unread,
May 5, 2008, 2:54:52 PM5/5/08
to

HEX
: >< ( $aabb -- $bbaa ) DUP FF00 AND 8 RSHIFT >R FF AND 8 LSHIFT R>
OR ;
DECIMAL

... seems to work in hForth for CP/M.

Howerd

unread,
May 6, 2008, 9:53:20 AM5/6/08
to
Hi Frank & All,

I've uploaded a new version of tiff.f and tiff.zip which use Forth
blocks instead of raw Windows file access. This is so that it can read
files that are larger than the available memory.

Its still written for SwiftForth, so it won't run under Win32Forth
without some changes, mostly due to display words such as GET-XY being
called getxy etc...

Just a comment to the Forth standards team : could you define standard
names for the display words such as GET-XY? Or has this already
happened?

The files are available here, as before :

http://www.inventio.co.uk/tiff.f

Also http://www.inventio.co.uk/tiff.zip has tiff.f and two test tiff
files.

Regards

Howerd

0 new messages