*** the thought about implemtnt forth virtue machine in a small
microcomputer***
posted on microcontrollerfo
...@yahoogroups.com
hi, my beloved forther.
I've developped assembler/disasembl er/forth kernel for popular
microcomputers such as 8051, arm.... The main aim of the assmbler is
to replace the traditional assembler as well as forth style assembler.
With the aid of forth system on pc as the macro assembler by its
nature we can easily implement assembler on it, with additional forth
kernel code we can easily port basic function of forth virtue machine
to run interactively through rs232. I'd like this way of forth ==
tetherred or umbilical forth. With the help of the with32forth we can
do a lot of things which can not be contained in a small chip. The
microcomputer is really 'micro' which can not or hard to do many jobs.
just leave it with what it can do. with the compiler/assembler/
disassembler. ..... included in a small target cpu is really useless,
it can be done by the host pc. Such that why would we have to
implement assembler/disassemb ler/compiler/ .... and forth on a small
chip . leave it to the pc and only the forth kernel with interactive
function and utilities on the target that's what most of us can do and
do well. I've never and cann't build my own forth system, but we can
build many such kind of virtue forth machine on every microcomputer
including the one I'm working with -- 8x8 multicoe 8 bit forth virtue
machine.
have fun with forth. holi
On 6月30日, 下午5時46分, holi <holin...@yahoo.com.tw> wrote:
> 終於可以使用ice模擬cpu,同時也寫出了可以將自己的語法轉為 讓ice認得的souce code.( cross assembler ).真
> 是有趣.
> 有興趣者可上 groups.yahoo.com/group/armForth files 區的 8x8.asm 和 8x8.f
> 去看看.
> 這是用 8 bits forth virtue machine 關念作出的. 希望藉由 virtue forth cpu 之方法可以推到其
> 它cpu上.
> T : Top of stack
> S: next of stack
> fsp: stack pointer
> rsp: return stack pointer
> W: working register
> X:working register
> Y:working register
> T+S ===> 結果放在左邊 T ,既簡單又清楚.
> ToS ===> or
> TnS ===> and
> TxS ===> xor
> 這些指令都設計成巨集指令.很美!