成功移植了MYVM(一个字符界面的假想的汇编语言虚拟机)到mini2440,对于学习计算机原理有帮助, readme.txt文件如下:
What
This is a ported version of MYVM for ARM architecture, it is helpful for learning how the
computer CPU works.
Source tree
.
|-- COPYING
|-- example
| |-- MYVM.EXE
| |-- bits.asm
| |-- hanoi.asm
| |-- hanoi.c
| |-- hello.asm
| |-- myvm
| |-- numlist.asm
| |-- ones.asm
| |-- readme.txt
| |-- sumin.asm
| `-- sums.asm
|-- readme.txt
`-- src
|-- as.cpp
|-- as.h
|-- makefile
|-- mc.cpp
|-- mc.h
|-- misc.h
|-- myvm
|-- myvm.cpp
`-- readme.txt
How
to build:
0. unpack the source package: #tar zxvf mymv.tgz
1. entering the destination directory: #cd myvm/src
2. make the binary: #make
3. done. The binary 'myvm' built
to run:
0. entering the example directory: #cd myvm/example
1. execute the demos, e.g.
#./myvm -e0 hanoi.asm
[root@armdev example]# ./myvm -e0 hanoi.asm
MYVM Virtual Machine Premiere, Version 0.11a
Copyright under GPL 2002,2003,
Snallie@163.net Assembling code ...
Binary assembled: 150 bytes.
About to execute binary...
taking data from stdin
sending results to stdout
Hanoi key
1 A->C
2 A->B
1 C->B
3 A->C
1 B->A
2 B->C
1 A->C
2. Done. This's it!
See also:
myvm/src/readme.txt
Date stamp:
Fri Jul 31 10:11:42 CST 2009