[virtmach] instruction set

thaddaeus.frogley@creaturelabs.com thaddaeus.frogley@creaturelabs.com
Tue, 18 Apr 2000 17:19:30 +0100


Hi,

Quick question.  Don't feel obliged to justify your answer.

When trying to create an instruction set for a 3 address machine, assuming
that the following already exist:

  jump target
  jump-if-zero a,target
  jump-if-non-zero a,target

Would you choose:

a)  
  jump-if-equal a,b,target
  jump-if-less a,b,target
  etc

Or

b)
  test-if-equal a,b,result
  test-if-less a,b,result
  etc

Or 

c)
  both.  

Given that space and speed are both an issue, and the 256 instruction limit
on bytecode is looking decidedly close.  :)

Thad