Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Both sides next revision
avm:specs [2015/10/21 10:34]
ptm
avm:specs [2021/09/23 08:51] (current)
Line 27: Line 27:
   -     SELECT(0x0090),     // select instruction //   -     SELECT(0x0090),     // select instruction //
   -     START(0x00a0);      // start instruction //   -     START(0x00a0);      // start instruction //
 +  -     ADD(0x1000),        // add operands //
 +  -     SUB(0x1001),        // subtract operands //
 +  -     MUL(0x1002),        // multiply operands //
 +  -     DIV(0x1003),        // divide operands //
 +  -     HEAD(0x1004)        // get head of a list //
 +  -     TAIL(0x1005)        // get tail of a list //
 +  -     INS(0x1006),        // insert element in list at the beginning //
 +  -     APP(0x1007),        // append element to list //
 +  -     AND(0x1008),        // logical and //
 +  -     OR(0x1009),         // logical or //
 +  -     NOT(0x100a);        // logical not //
 +====== Bytecode format ======
  
  
- +===== Header and complete code ===== 
-<ditaa round noedgesep right+<ditaa round noedgesep center
-    +--------+   +-------+    +-------+ ++------------------------+ 
-           --+ ditaa +--> |       | ++     magic "AVM "       + 
-     Text  |   +-------+    |diagram| ++------------------------+ 
-    |Document|   |!magic!|    |       | ++      version nr        
-        {d}|    c478 |    |       | ++------------------------+ 
-    +---+----+   +-------+    +-------+ ++  funcion block offset 
-        :                         ^ ++------------------------+ 
-        |       Lots of work      : ++      agent count       + 
-        +-------------------------+++------------------------+ 
 +  agent table offset   + 
 ++------------------------+ 
 +  crypto block offset  + 
 ++------------------------
 ++------------------------+ 
 ++     function block     + 
 ++------------------------+ 
 ++------------------------+ 
 +     agent table       + 
 ++------------------------+ 
 ++------------------------+ 
 ++     crypto block       + 
 ++------------------------+
 </ditaa> </ditaa>
 +