Holm Tiffe wrote:
[..]
In the meantime I've compared the binaries from both readouts, they are
identical so I think both attempts have worked.
@Mouse: it seems that the Console Code in the rom is at 2004685a and
upward. The only two occurences of the SCN2681 Register Adresses
(
20100000 Channel A mode registers (MRA1, MRA2) (R/W)
20100004 Channel A status register (R)
Channel A clock select register (CSRA) (W)
20100008 Reserved (R)
Channel A command register (CRA)
2010000C Channel A receive holding register (RHRA) (R)
Channel A transmit holding register (THRA) (W)
20100010 Input port change register (IPCR) (R)
Auxiliary control register (ACR) (W)
20100014 Channel A/B interrupt status register (ISR) (R)
Channel A/B interrupt mask register (IMR) (W)
20100018 Counter/timer interval register upper (CTU) (R)
Counter/timer interval register upper (CTUR) (W)
2010001C Counter/timer interval register lower (CTL) (R)
Counter/timer interval register lower (CTLR) (W)
20100020 Channel B mode register (MRB1, MRB2) (R/W)
20100024 Channel B status register (SRB) (R)
Channel B clock select register (CSRB) (W)
20100028 Reserved (R)
Channel B command register (CRB) (W)
2010002C Channel B receive holding register (RHRB) (R)
Channel B transmit holding register (THRB) (W)
20100030 Reserved (R/W)
20100034 Input port register (R)
Output port configuration register (OPCR) (W)
20100038 Start counter command register (R)
Set output port bits command register (W)
2010003c Stop counter command register (R)
Reset output port bits commnad register (W)
)
are in that region, but again, there are a mass of instructions where the
mnemonic sys nothing to me, I have to lookup every single instruction in
the VAX Assembly language manual.. that's not much of fun when one tries to
understand what happens there.
20046855: movp $10,$4,$3c
20046859: halt
2004685a: subl2 $24,sp
2004685d: movl $1,r5
20046860: moval 04(ap),r4
20046864: movl (r4),r1
20046867: bisb2 $8,1003(r1)
2004686c: bicb2 $2,1003(r1)
20046871: bicb2 $4,1003(r1)
20046876: movl $a,1034(r1)
2004687b: movzwl $0320,102c(r1)
20046882: mtpr $15,$12
20046885: mtpr $00000040,$18
2004688c: movl 0000(r4),r3
20046891: movab 0x20044f66,r2
20046898: pushl r3
2004689a: calls $1,0x20046620
200468a1: movl *$20100004,r0
200468a8: blbc r0,0x200468e8
200468ab: bicl3 $ffffff00,*$2010000c,r0
200468b7: cmpl r0,$3
200468ba: bneq 0x200468e8
-------- Addr 2004685a
disas>
Are you able to find somthing like putchar() and getchar() there so that
I can call those routines from netbsd's bootloader?
I think the rtVAX300 will boot at least the loader, know, the real work
comes next...
Regards,
Holm
--
Technik Service u. Handel Tiffe,
www.tsht.de, Holm Tiffe,
Freiberger Stra?e 42, 09600 Obersch?na, USt-Id: DE253710583
www.tsht.de, info at tsht.de, Fax +49 3731 74200, Mobil: 0172 8790 741