mirror of
https://github.com/livingcomputermuseum/UniBone.git
synced 2026-02-17 13:08:02 +00:00
PRU1 code split into multiple images 1. test functions 2. UNIBUS operation PRU1 bus latch interface Write byte/bits access not with MACROS (random optimizer influence), now with *_helper() procedures. Same timing, more determinism, much code saving. Nono more ASM code to write PRU0 XFER area. demo: menu to test UNIBUS signals directly rework "Arbitration" logic: now 3-fold Rework of UNIBUs arbtiration: NONE/CLIENT/MASTER - no Arbitrator (SACK penidng for 11/34 Konsole) (NONE) - phyiscal PDP_11 CPU is Arbitrator (CLIENT) - UniBone implements Arbitrator (MASTER) - Same PRU code loop handles all arbitration types PRU buslatch timing slower, for some problematic PCBs More aggressive bus latch selftest (mixed patterns, running on PRU now) Refinement of ready-to-run scripts - Adapted to changed "demo" menu - new name scheme <OS>_<boot- drive>_<PDP-11CPU> indicates - which OS is run - which disk emulation is used and what is the boot device - what is the (minimum) PDP-11 to run that Merged in Joshs DMA timing for 11/84 UNIBUS master cycles waits 350 us before MSYN, instead 150. Merged in Joshs DMA request queue multiple devices canrequest INTR and DMAs concurrently, will be put on the bus sequentially Merged in Joshs MSCP driver - Build RT-11v5.5 for MSCP - added boot loader "du.lst" MSCP run scrips 2.11BSD on MSCP on PDP-11/44 RT11 on MSCP Fix: image file sizing Disk image file exptend automatically if block beyond current file end is written
92 lines
2.0 KiB
Plaintext
92 lines
2.0 KiB
Plaintext
.title M9312 'DL' BOOT prom for RL11 controller
|
|
|
|
; This source code is a modified copy of the DEC M9312 23-751A9 boot PROM.
|
|
;
|
|
; This boot PROM is for the RL11 controller with RL01/RL02 drives.
|
|
;
|
|
; Multiple units and/or CSR addresses are supported via different entry points.
|
|
;
|
|
|
|
rlcsr =174400 ; std RL11 csrbase
|
|
|
|
rlcs =+0 ; control/status
|
|
rlba =+2 ; bus address
|
|
rlda =+4 ; disk address
|
|
rlmp =+6 ; multipurpose
|
|
|
|
cmstat =2*2 ; get status
|
|
cmseek =3*2 ; seek
|
|
cmrdhd =4*2 ; read header
|
|
cmrdda =6*2 ; read data
|
|
|
|
.asect
|
|
.=10000 ; arbitrary position > 3000
|
|
|
|
; --------------------------------------------------
|
|
|
|
start:
|
|
; 4 unit numbers => 4 entry addresses
|
|
start0:
|
|
mov #0,r0
|
|
br dlnr
|
|
nop
|
|
start1:
|
|
mov #1,r0
|
|
br dlnr
|
|
nop
|
|
start2:
|
|
mov #2,r0
|
|
br dlnr
|
|
nop
|
|
start3:
|
|
mov #3,r0
|
|
|
|
dlnr:
|
|
mov #rlcsr,r1 ; boot std csr, unit <R0>
|
|
|
|
; --------------------------------------------------
|
|
|
|
mov r0,r3 ; save unit number
|
|
swab r3 ; unit number in upper byte
|
|
mov r3,(r1) ; set unit, NOP cmd
|
|
|
|
mov #013,rlda(r1) ; subcmd reset+getstatus
|
|
bis #cmstat,r3 ; get status cmd (r3lo is 0)
|
|
mov r3,(r1) ; execute
|
|
1$: tstb (r1) ; test for ready
|
|
bpl 1$ ; wait
|
|
|
|
clrb r3 ; unit number in upper byte
|
|
bis #cmrdhd,r3 ; read header cmd
|
|
mov r3,(r1) ; execute
|
|
2$: tstb (r1) ; test for ready
|
|
bpl 2$ ; wait
|
|
|
|
mov rlmp(r1),r2 ; retrieve cyl/head/sector
|
|
bic #77,r2 ; set sector to zero
|
|
inc r2 ; set head 0, seek to cyl 0
|
|
mov r2,rlda(r1) ; into da for seek
|
|
clrb r3 ; unit number in upper byte
|
|
bis #cmseek,r3 ; seek cmd
|
|
mov r3,(r1) ; execute
|
|
3$: tstb (r1) ; test for ready
|
|
bpl 3$ ; wait
|
|
|
|
clr rlda(r1) ; select cyl0/head0/sector0
|
|
mov #-512.,rlmp(r1) ; set word count
|
|
clrb r3 ; unit number in upper byte
|
|
bis #cmrdda,r3 ; read data cmd
|
|
mov r3,(r1) ; execute
|
|
4$: tstb (r1) ; test for ready
|
|
bpl 4$ ; wait
|
|
|
|
tst (r1) ; test for error
|
|
bpl 5$ ; br if ok
|
|
reset ; ERROR - reset the world
|
|
br dlnr ; retry. r0 unchanged
|
|
|
|
5$: bic #377,(r1) ; execute nop cmd
|
|
clr pc ; jump to bootstrap at zero
|
|
|
|
.end
|