Previous Thread
Next Thread
Print Thread
Page 24 of 37 1 2 22 23 24 25 26 36 37
Re: ex- USSR and Soviet Bloc hardware [Re: shattered] #106041 06/14/16 08:01 PM
Joined: May 2012
Posts: 518
S
shattered Offline OP
Senior Member
OP Offline
Senior Member
S
Joined: May 2012
Posts: 518
More progress. Added a PC11-type paper tape reader, reused a bit of code from SIMH (console terminal stuff, EIS insns emulation etc.) and now I can run paper-tape software -- for now, it's mostly tests.

ROM CPU tests and 2 of LSI-11 CPU tests (VKAA -- basic instructions, VKAB -- EIS) are passing. FIS test is failing, but this CPU has no hardware FIS support and it's emulated in ROM; unsure if real CPU passes these or not.


MESS: МС1201.02 WIP - MAINDEC-11-DVKAA test passing


MESS: МС1201.02 WIP - MAINDEC-11-DVKAB test passing


MESS: МС1201.02 WIP - MAINDEC-11-DVKAC test failing

Re: ex- USSR and Soviet Bloc hardware [Re: shattered] #106055 06/17/16 07:20 AM
Joined: May 2012
Posts: 518
S
shattered Offline OP
Senior Member
OP Offline
Senior Member
S
Joined: May 2012
Posts: 518
With a bit of fakery (RESET insn does nothing in the current core), VKAH system exerciser is passing too:


MESS: МС1201.02 WIP - MAINDEC-11-DVKAH test passing

and RT-11 (FTMON is reworked XXDP that runs under it) is also booting (with a bit of debugger magic for now):


MESS: МС1201.02 WIP - FTMON running tests from virtual disk

Re: ex- USSR and Soviet Bloc hardware [Re: shattered] #106062 06/18/16 12:24 PM
Joined: May 2012
Posts: 518
S
shattered Offline OP
Senior Member
OP Offline
Senior Member
S
Joined: May 2012
Posts: 518
Two MESS instances talking to each other. This is actually how the real life setup was -- dvk_ksm is self-contained board with no data connection to the bus, so it has to be physically plugged in into host board via null-modem cable.


MESS: emulated dvk_ksm talking to МС1201.02 WIP - FTMON


MESS: emulated dvk_ksm talking to МС1201.02 WIP - FTMON running terminal test

Re: ex- USSR and Soviet Bloc hardware [Re: shattered] #106064 06/18/16 02:20 PM
Joined: Feb 2008
Posts: 326
M
Micko Offline
Senior Member
Offline
Senior Member
M
Joined: Feb 2008
Posts: 326
nice work there. we should move into more work for pdp11 series.

Re: ex- USSR and Soviet Bloc hardware [Re: shattered] #106071 06/18/16 07:31 PM
Joined: May 2012
Posts: 518
S
shattered Offline OP
Senior Member
OP Offline
Senior Member
S
Joined: May 2012
Posts: 518
pdp11 world is mostly octal, so it would be useful to switch various parts of the code into octal mode (disassembler, trace logs, debugger etc.).

Also, triggering a bus error from default unmapped memory handler would be useful too.

(I've worked around both of these but obviously those hacks can't go in as is)

Re: ex- USSR and Soviet Bloc hardware [Re: shattered] #106112 06/22/16 09:58 PM
Joined: May 2012
Posts: 518
S
shattered Offline OP
Senior Member
OP Offline
Senior Member
S
Joined: May 2012
Posts: 518
Using set_input_line from unmapped memory handler to trigger a bus error in the CPU isn't good enough -- it's async and bus errors can happen at insn fetch time. Worked around this for now (moved bus error tracking to machine from cpu) and some more tests are passing.

Also, DIV emulation code from SIMH apparently isn't quite right (this is a test specifically written to exercise emulation of 1801VM2):


Re: ex- USSR and Soviet Bloc hardware [Re: shattered] #106115 06/23/16 07:06 AM
Joined: Apr 2004
Posts: 1,554
J
judge Offline
Very Senior Member
Offline
Very Senior Member
J
Joined: Apr 2004
Posts: 1,554
Originally Posted By shattered
Using set_input_line from unmapped memory handler to trigger a bus error in the CPU isn't good enough -- it's async and bus errors can happen at insn fetch time. Worked around this for now (moved bus error tracking to machine from cpu) and some more tests are passing.


I ran into a similar problem while working on the gameboy driver. It should eventually be fixed once a cpu core becomes sub-cycle accurate. I worked around this by making the execute_set_input method public and calling that directly as well from the driver code.

It is still a hack but at least it prevents code duplication.

Re: ex- USSR and Soviet Bloc hardware [Re: shattered] #106118 06/23/16 04:10 PM
Joined: Jan 2011
Posts: 195
A
Al Kossow Offline
Senior Member
Offline
Senior Member
A
Joined: Jan 2011
Posts: 195
Originally Posted By shattered
Using set_input_line from unmapped memory handler to trigger a bus error in the CPU isn't good enough -- it's async and bus errors can happen at insn fetch time. Worked around this for now (moved bus error tracking to machine from cpu) and some more tests are passing.

Also, DIV emulation code from SIMH apparently isn't quite right (this is a test specifically written to exercise emulation of 1801VM2):



if that is true, you should let bob supnik know (bob
at supnik.org)

Re: ex- USSR and Soviet Bloc hardware [Re: shattered] #106160 06/25/16 08:56 PM
Joined: May 2012
Posts: 518
S
shattered Offline OP
Senior Member
OP Offline
Senior Member
S
Joined: May 2012
Posts: 518
That's unverified for now.

Source code for tests 791401 (equivalent of VKAA) and 791404 (VKAH ??) -- https://github.com/nzeemin/bkbtl-doc/tree/master/Tests

C implementation of 1801VM1 core (converted from reverse-engineered Verilog model) -- http://zx-pk.ru/attachment.php?attachmentid=53262&d=1440679095

Re: ex- USSR and Soviet Bloc hardware [Re: shattered] #106262 07/01/16 07:15 PM
Joined: May 2012
Posts: 518
S
shattered Offline OP
Senior Member
OP Offline
Senior Member
S
Joined: May 2012
Posts: 518
z80daisy.cpp is a nice approximation of Qbus interrupt chain, and so some more tests are passing (f.e. VKAH, it does RESET right at the start). It does not support slot devices, though.

Lots more work to do, but here's what genuine RT-11 5.3 thinks of this emulator atm:


Last edited by shattered; 07/01/16 09:09 PM.
Page 24 of 37 1 2 22 23 24 25 26 36 37

Who's Online Now
1 registered members (Stiletto), 222 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,722
Posts114,651
Members4,873
Most Online510
Aug 26th, 2019
Powered by UBB.threads™ PHP Forum Software 7.7.3