Added some instructions for cmp

This commit is contained in:
nilspolek 2024-01-23 15:47:43 +01:00
parent 3a046d6f89
commit 69b4a1afb4
7 changed files with 10 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,6 +1,6 @@
#ifndef CONSTS #ifndef CONSTS
#define CONSTS #define CONSTS
#define VERSION 8 #define VERSION 6
#endif /* ifndef CONSTS #endif /* ifndef CONSTS
#define CONSTS #define CONSTS

View File

@ -39,5 +39,14 @@
#define PUSHR 29 #define PUSHR 29
#define POPR 30 #define POPR 30
#define DUP 31 #define DUP 31
#define GETF 33
#define PUTF 34
#define NEWA 35
#define GETFA 36
#define PUTFA 37
#define GETSZ 38
#define PUSHN 39
#define REFEQ 40
#define REFNE 41
#endif /* ifndef INSREUKTION */ #endif /* ifndef INSREUKTION */

1
njvm.c
View File

@ -2,7 +2,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "instruktion.c" #include "instruktion.c"
#include "code.c"
#include "stack.c" #include "stack.c"
#include "program.c" #include "program.c"
#include "codeReader.c" #include "codeReader.c"

BIN
njvm.o

Binary file not shown.

BIN
support.o

Binary file not shown.