Page 2 of 4

Re: Lab-Volt 6502 Trainer - Looking for instructions

Posted: Thu May 11, 2017 1:39 am
by Nuxi
Any more info on this thing? I just came into possession of one... Memory maps, monitor routines, really anything I don't have to figure out from ROM dumps and schematics would be greatly appreciated!

Re: Lab-Volt 6502 Trainer - Looking for instructions

Posted: Thu May 11, 2017 1:41 am
by BigEd
Welcome Nuxi! Can you share photos of your new acquisition? (Is it in working order?)

Re: Lab-Volt 6502 Trainer - Looking for instructions

Posted: Thu May 11, 2017 4:02 am
by Nuxi
Sure, I can get around to pics at some point. Looks identical to the first posters, but with a robot controller daughter board (no robot, alas) and a combination storage cabinet/ power supply. Oh, and an EPROM in the user ROM socket.

Works great, but without knowing where anything is in memory, not much I can do with it. With 1k,though I'd love to try and port kim-1 microchess to it.

Re: Lab-Volt 6502 Trainer - Looking for instructions

Posted: Thu May 11, 2017 8:06 am
by BigEd
With luck, groinksan can help out, maybe with a scan of the booklet or a dump of the ROM...

Nuxi, do you have any way to dump the content of that EPROM? (For example, maybe a suitable 8-bit computer with a spare ROM socket, so you can peek it from Basic.)

With a dump of the EPROM, it should be pretty straightforward to figure out where everything is.

Re: Lab-Volt 6502 Trainer - Looking for instructions

Posted: Thu May 11, 2017 1:16 pm
by Nuxi
Only thing I have right now that could read the ROMs is the board itself (keep meaning to pick up an EPROM programmer, but there seems to be considerable disagreement on what modern ones are reliable).

I suppose I could just start executing best guesses (Martin threw out $3000, I can start there). If the monitor restarts, I'll know I've hit it, and can then read byte-at-a-time, and dump it into a disassembler.

The EPROM, I'm guessing has control routines for the robot arm, but I'll go ahead and dump it too, once I find it ...

Re: Lab-Volt 6502 Trainer - Looking for instructions

Posted: Thu May 11, 2017 1:18 pm
by BigEd
If you can peek using the front panel, then start by reading off the six bytes at the top of memory.
"On a RESET, the CPU loads the vector from $FFFC/$FFFD into the program counter and continues fetching instructions from there."
That starting point is certainly within the ROM, and relatively likely to be at the start of it.

Re: Lab-Volt 6502 Trainer - Looking for instructions

Posted: Thu May 11, 2017 4:01 pm
by Nuxi
Well, duh. Should've thought to look where the bootstrap procedure points to. Now to transcribe up to 2048 hex codes. Joy!

Re: Lab-Volt 6502 Trainer - Looking for instructions

Posted: Mon May 22, 2017 4:41 am
by Nuxi
Edit to fix typos

Ok, here's the first chunk (assuming no typos--I haven't actually looked at the disassembly yet). From the start of the monitor ($F319) to the interrupt ($F3A9). Incedentally, I've found the user ROM at $4000. No idea yet what it does (maybe waiting I/O operations that aren't hooked up). I may see what's at FF3B, F13C & F2B7 next.


hex:

Code: Select all

a2 ff 9a 86 cf e8 86 ce 86 df
a9 57 85 db 85 dd a9 f3 85 dc
85 de d8 58 a0 1f 20 5b f2 20
3c f1 20 b7 f2 4c 36 f3 a0 26
20 5b f2 a2 c3 20 df f1 20 8a
f1 85 df a9 00 a2 00 81 c9 4c
06 f3 86 cb 84 cc 85 cd 68 85
ce 68 85 d1 85 c9 68 85 d0 85
ca ba 86 cf a5 ce 29 10 f0 27
38 a5 d1 e9 02 85 d1 85 c9 a5
d0 e9 00 85 d0 85 ca a5 df f0
08 a2 00 86 df 81 c9 f0 0a e6
c9 e6 d1 d0 04 e6 ca e6 d0 20
b6 f1 4c 36 f3 6c d5 00 6c d7
00 6c db 
disassembled:

Code: Select all

                  * = F319
F319   A2 FF      LDX #$FF
F31B   9A         TXS
F31C   86 CF      STX $CF
F31E   E8         INX
F31F   86 CE      STX $CE
F321   86 DF      STX $DF
F323   A9 57      LDA #$57
F325   85 DB      STA $DB
F327   85 DD      STA $DD
F329   A9 F3      LDA #$F3
F32B   85 DC      STA $DC
F32D   85 DE      STA $DE
F32F   D8         CLD
F330   58         CLI
F331   A0 1F      LDY #$1F
F333   20 5B F2   JSR $F25B
F336   20 3C F1   JSR $F13C
F339   20 B7 F2   JSR $F2B7
F33C   4C 36 F3   JMP $F336
F33F   A0 26      LDY #$26
F341   20 5B F2   JSR $F25B
F344   A2 C3      LDX #$C3
F346   20 DF F1   JSR $F1DF
F349   20 8A F1   JSR $F18A
F34C   85 DF      STA $DF
F34E   A9 00      LDA #$00
F350   A2 00      LDX #$00
F352   81 C9      STA ($C9,X)
F354   4C 06 F3   JMP $F306
F357   86 CB      STX $CB
F359   84 CC      STY $CC
F35B   85 CD      STA $CD
F35D   68         PLA
F35E   85 CE      STA $CE
F360   68         PLA
F361   85 D1      STA $D1
F363   85 C9      STA $C9
F365   68         PLA
F366   85 D0      STA $D0
F368   85 CA      STA $CA
F36A   BA         TSX
F36B   86 CF      STX $CF
F36D   A5 CE      LDA $CE
F36F   29 10      AND #$10
F371   F0 27      BEQ $F39A
F373   38         SEC
F374   A5 D1      LDA $D1
F376   E9 02      SBC #$02
F378   85 D1      STA $D1
F37A   85 C9      STA $C9
F37C   A5 D0      LDA $D0
F37E   E9 00      SBC #$00
F380   85 D0      STA $D0
F382   85 CA      STA $CA
F384   A5 DF      LDA $DF
F386   F0 08      BEQ $F390
F388   A2 00      LDX #$00
F38A   86 DF      STX $DF
F38C   81 C9      STA ($C9,X)
F38E   F0 0A      BEQ $F39A
F390   E6 C9      INC $C9
F392   E6 D1      INC $D1
F394   D0 04      BNE $F39A
F396   E6 CA      INC $CA
F398   E6 D0      INC $D0
F39A   20 B6 F1   JSR $F1B6
F39D   46 36 F3     JMP $F336
F3A0   6C D5 00   JMP ($00D5)
F3A3   6C D7 00     JMP ($00D7)
F3A6   6C DB 00   JMP ($00DB)
F3A9              .END

Re: Lab-Volt 6502 Trainer - Looking for instructions

Posted: Mon May 22, 2017 6:50 am
by BigEd
Nice - that certainly starts off looking like cold-start initialisation code!

This is a bit unexpected:

Code: Select all

F336  20 3C F1  JSR $F13C
F339  20 B7 F2  JSR $F2B7
F33C  4C 36 F3  JMP $F336
It's surely worthwhile to go through checking for typos - if you can get a friend to call out values from the copy while you look at the originals, that can be pretty quick. (Or you could record yourself reading them out I suppose)

Re: Lab-Volt 6502 Trainer - Looking for instructions

Posted: Mon May 22, 2017 8:35 pm
by Nuxi
Nope, that's right. Fixed two near the end though. Reading these 8 segment LEDs is brutal. "b" vs "6" is next to impossible not to misread. I could just break down and buy something to read the ROMs, I suppose, but hey, the primitiveness of the set-up is half the fun.

Biggest priority is trying to figure out where the display routines are.

Re: Lab-Volt 6502 Trainer - Looking for instructions

Posted: Thu May 25, 2017 2:19 am
by Nuxi
So I haven't had a whole lot of time to play with this. But I've poked around (or, to be more accurate, peeked around), and firmly established:
$0000-03FF RAM
$E000-E??? User ROM
$F000-F??? ROM

It's a start. If, as I assume this:

Code: Select all

F336  20 3C F1  JSR $F13C
F339  20 B7 F2  JSR $F2B7
F33C  4C 36 F3  JMP $F336
is the main monitor loop, one subroutine might be keyboard input routine, the other the parser. Which I should be able to verify if I can find a jmp $E000 in there somewhere, reflecting the USR1 key. So I'll dump those sections next, I suppose.

Also, interestingly, standby mode is a true standby, not a soft off. It leaves RAM intact, which is quite nice.

Re: Lab-Volt 6502 Trainer - Looking for instructions

Posted: Wed Oct 10, 2018 3:55 am
by rootboy
Hi guys,

I stumbled across one of these trainers complete with the frame (case?) which includes the power supply. It came with four boards as seen in this post:

https://www.blackberryforums.com/parts/ ... 99305.html

I haven't found much documentation on it, other than what I found here. Also, I have a MCUMall GQ-4X which should read the ROM (I'll have to check for compatibility first). Are you guys still interested in a dump of the Monitor ROM? (and is that allowed here?)

Re: Lab-Volt 6502 Trainer - Looking for instructions

Posted: Tue Oct 16, 2018 4:27 am
by rootboy
Update: I did some researching and found this book:"Microprocessor Concepts and Applications" ISBN 0-86657-005-5, which covers the usage of the trainer, as well as having a hard copy of the Monitor in the appendix. However, it does not cover the add-on boards.

Re: Lab-Volt 6502 Trainer - Looking for instructions

Posted: Tue Oct 16, 2018 4:36 am
by Dr Jefyll
Apologies, rootboy! Our manners are found to be lacking! :oops: No-one has acknowledged your post from last week, or your offer of providing a ROM dump. Yes, it's allowed to post that here. Thank you... and welcome!

Do you have photos of these add-on boards you mentioned? Although the book doesn't cover them, perhaps we can help infer the details, and maybe figure out how to get them working (assuming that's your goal).

cheers,
Jeff

Re: Lab-Volt 6502 Trainer - Looking for instructions

Posted: Tue Oct 16, 2018 8:55 am
by BigEd
I missed that first post too - welcome, rootboy!