Thread View: net.bugs
1 messages
1 total messages
Started by Jack Jansen
Thu, 05 Jan 1984 19:58
Bug in v7 backup or printf on 11/34
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads