How to create a machine with a zero address

Does anyone have examples of a null address based on one? I was looking for examples of a microprocessor with a zero address, so I can get around it, but I can not find it. Any help in explaining how to develop it would be greatly appreciated.

+4
source share
3 answers

0-operand (machines with a zero address), the so-called stack machines: all arithmetic operations are performed using the top one or two positions on the stack; To access the memory, the instructions of the 1-operand push and pop are used.

press push b
add
pop c

Just by looking at what the design looks like, so far everyone I saw had a MAR, which, if I'm not mistaken, is a memory address register.

So this does not mean that they are not zero address machines?

+4
source

Today, you can better understand the concepts by looking and actually experimenting with shared virtual machines. For example, the JVM is a stack-based machine and affordable bytecode compilation and manipulation tools that are easy to experiment with.

Smalltalk is another example, but overall, based on the stack languages, it's worth a look, and the understanding gained there can easily be transferred to the hardware level when necessary.

+3
source

I'm not sure if this will help you, but:

http://i.stack.imgur.com/1rWv5.gif

I got it from a manual on a website that talked about machines with a null operand, not sure if its right

http://www.ece.cmu.edu/~koopman/stack_computers/chap3.html

+2
source

All Articles