1
0
mirror of https://github.com/wfjm/w11.git synced 2026-04-15 09:19:45 +00:00

minor tcode updates

- cpu_mmu.mac: make C2.3 test more robust
- tcode.ecmd: use 'set cpu nouwin' to emulate w11 behavior
This commit is contained in:
wfjm
2022-10-29 15:01:20 +02:00
parent 792b175100
commit 2b7b47e169
3 changed files with 25 additions and 6 deletions

View File

@@ -8,4 +8,13 @@ allows to access via 17000000:17757777 the memory exactly as a UNIBUS
device would see it.
The w11a doesn't implement this remapping, an access in the range
17000000:17757777 causes an NXM fault.
17000000:17757777 causes an NXM fault and will set the NXM bit in CPUERR.
Notes:
- on a 11/70 an access non-existing memory via the UNIBUS map will result
in a UNIBUS timeout and set the ITO bit CPUERR.
- SimH doesn't implement the UNIBUS window, in a 4 MB memory conficuration
the address range 17000000:17757777 will be normal memory.
- e11 implements the UNIBUS window and from V7.4 on access to main memory
via the UNIBUS map. This can be disabled via `set cpu nouwin`. When used
with `set memory 3840` an e11 system will be behave like the w11.

View File

@@ -1,4 +1,4 @@
; $Id: cpu_mmu.mac 1305 2022-10-23 07:44:21Z mueller $
; $Id: cpu_mmu.mac 1311 2022-10-29 12:57:38Z mueller $
; SPDX-License-Identifier: GPL-3.0-or-later
; Copyright 2022- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
;
@@ -1183,7 +1183,7 @@ tc0203: mov #vhmmua,v..mmu
; 1100$: mfpi (r2)
; 1200$: mfpd (r2)
;
1000$: mov #020100,sp ; set SP into 1st click page 1, non-resident
1000$: mov #020040,sp ; set SP into 1st click page 1, non-resident
mov #1010$,vhvmmu
mov #1001$,r2
jsr pc,(r2) ; will fail
@@ -1231,7 +1231,8 @@ tc0203: mov #vhmmua,v..mmu
; dddddrrrdddddrrr
.word ^b0000000000010110 ; mmr1 +2,6
;
2100$: mov #2110$,vhvmmu
2100$: mov #020040,sp ; set SP into 1st click page 1, non-resident
mov #2110$,vhvmmu
mov #1,r2 ; not used
mtpi (r2) ; will fail
halt
@@ -1239,7 +1240,8 @@ tc0203: mov #vhmmua,v..mmu
; dddddrrrdddddrrr
.word ^b0000000000010110 ; mmr1 +2,6
;
2200$: mov #2210$,vhvmmu
2200$: mov #020040,sp ; set SP into 1st click page 1, non-resident
mov #2210$,vhvmmu
mov #1,r2 ; not used
mtpd (r2) ; will fail
halt

View File

@@ -1,13 +1,21 @@
! $Id: tcode.ecmd 1306 2022-10-23 19:27:25Z mueller $
! $Id: tcode.ecmd 1311 2022-10-29 12:57:38Z mueller $
! SPDX-License-Identifier: GPL-3.0-or-later
! Copyright 2022- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
!
! setup w11 like processor configuration
! set nouwin to disable UNIBUS window (17000000-17757777) to UNIBUS map
! set memory to 3840
! this way e11 behaves like w11 and SimH, which simplifies tcodes
!
set cpu 70
set cpu nouwin
set memory 3840
set cpu nofpp
set idle delay=1
! set ^E as break character (like in SimH)
set break 005
! enable PC value logging (inspect with show pclog)
set pclog on
! set sysid, leading '1' indicates simulator, next '2' e11
set cpu SYSID=0120345
!