C中的8085模拟器 [英] 8085 simulator in C

查看:98
本文介绍了C中的8085模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


任何人都可以在C中开发8085模拟器

程序吗?可以用什么技术来开发它?

Hi everyone,

Can anyone give some idea about developing an 8085 simulator
program in C? What techniques can be handled to develop this?

推荐答案

在文章< 11 *********** ***********@x35g2000prf.googlegroups .com> ;,
ac * **********@gmail.com < ac *********** @ gmail.comwrote:
In article <11**********************@x35g2000prf.googlegroups .com>,
ac***********@gmail.com <ac***********@gmail.comwrote:

任何人都可以在C中开发一个8085模拟器程序吗?开发这个可以用什么技术来处理?
Can anyone give some idea about developing an 8085 simulator
program in C? What techniques can be handled to develop this?



-Personally-,除非是作业或

a宠物学习项目,否则我不会打扰(即便如此,我也是重新考虑是否

8085是处理器的正确选择。)


如果你想要8085模拟器,我会环顾四周试试
http://sourceforge.net/projects/sim85

或Vaneet Singla'的8085模拟器(适用于各种各样的地方)

-

如果你撒谎到编译器,它会得到它复仇。 - Henry Spencer

-Personally-, I wouldn''t bother unless it was an assignment or
a pet learning project (and even then, I''d reconsider whether
8085 was the right choice of processors.)

If you wanted an 8085 simulator, I''d look around and try out
http://sourceforge.net/projects/sim85
or Vaneet Singla''s 8085 simulator (available in a wide variety of places)
--
If you lie to the compiler, it will get its revenge. -- Henry Spencer


6月4日上午11点15分,activearun ... @ gmail.com

< activearun ... @ gmail.comwrote:
On Jun 4, 11:15 am, "activearun...@gmail.com"
<activearun...@gmail.comwrote:

大家好,


任何人都可以对开发8085模拟器有所了解<在C中用
程序?开发这个可以用什么技术来处理?
Hi everyone,

Can anyone give some idea about developing an 8085 simulator
program in C? What techniques can be handled to develop this?

http://www.google.com/search?hl=en&q...=Google+Search

http://www.google.com/search?hl=en&q...=Google+Search


6月4日下午1:30,rober ... @ ibd.nrc-cnrc.gc.ca(Walter Roberson)

写道:
On Jun 4, 1:30 pm, rober...@ibd.nrc-cnrc.gc.ca (Walter Roberson)
wrote:

文章< 1180980953.503669.203 ... @ x35g2000prf.googlegroups .com>,


activearun ... @ gmail.com< activearun。 .. @ gmail.comwrote:
In article <1180980953.503669.203...@x35g2000prf.googlegroups .com>,

activearun...@gmail.com <activearun...@gmail.comwrote:

任何人都可以在C中开发一个8085模拟器

程序吗?开发这个可以用什么技术来处理?
Can anyone give some idea about developing an 8085 simulator
program in C? What techniques can be handled to develop this?



-Personally-,除非是作业或

a宠物学习项目,否则我不会打扰(即便如此,我也是重新考虑是否$ 80 $ b 8085是处理器的正确选择。)


-Personally-, I wouldn''t bother unless it was an assignment or
a pet learning project (and even then, I''d reconsider whether
8085 was the right choice of processors.)



我不认为8085是一个糟糕的选择。非常简单的指令集。

我在大约20年前的一个周末做了这件事,仅仅是为了它。我想要在VAX上模拟一台旧单板PC。


OP想要有关技术的建议。我记得,操作码的

高位半字节几乎告诉你指令

会做什么,所以我做了16个函数的数组并使用了高位半字节

索引到数组中。然后我有16个单独的函数来处理

的操作。较低的半字节主要用于寻址,因此

也可以索引到正确寄存器的数组中。正确设置标志

是最棘手的部分。

I don''t think 8085 is such a bad choice. Very simple instruction set.
I did this one weekend about 20 years ago just for the heck of it. I
had an old single board PC I wanted to emulate on a VAX.

The OP wanted suggestions on techniques to do this. As I recall, the
upper nibble of the opcode pretty much tells you what the instruction
will do, so I made an array of 16 functions and used the upper nibble
to index into the array. Then I had 16 individual functions to handle
the operations. The lower nibble is mostly for addressing, so that too
can index into an array for the correct register. Setting the flags
properly was the trickiest part.


这篇关于C中的8085模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆