add support for arithmetic operations

This commit is contained in:
Yuichi Nishiwaki
2013-10-15 21:29:07 +09:00
parent 2d4a5ed1ea
commit a5dcaba970
5 changed files with 69 additions and 5 deletions
+2 -1
View File
@@ -16,7 +16,8 @@ typedef struct {
pic_value *sp;
pic_value *stbase, *stend;
pic_value sDEFINE, sCONS, sADD;
pic_value sDEFINE, sCONS;
pic_value sADD, sSUB, sMUL, sDIV;
struct pic_env *global_env;
struct heap_page *heap;
+3
View File
@@ -10,6 +10,9 @@ enum pic_instruction {
OP_CALL,
OP_CONS,
OP_ADD,
OP_SUB,
OP_MUL,
OP_DIV,
OP_STOP
};