9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Russ Cox <rsc@swtch.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] 8086 Interpreter
Date: Fri,  3 Sep 2010 16:36:12 -0400	[thread overview]
Message-ID: <AANLkTikFn1PR=kM-37+J51QfzUBFzBxEJHm7tgvmmcdH@mail.gmail.com> (raw)
In-Reply-To: <AANLkTi=MAzbf1egqO6FUrPKEfMCRNB30qRFpVonEw6zP@mail.gmail.com>

On Fri, Sep 3, 2010 at 3:21 PM, Akshat Kumar
<akumar@mail.nanosouffle.net> wrote:
> I've recently had the need for a very simple 8086 interpreter,
> with which I can do some assembly testing (so it should
> allow me to enter the basic opcodes and their operands,
> such as MOV AL, 0x21  etc.). I found 8i in contrib/rsc
> which seems to have been taken from aki's 8i,

I wrote 8i.  If you keep poking around in contrib/rsc
you'll also find 86a and 86b which are different variants
of an 8086 assembler.

vbe.c is just one example of setting up an execution
environment and running code.  You can write your own
foo.c that sets things up the way you want (maybe it
reads the code from a file) and run mk 8.foo.
If you set cpu.trace = 1 you'll get lots of output about
each step during the simulation.

Russ


  parent reply	other threads:[~2010-09-03 20:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-03 19:21 Akshat Kumar
2010-09-03 20:10 ` ron minnich
2010-09-03 20:36 ` Russ Cox [this message]
2010-09-03 21:43   ` Akshat Kumar
2010-09-04 12:29     ` Russ Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTikFn1PR=kM-37+J51QfzUBFzBxEJHm7tgvmmcdH@mail.gmail.com' \
    --to=rsc@swtch.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).