An imaginary processor

Idea

  • Understand the design and workings of a microprocessor by designing a fictional microcontroller.

Microcontroller

http://www.mikroe.com/img/publication/8051-books/programming-8051-mcu/chapter/ch1/01.gif

Memory

  • The microcontroller has 16 bytes of memory addressed from 0x00 to 0x0F.
  • Memory location 0x0F is a special "accumulator" memory that is used by programs during computation.

Instructions

  • 0x0X - Copy to accumulator (WRITE)
  • 0x1X - Copy from accumulator (READ)
  • 0x2X - Add to accumulator (ADD)
  • 0x3X - Subtract from accumulator (SUBT)
  • 0x4X - Terminate (END)
  • 0x5X - If acumulator is != 0 jump to memory X (IF)

Timer

  • There is no fixed timer as in a microprocessor
  • Instructions are executed at "person" speed

An imaginary processor

By mantaraya36

An imaginary processor

  • 1,289