Article View: net.bugs
Article #165Bug in v7 backup or printf on 11/34
From: Jack Jansen
Date: Thu, 05 Jan 1984 19:58
Date: Thu, 05 Jan 1984 19:58
17 lines
1138 bytes
1138 bytes
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
Technical Details
Message-ID:
<296@vu44.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!linus!philabs!mcvax!vu44!jackShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 (MC830713); site vu44.UUCP Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!mcvax!vu44!jack From: jack@vu44.UUCP (Jack Jansen) Newsgroups: net.bugs Subject: Bug in v7 backup or printf on 11/34 Message-ID: <296@vu44.UUCP> Date: Thu, 5-Jan-84 14:58:43 EST Article-I.D.: vu44.296 Posted: Thu Jan 5 14:58:43 1984 Date-Received: Sat, 7-Jan-84 11:16:37 EST Organization: VU Informatica, Amsterdam Lines: 17