Mouse wrote:
[no-trimming damage repaired manually]
It where really good to know where te putc and
getc routines in the
KAV30 are..
It's a long shot, but it might be worth typing in a small test program
that uses IPRs 32-35, because if they work you don't need to go through
a ROM code trampoline. Here's an example, including assembled binary.
(This was hand-assembled; I thought I had a VAX assembler but can't
seem to find it. But I checked by disassembling.)
movb $'x,r0 90 8f 78 50
movab 9f,sp 9e af 31 5e
bsbb 1f 10 06
3: bsbb 2f 10 0f
bsbb 1f 10 02
brb 3b 11 fa
1: mfpr $34,r1 db 22 51
tstb r1 95 51
bgeq 1b 18 f9
mtpr r0,$35 da 50 23
rsb 05
2: mfpr $32,r1 db 20 51
tstb r1 95 51
bgeq 2b 18 f9
mfpr $33,r0 db 21 50
rsb 05
.align 4
.space 16
9:
The code is PIC, so you can base it anywhere you like. At 0, for
example, you might
d/l/p 0 50788f90
d/l/p 4 5e31af9e
d/l/p 8 0f100610
d/l/p c fa110210
d/l/p 10 955122db
d/l/p 14 daf91851
d/l/p 18 db052350
d/l/p 1c 51955120
d/l/p 20 21dbf918
d/l/p 24 00000550
Then start it. My memory of VAX console is fuzzy, but I think that
would be something like (again, based at 0)
d pc 0
d psl 041f0000
g
If MFPR/MTPR console access works, it should print an x and then echo
back whatever is typed at it. I haven't been able to test this; none
of my VAXen are in runnable shape right now. But I'm moderately sure
the code is right; it's pretty simple. Perhaps someone with a KA630
set up to run can test it. On my emulator, it prints the x but nothing
more - but, as far as I can tell from reading the code, that emulator
doesn't support console input at all, so that's hardly surprising.
/~\ The ASCII Mouse
\ / Ribbon Campaign
X Against HTML mouse at
rodents-montreal.org
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B
Thank you very much, I typed it in (copy&paste) but it bailed out at the 'g'.
So I'm started over:
>> g
?23 ILL CMD
>> he
DEPOSIT [{ /B | /W | /L }] [{ /P | /V | /I }] [/U] [/N:<n>]
[{ <addr> | <sym> | + | - | * | @ } [<datum>]]
EXAMINE [{ /B | /W | /L }] [{ /P | /V | /I }] [/U] [/N:<n>]
[{ <addr> | <sym> | + | - | * | @ }]
SET BOOT <ddau>
SET BFLG <bflg>
SET HALT <1-3>
SET TRIG <0-1>
SHOW { BOOT | BFLG | ETHER | HALT | MEM | TRIG }
INITIALIZE
UNJAM
BOOT [/[R5:]<bflg>] { EZA0 | PRA0 | PRBx | CSBx }
CONTINUE
START <addr>
REPEAT <cmd>
TEST <n>
FIND [{ /MEM | /RPB }]
XFER <addr> <cnt> ...
HALT
HELP
>> d/l/p 0 50788f90
>> d/l/p 4 5e31af9e
>> d/l/p 8 0f100610
>> d/l/p c fa110210
>> d/l/p 10 955122db
>> d/l/p 14 daf91851
>> d/l/p 18 db052350
>> d/l/p 1c 51955120
>> d/l/p 20 21dbf918
>> d/l/p 24 00000550
>> d pc 0
>> d psl 041f0000
>> start 0
>>
...unfortunately it does nothing at all, I have to halt it to get the
chevron back.
>> e/l 0/n:32
P 00000000 50788F90
P 00000004 5E31AF9E
P 00000008 0F100610
P 0000000C FA110210
P 00000010 955122DB
P 00000014 DAF91851
P 00000018 DB052350
P 0000001C 51955120
P 00000020 21DBF918
P 00000024 00000550
P 00000028 00000000
P 0000002C 00000000
P 00000030 041F0000
P 00000034 0000000A
P 00000038 00000000
In that NetBSD consinit.c are more ways to get characters in and out, it
seems that different VAXen doing this really in different ways:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/vax/boot/boot/consio.c?rev…
In the ka630.h are the neccessary defines fpr that CPU:
ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-current/src/sys/arch/vax/include/ka6…
... but not only the rtVAX 300 want's it different it seems..
In the meantime I read the roms:
http://www.tiffe.de/Robotron/VAX/isa300-rom.bin.gz
It seems that there is a full VAXELN in that code.
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