[ont.micro.mac] SUMACC bugfix in lib/io.s, lib/mactrap.s

info-mac@utcsrgv.UUCP (info-mac) (06/19/84)

Date: Thu, 14 Jun 84 17:40:57 pdt
From: Bill Croft <uw-beaver!croft@safe>
To: info-mac@sumex
Subject: SUMACC bugfix in lib/io.s, lib/mactrap.s
Cc: croft@SUMEX-AIM.ARPA, sumacc@sumex

As promised, SUMACC is a beta release, and here are the first bugfixes
to prove it.  If you have a bugfix in the future, please send it to
info-mac@sumex and "cc" sumacc@sumex; the latter will cause the message to be 
filed in <info-mac>sumacc.mail.  

The fixes sent out will be applied as "incremental" fixes to the original
tar distribution;  we plan to update the tar file only upon "final"
release.

The fix to mactrap.s below handles "ostype" or "restype" strings (4 byte
strings passed on the stack) that were not word aligned.  The fix to
io.s corrects a typo.

Thanks to Mike Schuster at CALTECH for writing a "fromhex" in C to check
this out.  I'll post Mike's program in a following message.

+ diff mactrap.s- mactrap.s 
72,73c72,80
< 	movl	a0@+,a1		| short structure
< 	movl	a1@,sp@-
---
> 	movl	a0@+,a1		| short struct (includes os/restype strings)
> 	movb	a1@+,d1		| may not be word aligned
> 	lsll	#8,d1
> 	movb	a1@+,d1
> 	lsll	#8,d1
> 	movb	a1@+,d1
> 	lsll	#8,d1
> 	movb	a1@+,d1
> 	movl	d1,sp@-
+ diff io.s- io.s 
319c319
<         .globl  fswrite
---
>         .globl  _fswrite
324c324
< fswrite:
---
> _fswrite: