jack@vu44.UUCP (Jack Jansen) (01/05/84)
There is a bug in the v7 backup routine. It cannot backup things like movb .....,(r3)+ This isn't a problem for C programs, but the first few lines of doprnt.s read something like sub $128.+12.,sp .... mov sp,r3 and later on, the 128 bytes following r3 are used as a buffer. So, if you have the hard luck that you enter doprnt with 'sp' pointing to an existing location, but sp-128. not, you're in trouble. I didn't bother fixing the bug (altough I would be interested in a fix, of course), I just added a tst (sp) instruction after the 'sub' in doprnt.s Jack Jansen, VU Amsterdam, mcvax!vu44!jack