User:RHansen: Difference between revisions

From NDWiki
Jump to navigation Jump to search
(Added information on the ND-120 CPU project and the ND-100 in the browser project)
m (minor, added link to ND-110_Satellite_9883.21238)
 
(13 intermediate revisions by the same user not shown)
Line 22: Line 22:


== ND-100 Emulator ==
== ND-100 Emulator ==
I have successfully (with some help) created an ND-100 emulator in .NET/C# with peripherals such as TeleType, Floppy and HardDrive.
I have successfully (with some help) created an ND-100 emulator in .NET/C# with peripherals such as TeleType, Serial Ports,  Floppy and HardDrive.
(I have to admit I have ''borrowed'' some of the complex opcodes from the existing nd100em emulator )


The emulator contains a debugger, disassembler and code tracer in addition to logic to mount different floppy-image, read/write hardddrive, loading BPUN and PROG files directly into memory.
The emulator contains a debugger, disassembler and code tracer in addition to logic to mount different floppy-image, read/write hardddrive, loading BPUN and PROG files directly into memory.


I have successfully dumped and booted SINTRAN version H in ND-100 mode, although there are still some bugs to iron out.
I have successfully dumped and booted SINTRAN versions H, K, L and M in ND-100 mode.
 
This YouTube video shows a boot of SINTRAN L in the emulator [https://www.youtube.com/watch?v=HdVbfdQeWOk&ab_channel=RonnyHansen]




Line 33: Line 34:


[[File:Disk-choice-m.png|200px|thumb|right|Possible disk choices to install SIII M on]]
[[File:Disk-choice-m.png|200px|thumb|right|Possible disk choices to install SIII M on]]
I have tried booting SINTRAN K, L and M.  Dumping to HDD works great, but I haven't successfully managed to boot SINTRAN  from HD with 22!
If using DISK-75MB-1, I am actually able to make SINTRAN start. However it fails after a while with a




Line 42: Line 40:
[[File:Paging-test.png|200px|thumb|right|Results from PAGING:TEST]]
[[File:Paging-test.png|200px|thumb|right|Results from PAGING:TEST]]


== What's working in the ND-100 emulator ==
=== What's working in the ND-100 emulator ===
* SINTRAN H boots and runs (with a minor hardcode in the emulator to fix ABSTR bug (?))
* SINTRAN H boots and runs (with a minor hardcode in the emulator to fix ABSTR bug (?))
* SINTRAN K,L and M boots and runs. XMSG starts in L and M
* Test programs that validates the opcodes so far
* Test programs that validates the opcodes so far
** ONE—CHECK, TWO—CHECK, THREE—CHECK
** ONE—CHECK, TWO—CHECK, THREE—CHECK
Line 60: Line 59:
[[File:Conf.png|200px|thumb|right|CONFIGURATION test tool]]
[[File:Conf.png|200px|thumb|right|CONFIGURATION test tool]]


== What's NOT working in the ND-100 emulator ==
=== What's NOT working in the ND-100 emulator ===
* SINTRAN K,L and M doesn't boot fully yet.. There are some page-table mappings that fail with memory exception, and SINTRAN ends up looping. I am guessing the bug is related to memory access or interrupt handling, but so far, I haven't been able to track down the bug.  
* <s>SINTRAN K,L and M triggers a "Memory protection" after a "Page-not-in-memory". This happens to just one specific page, so at the moment "Memory protection" is disabled while I am trying to identify the reason.</s>
 
** Found the bug after 18 months debugging, and many hundred-thousands of log-lines read... It was related to reading Indirect Data in memory with READ_FETCH properties, and the indirect data was on a page that was "NOT IN MEMORY" (ie it had to be paged in to be able to be read).
* MON 131 ABSTR behaves "buggy" in SINTRAN H
* MON 131 ABSTR behaves "buggy" in SINTRAN H
** Something odd happens with zero-pointers for some logical devices sending the CPU into a loop at P=0
** Something odd happens with zero-pointers for some logical devices sending the CPU into a loop at P=0
* Odd behavior in CONFIGURATION on interrupt detection (see picture on the right)
** Guessing there is an opcode not working 100% that failed some initialisation.
* Copying file from papertape driver to SINTRAN disk with "COPY 'FILE:BPUN' PT1' fails after 129 bytes. It just stops, and I have to cancel the copy with ESC key.
 
* Copying file from papertape driver to SINTRAN H disk with "COPY 'FILE:BPUN' PT1' fails after 129 bytes. It just stops, and I have to cancel the copy with ESC key.


==I am looking for the following==
===I am looking for the following===
* Images of SINTRAN J floppies. The source code that has been scanned is SINTRAN J.
* SINTRAN N (the newest version of SINTRAN) and patch files for Y2K.
* Other binary images (Tape, PaperTape, HDD, Floppy,+++) All SINTRAN III versions are of interrest.
* All SINTRAN III versions are of interrest. And PATCH files. Did i mention PATCH files?
* Other binary images (Tape, PaperTape, HDD, Floppy,+++)  
* Source Code. Any source code. Especially test programs and IO drivers.
* Source Code. Any source code. Especially test programs and IO drivers.
* Documentation on Date/Time format/calculation for file/timestamps
* Hard Disk boot sector information - currently I must boot from via "boot floppies" and I would like to be able to boot directly from the HDD.
** Starting to get a grip on this, as there is some documentation in the microcode. I have understood floppy-boot, working on understanding HDD boot (or maybe I just need a bootable HD)


==Things I am working on==
===Things I am working on===
* After getting the source code for SINTRAN L, I am now focusing on getting version L to boot to login prompt.
* Finding the bugs that forces me to have workaround for ABSTR and Memory Management (Guessing: opcodes and/or ALU flags)
** Dumping to DISK-75MB-1 works great. Boot startes and runs around 2.5 million instructions before it hangs.
* Validate CE (Commercial Extended) opcodes. They are confirmed working using "INSTRUCTION" test program, but it doesn't test all variants.
** Currently stuck on a page-fault in a none-demand segment after SINTRAN starts the RT system. SINTRAN Segment Administration on Level 3 tries to give it a PageTable setting, but can't. It then restarts the process, and we have a never-ending loop.
** BCD  
** JMP 042314  = ESCER => Page Fault! PT=9 VPN=17 PTe=00000000 Accessmode=FETCH PGS=141121
** Stack (INIT, ENTR, LEAV, ELEAV) - for PLANC programs.
* Getting the I/O devices to work flawlessly. Normal read/write works in my drivers, but test-programs are not working 100% as they are enabling "test mode" which I havent implemented (yet).
* I am focusing on getting the ND-10/ND-100 opcodes working 100%. (I do believe that the ones that are implemented are "almost" bugfree)
* Implementing the missing opcodes
** «Commercial Extended» (CE) option (BCD)
** CX opcodes (Stack, Segment,)
** ND-110 Specific opcodes  
** ND-110 Specific opcodes  
*** Since I now have the ND-110 emulator working, I should be able do decode how the missing opcodes work and get them working.
*** Since I now have the ND-110 emulator working, I should be able do decode how the missing opcodes work and get them working. But in reality I dont think I need the ND-110 specific opcodes, as they are mostly added for performance reasons.
* Focusing on getting SINTRAN H work 100% flawlessly (could be opcodes, but at the moment all my trouble is inside ''MON 131 ABSTR'')
*** CX opcodes (Segment)


* ND-100 Running in the browser
* Implementing more controllers
** HDLC/MEGALINK
*** IO interface is finished. Implementation of the HDLC controller "COM 5025" from SMC is somewhat working. Now I am ironing out the details using the "HDLC test program"
*** The goal is to have "simulated" serial communication over TCP to be able to communicate with other emulated ND machines using COSMOS.
*** '''Looking for network software (especially TCP-IP) for SINTRAN. So far this software is not on any floppy I know about.
** Ethernet'''
*** Ethernet II controller has an onboard 68000 CPU and a LANCE controller. Work is in progress to emulate the chips and map the devices together.
*** Controller has no EPROM, but shared memory with the ND-100 machine. The program on the controller is loaded from ND-100 and the 68K cpu is restarted after code is loaded to RAM.
** SCSI Controller
*** IO interface is finished, implementation of the SCSI is complete. The SCSI Chip is an NCR 5386.
*** Emulated SCSI Bus and "generic" SCSI HDD is complete.
*** Emulated 135MB SCSI HD "Micropolis 1375 SCSI Drive" works quite good with DISK-MM, SCSI-TV and Filesystem Investigator
**** Video of me testing can be seen here https://youtu.be/EqF9FhFZj2g
**** Using a IMG file that is dumped from a real Micropolis 1375 drive!
***** I believe the image is from this machine [[ND-110_Satellite_9883.21238]]
*** SINTRAN boot or "ENTER-DIRECTORY" for DISC-SCSI-1 fails, so there are still some details that need to be fixed.
*** The goal is to have a working SCSI interface so ND-100 can boot directly from images dumped from SCSI drives.
** ND-500 controller
*** Added skeleton for PCB 3022 [https://www.ndwiki.org/wiki/3022], the ND-500 interface
*** CONFIGURE detects the new controller, but I have not implemented any logic inside
*** '''Looking for documentation details on this controller as I am unable to find any.'''
 
===ND-100 Running in the browser===
** Working on making the emulator(s) working in the browser by compiling C# to WebAssembly
** Working on making the emulator(s) working in the browser by compiling C# to WebAssembly
** CPU is running nicely, working on giving access to IO devices
** CPU is running nicely, working on giving access to IO devices
** You can test by going to [https://retrocore.hackercorp.no/ https://retrocore.hackercorp.no/] and selecting machine=ND100 then powering on the Emulator.
** You can test by going to [https://retrocore.hackercorp.no/ https://retrocore.hackercorp.no/] and selecting machine=ND100 then powering on the Emulator.
** Feedback, comments, and help is much appreciated
** Feedback, comments, and help is much appreciated
*** I am able to mount HDD for code running in the browser, but booting and running SINTRAN is painfully slow. So maybe not so good idea to do that..
===Open Source===
* When I have a stable working version, I am planning to put the source code on GitHub under a BSD License. Then everyone can look at the code, modify it or just run it.
* I have been playing with the idea on porting my C# code to C - when its stable. And integrate it in the SIMH projects [https://github.com/open-simh/simh]. For this I may need help :)
** I just found out that there exists and ND-100 emulator in OPEN-SIMH written in C by "Ragge". It is not 100% complete, lacking some opcodes, complete MMU and some devices - so you cannot boot Sintran (yet..) - https://github.com/open-simh/simh/tree/master/ND100


==ND-110 Emulator==
[[File:ND-110-UC.png|200px|thumb|right|MicroCode with syntax highlighting]]
[[File:ND-110-UC.png|200px|thumb|right|MicroCode with syntax highlighting]]
* ND-110 MicroCode CPU
* ND-110 MicroCode CPU
** Creating a new CPU emulator at the MicroCode level to teach me more about the internals of the opcodes, but also to (hopefully) help me identify "features" in my ND-100 Emulator
** Creating a new CPU emulator at the MicroCode level to teach me more about the internals of the opcodes, but also to (hopefully) help me identify "features" in my ND-100 Emulator
Line 103: Line 126:
*** MicroCode retrieved from PDF document using OCR techniques mixed with some "text washing" gives me a file with 16600 lines of microcode I manually have validate against the PDF. After retriving a copy of a ROM for a ND-110 cpu board, I could compare the compiled result with the ROM and found 150+ errors in the source file. Now that is fixed, and the compiled microcode is identical to the ROM.
*** MicroCode retrieved from PDF document using OCR techniques mixed with some "text washing" gives me a file with 16600 lines of microcode I manually have validate against the PDF. After retriving a copy of a ROM for a ND-110 cpu board, I could compare the compiled result with the ROM and found 150+ errors in the source file. Now that is fixed, and the compiled microcode is identical to the ROM.
***  
***  
*** MicroCode CPU working. I have implemented registers, ALU (really 4x Am2901 chips) and interrupts (Am2914 chip)  
*** MicroCode CPU working. I have implemented registers, ALU (actually its 4x Am2901 chips) and interrupts (Am2914 chip)  
**** The remaining parts are to get the interrupt subsystem 100% correct, then add memory management and implement Traps.
*** Macro code execution work.  
**** I am looking for more information that explains the Trap handling.
*** Interrupts and traps "somewhat" works. Still need improvement
*** Macro code execution works, except interrupts and traps.
*** Memory management is "copied" from ND-100 emulator, but needs to be re-written to match ND-110/ND-120 hw
*** This CPU is definitively slower than the ND-100 emulator, but hopefully behave 100% like the original. This way I can verify behavior differences between the ND-100 opcodes and the ND-110 opcodes.
*** This CPU is definitively slower than the ND-100 emulator, but hopefully behave 100% like the original. This way I can verify behavior differences between the ND-100 opcodes and the ND-110 opcodes.
*** If you want to test the emulator/debugger, its available at [https://nd110.hackercorp.no/ https://nd110.hackercorp.no/]
*** If you want to test the emulator/debugger, its available at [https://nd110.hackercorp.no/ https://nd110.hackercorp.no/]
* ND-120 MicroCode CPU
** Extended the ND-110 MicroCode CPU to work with ND-120 microcode.
*** Microcode almost identical, there are a few bits that has been negated and needs to be handled when reading the PROM
*** Different UART than ND-100 and ND-110, so support for this has been implemented
*** OpCom works, so I can communicate via console.
*** There are other differences, I am guessing in the interrupt subsystem. Consequence is that I cant start programs like INSTRUCTION verify, it just hangs.


==ND-120 Emulator==
* ND-120 FPGA CPU
* ND-120 FPGA CPU
** Creating a new CPU emulator at hardware level using the original design documents from 1988
** Creating a new CPU emulator at hardware level using the original design documents from 1988
*** Draw the digital logic using Logisim Evolution.  
*** Draw the digital logic using Logisim Evolution.  
**** Done with CGA (CPU Gate Array)
**** Finished : CGA (CPU Gate Array). Verilator test code generated, more testcases needed.
**** Started on DGA (Decoder Gate Array)
**** Finished : DGA (Decoder Gate Array). Verilator test code generated, more testcases needed.
**** Remaining: PCB, PAL's and some special chips (like the UART).
**** Finished : CPU BOARD PCB 3202D - Does require some manual work directly in the generated Verilog files as Logisim doesn't handle pins that are both IN and OUT.
**** Work in progress : PAL's and some special chips (like RAM and UART).  
**** I have secured a dump of the microcode from EPROM on a real ND-120 CPU.
**** I have secured a dump of the microcode from EPROM on a real ND-120 CPU.
*** Convert the schematics to Verilog (Built in functionality in Logisim).
*** Convert the schematics to Verilog (Built in functionality in Logisim).
Line 121: Line 152:
*** Development is done in the open, check out [https://github.com/RonnyA/nd-120 https://github.com/RonnyA/nd-120]
*** Development is done in the open, check out [https://github.com/RonnyA/nd-120 https://github.com/RonnyA/nd-120]
*** Help is much appreciated as I am new to Verilog and FPGA programming
*** Help is much appreciated as I am new to Verilog and FPGA programming
*** When CPU PCB is finished, with serial port access to OPCOM the next step is to implement support for IO devices like floppy and harddrive.
*** When the complete CPU PCB (with CGA and DGA) is finished in Verilog, with serial port access to OPCOM the next step is to implement support for IO devices like floppy and harddrive.
 
== ND Controller card Emulator==
* Controller card for HDD emulated in hardware FPGA
** Today you need an real working HDD or an MFM emulator with MFM controller card in an ND machine to boot.
*** I bought this [https://www.pdp8online.com/mfm/mfm.shtml MFM Emulator] and worked with the person that made the device, and he was very helpful to extend the code it so the MFM emulator is now able to read and write ND Micropolis MFM disks.
** If you have an SCSI controller you need a working SCSI HDD or an SCSI HDD emulator.
*** I just received an [https://store.rabbitholecomputing.com/ZuluSCSI-RP2040-p/zuluscsi-rp2040.htm Zulu SCSI emulator] I am about to test.
** This project aims to solve this by emulating a real controller using FPGA, and having the "HDD DISK" as an image on a SD card.
** Emulation of floppy controller is also planned.
** This way we will be able to run test programs and boot ND hardware that doesn't have working disk/disk-controllers.


==TDV 2215 Emulator==
[[File:Tdv-2215-boot-emul-err.png|200px|thumb|right|TDV2215 booting with error]]
[[File:Tdv-2215-boot-emul-err.png|200px|thumb|right|TDV2215 booting with error]]
* Creating an emulator of the TDV2215 terminal.  
* Creating an emulator of the TDV2215 terminal.  
** Using the original schematics, an emulated 8085 CPU and ROM dumps from an original TDV.
** Using the original schematics, an emulated 8085 CPU and ROM dumps from an original TDV.
Line 130: Line 171:
** I am still working on mapping the original HW to my emulator.  
** I am still working on mapping the original HW to my emulator.  
** Using Ghidra to reverse engineer the ROM code, but its hard to understand what the ROM code really tries to do, and why it fails.  Having had the source code with comments would have been helpful :)
** Using Ghidra to reverse engineer the ROM code, but its hard to understand what the ROM code really tries to do, and why it fails.  Having had the source code with comments would have been helpful :)
** YouTube video showing boot here: [https://youtu.be/-MwsB6Yzs94]
* Added TD2200 support directly in the emulators "graphic" mode
** Decoding ESC sequences and sending ESQ sequences based on TDV manuals describing some of them. Adding in som VT100 emulation to make the rest work. Mapping special keys (arrow keys) to send ESC codes.
** YouTube video showing TDV emulation running S3-CONF program under SINTRAN [https://youtu.be/-DP_Q-nxQQw]
==ND-110 Compact==
I have beeen so lucky that I have gotten a real ND-110/CX Compact with the following HW configuration
{| class="wikitable"
|+ PCB Description Print
|-
! SLOT !! ID !! PCB !! Description !! Print and ECO
|-
| 12 || 324113 || PCB 3042 || 1 MB Memory || Print A ECO D
|-
| 11 || 322623 || PCB 3023 || ND100 MEGALINK IF || Print D ECO K
|-
| 10 || 324534 || PCB 3094 || ETHERNET IF. II || Print C
|-
| 9 || 324011 || PCB 3111 || 8 TERM IF W/FIFO || Print C
|-
| 8 || 324012 || PCB 3112 || 8" + 5 1/4 FLOPPY || Print B
|-
| 7 || 322671 || PCB 3041 || N-100 ST 506 DISK CONTR. || Print E ECO K
|-
| 6 || 322623 || PCB 3023 || ND100 MEGALINK IF || Print D ECO K
|-
| 5 || 322623 || PCB 3023 || ND100 MEGALINK IF || Print D ECO G
|-
| 4 || 322615 || PCB 3015 || ND100 HDLC W/A.LO || Print <unknown>
|-
| 3 || 322615 || PCB 3015 || ND100 HDLC W/A.LO. || Print S ECO V
|-
| 2 || 324137 || PCB 3090 || ND110 - CPU&MM 32B || Print K ECO R
|-
| 1 || 322672 || PCB 3042 || N100 2MB RAM || Print A ECO D
|}
The machine also has a Micropolis 1325 ST506 74MB drive. Sadly there is some issues with reading data from it.
* Reading head 0-3 works on all tracks
* Reading head 4-7 fails on all tracks with error "Address mismatch"
After buying an MFM emulator from [https://www.pdp8online.com/mfm/] and getting help and support, including firmware extension to identify and read ND disk format I have been able to partially dump the contents of the disk.
The challenge is that the heads 4-7 is reading the "next" track because they are misaligned - and I need to add some HW to try to make the disk adjust how it reads it heads - as described here [http://www.pdp8online.com/mfm/head_servo/]
Using the MFM emulator I am now able to boot the ND-100/CX machine from an disk image I have prepared in my emulator.
I also got a TDV 1200 terminal, which upon startup had a capacitor in the powersupply to burn. I have replaced the capacitors in the powersupply, but there is some unstability that I believe is related to heat (read:old chips - or more capacitors that needs to be replaced)
Short YouTube video showing the problem: [https://youtube.com/shorts/uek6hpqzYvE]
To connect to the ND machine I use a serial-to-current loop adapter i bought from Mouser. [https://no.mouser.com/ProductDetail/Advantech/BB-232CL9R?qs=zW32dvEIR3vYFmSSVfM7ig%3D%3D&countryCode=NO&currencyCode=NOK]


==Open Source==
==Sources==
* When I have a stable working version, I am planning to put the source code on GitHub under a BSD License. Then everyone can look at the code, modify it or just run it.
<references/>
* I have been playing with the idea on porting my C# code to C - when its stable. And integrate it in the SIMH projects [https://github.com/open-simh/simh]. For this I may need help :)

Latest revision as of 18:28, 31 March 2024

Ronny
 
Real name: Ronny Hansen
Role: Developer, Architect, Geek
Interrested in: Everything between Embedded and Cloud
 

A long time ago, in another universe it seems, I was using SINTRAN on an ND-100 at our electronics/computer school. We configured and ran the machine after we inherited it.

These days I am a Cloud Architect, Developer and Geek - and the last years I have been spending an unhealthy amount of time writing emulators. You can read how this crazy journey started here [1]

ND-100 Emulator

I have successfully (with some help) created an ND-100 emulator in .NET/C# with peripherals such as TeleType, Serial Ports, Floppy and HardDrive.

The emulator contains a debugger, disassembler and code tracer in addition to logic to mount different floppy-image, read/write hardddrive, loading BPUN and PROG files directly into memory.

I have successfully dumped and booted SINTRAN versions H, K, L and M in ND-100 mode.

This YouTube video shows a boot of SINTRAN L in the emulator [2]


Booting SINTRAN H in the emulator

Possible disk choices to install SIII M on


SIII M ERROR
Results from PAGING:TEST

What's working in the ND-100 emulator

  • SINTRAN H boots and runs (with a minor hardcode in the emulator to fix ABSTR bug (?))
  • SINTRAN K,L and M boots and runs. XMSG starts in L and M
  • Test programs that validates the opcodes so far
    • ONE—CHECK, TWO—CHECK, THREE—CHECK
    • FOUR—CHECK (a few bugs still)
    • INSTRUCTION-B.BPUN (PROGRAM NUMBER: 204384B DATE ISSUED  : 83.11.01)
    • PAGING-B.BPUN (PROGRAM NUMBER: 203098B 1982)
    • FLOPPY-FU-1986F (All tests work except Test 2 "Format Decoder Test" on my PIO floppy driver)
    • Test programs on floppy "210523E00-XX-01D"
      • INSTRUCTION - Version: C00 - 1986-10-30
        • "48 BITS FLOATING INSTRUCTIONS" - not working as I am only emulating 32 bits FPU
      • PAGING - Version: C00 - 1986-10-16
        • All tests report success in MMS-1 and MMS-2 mode.
INSTRUCTIONS FPP test
CONFIGURATION test tool

What's NOT working in the ND-100 emulator

  • SINTRAN K,L and M triggers a "Memory protection" after a "Page-not-in-memory". This happens to just one specific page, so at the moment "Memory protection" is disabled while I am trying to identify the reason.
    • Found the bug after 18 months debugging, and many hundred-thousands of log-lines read... It was related to reading Indirect Data in memory with READ_FETCH properties, and the indirect data was on a page that was "NOT IN MEMORY" (ie it had to be paged in to be able to be read).
  • MON 131 ABSTR behaves "buggy" in SINTRAN H
    • Something odd happens with zero-pointers for some logical devices sending the CPU into a loop at P=0
    • Guessing there is an opcode not working 100% that failed some initialisation.
  • Copying file from papertape driver to SINTRAN H disk with "COPY 'FILE:BPUN' PT1' fails after 129 bytes. It just stops, and I have to cancel the copy with ESC key.

I am looking for the following

  • SINTRAN N (the newest version of SINTRAN) and patch files for Y2K.
  • All SINTRAN III versions are of interrest. And PATCH files. Did i mention PATCH files?
  • Other binary images (Tape, PaperTape, HDD, Floppy,+++)
  • Source Code. Any source code. Especially test programs and IO drivers.

Things I am working on

  • Finding the bugs that forces me to have workaround for ABSTR and Memory Management (Guessing: opcodes and/or ALU flags)
  • Validate CE (Commercial Extended) opcodes. They are confirmed working using "INSTRUCTION" test program, but it doesn't test all variants.
    • BCD
    • Stack (INIT, ENTR, LEAV, ELEAV) - for PLANC programs.
    • ND-110 Specific opcodes
      • Since I now have the ND-110 emulator working, I should be able do decode how the missing opcodes work and get them working. But in reality I dont think I need the ND-110 specific opcodes, as they are mostly added for performance reasons.
      • CX opcodes (Segment)
  • Implementing more controllers
    • HDLC/MEGALINK
      • IO interface is finished. Implementation of the HDLC controller "COM 5025" from SMC is somewhat working. Now I am ironing out the details using the "HDLC test program"
      • The goal is to have "simulated" serial communication over TCP to be able to communicate with other emulated ND machines using COSMOS.
      • Looking for network software (especially TCP-IP) for SINTRAN. So far this software is not on any floppy I know about.
    • Ethernet
      • Ethernet II controller has an onboard 68000 CPU and a LANCE controller. Work is in progress to emulate the chips and map the devices together.
      • Controller has no EPROM, but shared memory with the ND-100 machine. The program on the controller is loaded from ND-100 and the 68K cpu is restarted after code is loaded to RAM.
    • SCSI Controller
      • IO interface is finished, implementation of the SCSI is complete. The SCSI Chip is an NCR 5386.
      • Emulated SCSI Bus and "generic" SCSI HDD is complete.
      • Emulated 135MB SCSI HD "Micropolis 1375 SCSI Drive" works quite good with DISK-MM, SCSI-TV and Filesystem Investigator
      • SINTRAN boot or "ENTER-DIRECTORY" for DISC-SCSI-1 fails, so there are still some details that need to be fixed.
      • The goal is to have a working SCSI interface so ND-100 can boot directly from images dumped from SCSI drives.
    • ND-500 controller
      • Added skeleton for PCB 3022 [3], the ND-500 interface
      • CONFIGURE detects the new controller, but I have not implemented any logic inside
      • Looking for documentation details on this controller as I am unable to find any.

ND-100 Running in the browser

    • Working on making the emulator(s) working in the browser by compiling C# to WebAssembly
    • CPU is running nicely, working on giving access to IO devices
    • You can test by going to https://retrocore.hackercorp.no/ and selecting machine=ND100 then powering on the Emulator.
    • Feedback, comments, and help is much appreciated
      • I am able to mount HDD for code running in the browser, but booting and running SINTRAN is painfully slow. So maybe not so good idea to do that..

Open Source

  • When I have a stable working version, I am planning to put the source code on GitHub under a BSD License. Then everyone can look at the code, modify it or just run it.
  • I have been playing with the idea on porting my C# code to C - when its stable. And integrate it in the SIMH projects [4]. For this I may need help :)
    • I just found out that there exists and ND-100 emulator in OPEN-SIMH written in C by "Ragge". It is not 100% complete, lacking some opcodes, complete MMU and some devices - so you cannot boot Sintran (yet..) - https://github.com/open-simh/simh/tree/master/ND100

ND-110 Emulator

MicroCode with syntax highlighting
  • ND-110 MicroCode CPU
    • Creating a new CPU emulator at the MicroCode level to teach me more about the internals of the opcodes, but also to (hopefully) help me identify "features" in my ND-100 Emulator
      • Everything is written in C#/.NET7
      • MicroCode compiler works.
      • MicroCode retrieved from PDF document using OCR techniques mixed with some "text washing" gives me a file with 16600 lines of microcode I manually have validate against the PDF. After retriving a copy of a ROM for a ND-110 cpu board, I could compare the compiled result with the ROM and found 150+ errors in the source file. Now that is fixed, and the compiled microcode is identical to the ROM.
      • MicroCode CPU working. I have implemented registers, ALU (actually its 4x Am2901 chips) and interrupts (Am2914 chip)
      • Macro code execution work.
      • Interrupts and traps "somewhat" works. Still need improvement
      • Memory management is "copied" from ND-100 emulator, but needs to be re-written to match ND-110/ND-120 hw
      • This CPU is definitively slower than the ND-100 emulator, but hopefully behave 100% like the original. This way I can verify behavior differences between the ND-100 opcodes and the ND-110 opcodes.
      • If you want to test the emulator/debugger, its available at https://nd110.hackercorp.no/
  • ND-120 MicroCode CPU
    • Extended the ND-110 MicroCode CPU to work with ND-120 microcode.
      • Microcode almost identical, there are a few bits that has been negated and needs to be handled when reading the PROM
      • Different UART than ND-100 and ND-110, so support for this has been implemented
      • OpCom works, so I can communicate via console.
      • There are other differences, I am guessing in the interrupt subsystem. Consequence is that I cant start programs like INSTRUCTION verify, it just hangs.

ND-120 Emulator

  • ND-120 FPGA CPU
    • Creating a new CPU emulator at hardware level using the original design documents from 1988
      • Draw the digital logic using Logisim Evolution.
        • Finished : CGA (CPU Gate Array). Verilator test code generated, more testcases needed.
        • Finished : DGA (Decoder Gate Array). Verilator test code generated, more testcases needed.
        • Finished : CPU BOARD PCB 3202D - Does require some manual work directly in the generated Verilog files as Logisim doesn't handle pins that are both IN and OUT.
        • Work in progress : PAL's and some special chips (like RAM and UART).
        • I have secured a dump of the microcode from EPROM on a real ND-120 CPU.
      • Convert the schematics to Verilog (Built in functionality in Logisim).
      • Make test programs using Verilator to test the logic, then program that into an FPGA HW Device to test.
      • Development is done in the open, check out https://github.com/RonnyA/nd-120
      • Help is much appreciated as I am new to Verilog and FPGA programming
      • When the complete CPU PCB (with CGA and DGA) is finished in Verilog, with serial port access to OPCOM the next step is to implement support for IO devices like floppy and harddrive.

ND Controller card Emulator

  • Controller card for HDD emulated in hardware FPGA
    • Today you need an real working HDD or an MFM emulator with MFM controller card in an ND machine to boot.
      • I bought this MFM Emulator and worked with the person that made the device, and he was very helpful to extend the code it so the MFM emulator is now able to read and write ND Micropolis MFM disks.
    • If you have an SCSI controller you need a working SCSI HDD or an SCSI HDD emulator.
    • This project aims to solve this by emulating a real controller using FPGA, and having the "HDD DISK" as an image on a SD card.
    • Emulation of floppy controller is also planned.
    • This way we will be able to run test programs and boot ND hardware that doesn't have working disk/disk-controllers.

TDV 2215 Emulator

TDV2215 booting with error
  • Creating an emulator of the TDV2215 terminal.
    • Using the original schematics, an emulated 8085 CPU and ROM dumps from an original TDV.
    • The ROM code does some HW validation and fails with "ERROR NO.: qt" -There are multiple areas it can fail: Z80SIO UART emulation, Interrupt handling and memory mapping.
    • I am still working on mapping the original HW to my emulator.
    • Using Ghidra to reverse engineer the ROM code, but its hard to understand what the ROM code really tries to do, and why it fails. Having had the source code with comments would have been helpful :)
    • YouTube video showing boot here: [5]


  • Added TD2200 support directly in the emulators "graphic" mode
    • Decoding ESC sequences and sending ESQ sequences based on TDV manuals describing some of them. Adding in som VT100 emulation to make the rest work. Mapping special keys (arrow keys) to send ESC codes.
    • YouTube video showing TDV emulation running S3-CONF program under SINTRAN [6]


ND-110 Compact

I have beeen so lucky that I have gotten a real ND-110/CX Compact with the following HW configuration

PCB Description Print
SLOT ID PCB Description Print and ECO
12 324113 PCB 3042 1 MB Memory Print A ECO D
11 322623 PCB 3023 ND100 MEGALINK IF Print D ECO K
10 324534 PCB 3094 ETHERNET IF. II Print C
9 324011 PCB 3111 8 TERM IF W/FIFO Print C
8 324012 PCB 3112 8" + 5 1/4 FLOPPY Print B
7 322671 PCB 3041 N-100 ST 506 DISK CONTR. Print E ECO K
6 322623 PCB 3023 ND100 MEGALINK IF Print D ECO K
5 322623 PCB 3023 ND100 MEGALINK IF Print D ECO G
4 322615 PCB 3015 ND100 HDLC W/A.LO Print <unknown>
3 322615 PCB 3015 ND100 HDLC W/A.LO. Print S ECO V
2 324137 PCB 3090 ND110 - CPU&MM 32B Print K ECO R
1 322672 PCB 3042 N100 2MB RAM Print A ECO D

The machine also has a Micropolis 1325 ST506 74MB drive. Sadly there is some issues with reading data from it.

  • Reading head 0-3 works on all tracks
  • Reading head 4-7 fails on all tracks with error "Address mismatch"

After buying an MFM emulator from [7] and getting help and support, including firmware extension to identify and read ND disk format I have been able to partially dump the contents of the disk. The challenge is that the heads 4-7 is reading the "next" track because they are misaligned - and I need to add some HW to try to make the disk adjust how it reads it heads - as described here [8]

Using the MFM emulator I am now able to boot the ND-100/CX machine from an disk image I have prepared in my emulator.

I also got a TDV 1200 terminal, which upon startup had a capacitor in the powersupply to burn. I have replaced the capacitors in the powersupply, but there is some unstability that I believe is related to heat (read:old chips - or more capacitors that needs to be replaced) Short YouTube video showing the problem: [9]

To connect to the ND machine I use a serial-to-current loop adapter i bought from Mouser. [10]

Sources