Bobinas P4G
  • Login
  • Public

    • Public
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Ken Shirriff (kenshirriff@oldbytes.space)'s status on Saturday, 11-Mar-2023 21:25:03 UTC Ken Shirriff Ken Shirriff

    Intel introduced the 8086 microprocessor in 1978 and it still has a huge influence through the modern x86 architecture used today. This 16-bit processor contains a bunch of registers, some of them hidden. I reverse-engineered the 5-bit code that it uses to select registers. 🧵

    In conversation Saturday, 11-Mar-2023 21:25:03 UTC from oldbytes.space permalink

    Attachments


    1. https://assets.oldbytes.space/assets.oldbytes.space/media_attachments/files/110/005/932/711/407/973/original/e40cd2d5946c2c80.png
    • Simbionte (santiago@mastodon.uy)'s status on Saturday, 11-Mar-2023 21:32:52 UTC Simbionte Simbionte
      in reply to

      @kenshirriff awesome! so what does this processor has to do with the 80186, 80286 and so on? it is the name architecture/instruction sets but more transistors instead? or completely different?

      In conversation Saturday, 11-Mar-2023 21:32:52 UTC permalink
    • Ken Shirriff (kenshirriff@oldbytes.space)'s status on Saturday, 11-Mar-2023 21:32:54 UTC Ken Shirriff Ken Shirriff
      in reply to

      This system is a bit complicated, but gives the 8086 a lot of flexibility for specifying which registers to use.

      For more information, see my blog post https://www.righto.com/2023/03/8086-register-codes.html

      In conversation Saturday, 11-Mar-2023 21:32:54 UTC permalink

      Attachments


      1. https://assets.oldbytes.space/assets.oldbytes.space/media_attachments/files/110/005/947/810/191/820/original/576affa9c8349437.png
      2. Invalid filename.
        Reverse-engineering the register codes for the 8086 processor's microcode
        Like most processors, the Intel 8086 (1978) provides registers that are faster than main memory. As well as the registers that are visibl...
    • Ken Shirriff (kenshirriff@oldbytes.space)'s status on Saturday, 11-Mar-2023 21:32:55 UTC Ken Shirriff Ken Shirriff
      in reply to

      Each micro-instruction includes a register move between a source and destination register. The micro-instruction can specify the 5-bit code directly, or use the M and N registers for indirection. This way, microcode doesn't need to know which registers an instruction specifies.

      In conversation Saturday, 11-Mar-2023 21:32:55 UTC permalink

      Attachments


      1. https://assets.oldbytes.space/assets.oldbytes.space/media_attachments/files/110/005/943/822/757/368/original/6a342a820a8a172a.png
    • Ken Shirriff (kenshirriff@oldbytes.space)'s status on Saturday, 11-Mar-2023 21:32:57 UTC Ken Shirriff Ken Shirriff
      in reply to

      Instructions for the 8086 processor specify registers through 3 bits in the opcode or following byte. This is expanded to a 5-bit code to support 16-bit registers (red), 8-bit registers (blue), segment registers (green), and special internal registers.

      In conversation Saturday, 11-Mar-2023 21:32:57 UTC permalink

      Attachments


      1. https://assets.oldbytes.space/assets.oldbytes.space/media_attachments/files/110/005/934/836/644/916/original/e94e6846c80a5459.png

      2. https://assets.oldbytes.space/assets.oldbytes.space/media_attachments/files/110/005/935/256/575/363/original/93a5f1252d0d2828.png
    • Ken Shirriff (kenshirriff@oldbytes.space)'s status on Saturday, 11-Mar-2023 21:32:57 UTC Ken Shirriff Ken Shirriff
      in reply to

      The 8086 processor uses microcode, implementing most machine instructions through a sequence of simpler micro-instructions. These micro-instructions can use the M and N registers to access registers specified in the instruction. This microcode exchanges two registers.

      In conversation Saturday, 11-Mar-2023 21:32:57 UTC permalink

      Attachments


      1. https://assets.oldbytes.space/assets.oldbytes.space/media_attachments/files/110/005/941/618/987/004/original/46acbfb0aa059f0d.png
    • Simbionte (santiago@mastodon.uy)'s status on Sunday, 12-Mar-2023 01:59:12 UTC Simbionte Simbionte
      in reply to

      @kenshirriff I remember as a kid, playing DOS gamen with a DEC PC, cannot remember the model, late 80s. Sure ut was a 186 or 286 at most. Miss those good old days. Last week i got a Texas Instruments Voyage 200 with a Motorola 68k processor at 12MHz... I think that those fan less and even cooler-less processors, were the top, everything with a fan+cooler after, was all the way down. Thanks for sharing!

      In conversation Sunday, 12-Mar-2023 01:59:12 UTC permalink
    • Ken Shirriff (kenshirriff@oldbytes.space)'s status on Sunday, 12-Mar-2023 01:59:14 UTC Ken Shirriff Ken Shirriff
      in reply to
      • Simbionte

      @santiago The 80186, 80286, Pentium, etc. are improvements to the 8086, adding more instructions and features and lots more transistors but keeping binary compatibility. Modern x86 chips can still run 8086 code (but only in virtual real mode).

      In conversation Sunday, 12-Mar-2023 01:59:14 UTC permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • Privacy
  • Source
  • Version
  • Contact

Bobinas P4G is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Bobinas P4G content and data are available under the Creative Commons Attribution 3.0 license.