🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.sys5
Article #203

ToolChest "anim" 630 bug

#203
From: Doug Gwyn
Date: Tue, 31 Jul 1990 06:21
18 lines
1418 bytes
For those of you who are wondering why the "backward" option doesn't work on
the AT&T/Teletype 630 MTG terminal (in the Bentley/Kernighan "anim" package
distributed by the AT&T UNIX System ToolChest), I tracked down the problem
and have a fix for it.

The basic problem is that whoever wrote the code assumed that the difference
of two pointers would be an int.  Unfortunately this is not true for the 630
CCS, where an int is 2 bytes.  There is a quick fix, however; in source file
"term.c", function read_obj(), change all
		savect(inp-p);
statements to
		savect((int)(inp-p));	/* DAG -- cast needed on 630 */
the rebuild animterm.630 (e.g. "make -f 630.make animterm.630") and
reinstall it (e.g. "cp animterm.630 /usr/lib/movie/animterm.630").

I haven't yet tracked down other int/long confusion, which is probably what
really led them to limit the 630 data pool size to under 64Kb (rather than
actual compiler bugs, as claimed).
Technical Details
Message-ID: <13457@smoke.BRL.MIL>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!decwrl!sdd.hp.com!uakari.primate.wisc.edu!aplcen!haven!ncifcrf!lhc!adm!smoke!gwyn

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!decwrl!sdd.hp.com!uakari.primate.wisc.edu!aplcen!haven!ncifcrf!lhc!adm!smoke!gwyn
From: gwyn@smoke.BRL.MIL (Doug Gwyn)
Newsgroups: comp.bugs.sys5,comp.bugs.misc
Subject: ToolChest "anim" 630 bug
Keywords: ToolChest "anim" algorithm animation MTG 630 bug fix
Message-ID: <13457@smoke.BRL.MIL>
Date: 31 Jul 90 06:21:58 GMT
Followup-To: comp.bugs.sys5
Organization: U.S. Army Ballistic Research Laboratory (BRL), APG, MD.
Lines: 18