close-circle
Close

Assembler and disassembler

A project log for YGREC-РЭС15-bis

YG's 16bits Relay Electric Computer, rebooted

Yann Guidon / YGDES 04/04/2017 at 23:420 Comments

Development with this kind of machine is "bare-metal". I'm simply tired of writing emulators and simulators, and people actually don't need much to get started : forget Eclipse or Emacs, just take some paper and pens. You can program a computer with something to input the instructions, and something else to read/decode the binary into human-readable form.

Following my experience with the #Discrete YASEP, I have decided to create a "hardware assembler/disassembler", using this kind of technology (sans the TTL ICs, see #Quick & Dirty Frequency Generator ):

A set of two boards are connected to the instruction bus :

  1. The first board inputs data using knobs, in a manner that follows the instruction's logic and structure, and writes the corresponding bits on the bus.
  2. The second board reads the bus and displays the value, in a human-readable way (that is : with LEDs and maybe a #DYPLED)

If the user can take over the buses (instruction address bus, instruction read bus, ...), they can examine the program, input arbitrary instructions, single-step through routines, modify the memory and check the execution.


The assembler board provides one switch or rotating knob for each field :

For example :

Note that the values of each position are not all marked because they are displayed in the disassembler board :

Little lamps show the value of the current instruction. In this example, we see the instruction "D1 XOR R3 => R4"

The disassembler board is always connected to the instruction read bus so you can see the machine's thoughts as it runs... But both the assembler and disassembler must be modular because they will be reused for the next implementations in various technologies :-)

Discussions