[comp.sys.amiga] VT100 2.6 and Manx 3.40

walton@tybalt.caltech.edu.UUCP (03/09/87)

I received my Manx 3.40a update last week.  The free update for owners
of the $300 list developers' package only includes new compiler,
assembler, includes and libraries, it turns out.  To get the new
debugger and the utilities costs an extra $50.  But it's worth it,
especially for vi'ers, since the $50 update includes Z, the Aztec vi
semi-work-alike (it's very close to vi, but doesn't have full-up ex
underneath, though several :-prefixed commands are available).  So
far, I've compiled VT100 Version 2.6, Steve Drew's latest Shell (the
Manx version he adapted from Matt Dillon's), and MicroGnuEmacs.  mg
and vt100 work fine; the Shell requires some changes, basically taking
out assignments to stdout's file handle, buffer, and buffer size
(stdout is now buffered by default).  It doesn't do redirection due to
changes in Manx's fexec() code.

OK, OK, the main point is:  VT100 Version 2.6 compiles just fine with
Manx 3.40, provided you remove newbindings.asm and run it under 1.2.
No +L, no +C, just say "make".

I don't know about posting a 36K+ executable in uuencoded form,
especially from a machine I'm just a guest on.  I will get ahold of
Craig Norberg, the mod.amiga.sources moderator, and see if he'll
accept a binary and make it available for FTP from j.cc.purdue.edu.

						Steve Walton

manx@well.UUCP (Jim Goodnow II) (03/10/87)

A bug in the 3.4a compiler which was found when compiling vt100 vers 2.6
is fixed by the following patch program which will be updated if and when
any other bugs are reported.

-------------- CUT HERE ---------------
/*
 *	Aztec C68K/Am PATCH program v 1.0 - 3/9/87
 *
 *	This program provides patches which fix bugs in the 3.4a version
 *	of the Aztec C68K system.
 */

/*
 *	1) A statement of the form: < array[index] op= > will sometimes generate
 *		incorrect code which will modify the wrong address in memory.
 */

short patch1[] = {0x2f2a, 0x0006, 0x2f07, 0x2f2a, 0x0006, 0x487a,
				0x057f, 0x4eac, 0x8320, 0x422c, 0x9412, 0x2f2a,
				0x0006, 0x4eac, 0x825a, 0x4fef, 0x0014};

struct patches {
	short size;
	long offset;
	short *patch;
	char *program;
} patches[] = {
	34, 0xb564, patch1, "cc",
	0
};

main()
{
	int fd;
	struct patches *pp;

	for (pp=patches;pp->size;pp++) {
		printf("Applying patch %d ", pp-patches+1);
		if ((fd = open(pp->program, 2)) < 0) {
			printf("\nError opening program file <%s>, skipping ...\n",
												pp->program);
			continue;
		}
		printf("to <%s>\n", pp->program);
		lseek(fd, pp->offset, 0);
		write(fd, pp->patch, pp->size);
		close(fd);
	}
he

jea@ur-cvsvax.UUCP (Joanne Albano) (03/10/87)

In article <1982@cit-vax.Caltech.Edu>, walton@tybalt.caltech.edu (Steve Walton) writes:
> OK, OK, the main point is:  VT100 Version 2.6 compiles just fine with
> Manx 3.40, provided you remove newbindings.asm and run it under 1.2.
> No +L, no +C, just say "make".
> 
Well thanks but I am trying to compile it using 3.03 Lattice and
my compiler cant find _ActivateGadget(). The enhancer package for
1.2 says that I should be able to find out more about this function
in the "autodocs". There is no mention of this function in the
Library documentation (that I can find). 

Soooooooo my question is where is _ActivateGadget supposed to be?
Annnnnnnd what the #$?*&^^%$$! are the Autodocs? I noted that
Kim Montgomery of Technical Support also mentioned these.

Frazzled at seismo!rochester!ur-cvsvax!jea

carolyn@cbmvax.UUCP (03/12/87)

In article <575@ur-cvsvax.UUCP> jea@ur-cvsvax.UUCP (Joanne Albano) writes:
>Well thanks but I am trying to compile it using 3.03 Lattice and
>my compiler cant find _ActivateGadget(). The enhancer package for
>1.2 says that I should be able to find out more about this function
>in the "autodocs". There is no mention of this function in the
>Library documentation (that I can find). 

ATTENTION ALL USERS OF 1.1 Amiga/Lattice C and Amiga/MCC Assembler !!!!!

To call new 1.2 functions you must link with 1.2 Amiga.lib.
To understand new 1.2 functions, you must read 1.2 Autodocs.
To access new 1.2 structures you must use 1.2 .h or .i files.

To get these things, you can order the "1.2 Native Developer Update".
This is a four disk set containing everything you need.

Send check for $20 made out to Commodore Business Machines to:

   Kim Montgomery
   Software Tech Support
   CBM
   1200 Wilson Drive
   West Chester, PA.  19380

Ask for the "1.2 Native Developer Update" and include your name/address.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Carolyn Scheppner -- CBM   >>Amiga Technical Support<<
                     UUCP  ...{allegra,caip,ihnp4,seismo}!cbmvax!carolyn 
                     PHONE 215-431-9180
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=