From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fdd80,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Thread: 1164f8,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Attributes: gide311f70d09,gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.135.231 with SMTP id pv7mr14474693pbb.8.1328631607962; Tue, 07 Feb 2012 08:20:07 -0800 (PST) Path: lh20ni271035pbb.0!nntp.google.com!news1.google.com!goblin1!goblin.stu.neva.ru!feeds.phibee-telecom.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!cs.uu.nl!news.stack.nl!newsfeed.Update.UU.SE!news.Update.UU.SE!not-for-mail From: Johnny Billquist Newsgroups: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec Subject: Re: PDP11 Values from MFPT Date: Tue, 07 Feb 2012 17:20:06 +0100 Organization: Update Computer Club Message-ID: References: <4f291473.18988613@nntp.aioe.org> <4f2a3a1e.28631752@nntp.aioe.org> <4f2a8c5a.52418379@nntp.aioe.org> <4f2e5f77.65538828@nntp.aioe.org> <4f2e89be.49241029@nntp.aioe.org> <4f30d0d8.41682905@nntp.aioe.org> <4f313229.43518694@nntp.aioe.org> NNTP-Posting-Host: 2620:0:105f:b:462a:60ff:fefb:aad8 Mime-Version: 1.0 X-Trace: Iltempo.Update.UU.SE 1328631607 554 2620:0:105f:b:462a:60ff:fefb:aad8 (7 Feb 2012 16:20:07 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Tue, 7 Feb 2012 16:20:07 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 In-Reply-To: <4f313229.43518694@nntp.aioe.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2012-02-07 15.50, paramucho wrote: > On Mon, 06 Feb 2012 17:40:47 +0100, Johnny Billquist > wrote: > >> On 2012-02-06 15.56, Johnny Billquist wrote: >>> On 2012-02-06 14.51, paramucho wrote: >>>> >>>> This explains four things, perhaps: >>>> >>>> 1. The release note: "MMU. SR1 mechanized". >>> >>> Right. >>> >>>> 2. The otherwise cryptic command definition for SET FPBACKOUT (which >>>> I'd noted, but not followed up): >>>> >>>> FPBACKOUT J-11 SR1 behavior, autoinc/dec is always undone on >>>> aborted FPP instruction. >>>> >>>> I'm not sure how this is supposed to work in the real world. >>> >>> Not sure what that command in E11 do. However, if the changes are backed >>> out also on FP instructions, then SR1 will still remain zero at all times. >>> >>>> 3. And (now) looking further I note the command SET CPU [NO]SR1. I >>>> tried it out, but it seems to do nothing. Later. >>> >>> No idea about that one. Maybe something in combination with the FPBACKOUT? >> >> Thinking about it, I would possibly have expected this to make SR1 not >> even exist. >> E11 in general (if I remember right) will just set a whole bunch of >> parameters in a predefined way when you say you want a specific model >> emulated. You can get the same result (I think), by just setting all the >> individual features yourself as well. And some machines don't have an >> SR1, so I would have thought this feature would mean just that. >> If you do a SET CPU NOSR1 just before booting, can you still access SR1? >> >> By the way, have you tried playing with UNDOAUTO as well? > > Nope, and I'll try to resist as well :-) > > > I wrote a better SR1 testbed where all I need to for a new test is > fill in a template and insert the new test code. > > Kernel and user memory are mapped the same space. Par5 is not mapped. > The tests are designed to fail at location 120000. An asterix marks > the part of the instruction which will cause the trap by trying to > access location 120000. > > > TEST0: > In the first test, TEST00, we expect the trap to occur after after the > source field. R0 should have advanced by 2 and the low byte of SR1 > should hold "20", meaning R0 has been incremented by two. > > SIMH: > Test00: mov *(r0)+,(r0)+ > Before: R0=120000 SP=744 PC=2064 > After: R0=120002 SP=744 Err=1 SR0=100013 SR1=[0|20] SR2=2064 > > E11: > Test00: mov *(r0)+,(r0)+ > Before: R0=120000 SP=744 PC=2064 > After: R0=120000 SP=744 Err=1 SR0=100013 SR1=[0|0] SR2=2064 > > As you can see E11 doesn't increment R0 and leaves SR1 null. > > > > TEST01: > In TEST02 the trap occurs on the destination field. SimH is expected > to advance R0 by 4, as shown by the [20|20] SR1. > > SIMH: > Test01: mov (r0)+,*(r0)+ > Before: R0=117776 SP=744 PC=2266 > After: R0=120002 SP=744 Err=1 SR0=100013 SR1=[20|20] SR2=2266 > > E11: > Test01: mov (r0)+,*(r0)+ > Before: R0=117776 SP=744 PC=2266 > After: R0=117776 SP=744 Err=1 SR0=100013 SR1=[0|0] SR2=2266 > > E11 backs the instruction out. > > > > TEST02: > This test is much the same as TEST00 and shows that MTPx doesn't push > anything on the stack in case of an error. > > SIMH: > Test02: mfpi *(r0)+ > Before: R0=120000 SP=744 PC=2462 > After: R0=120002 SP=744 Err=1 SR0=100153 SR1=[0|20] SR2=2462 > > E11: > Test02: mfpi *(r0)+ > Before: R0=120000 SP=744 PC=2462 > After: R0=120000 SP=744 Err=1 SR0=100153 SR1=[0|0] SR2=2462 > > > > TEST03: > I was thinking about SR1 tests while was out riding my bike in circles > this evening, and I thought, the most likely place that the E11 tactic > would fail with be with MFPx/MTPx. And that's what happens with MTPI. > > SimH correctly shows that both R0 and SP have been incremented with > [20|26]. E11 backs R0 out, but fails to backout SP (it should be 744, > not 746). It's a bug, but probably easily fixed. > > SIMH: > Test03: mtpi *(r0)+ > Before: R0=120000 SP=744 PC=2700 > After: R0=120002 SP=746 Err=1 SR0=100153 SR1=[20|26] SR2=2700 > > E11: > Test03: mtpi *(r0)+ > Before: R0=120000 SP=744 PC=2700 > After: R0=120000 SP=746 Err=1 SR0=100153 SR1=[0|0] SR2=2700 > > > Now, if only I could my recalcitrant J11 running I could verify all > these tests on real iron. Cool. Other interesting tests: MOV (PC)+,(R0)+ where R0 points to invalid memory. Should affect PC (or back it out), as well as R0. Also, something like the LDD instruction (FPP) could be used to check for other increments, like 4 and 8, which should also be possible, as well as partials perhaps, if the argument pointed to is partially outside of valid memory. I might be able to do these tests under RSX. Have to test setting up the environment for that. If I do, then I could test this on my 11/93. Johnny