Added some instructions for cmp
This commit is contained in:
parent
eba9656631
commit
3a046d6f89
1
Makefile
1
Makefile
@ -1,5 +1,6 @@
|
||||
# Makefile for a simple C program
|
||||
build:
|
||||
cd ./bigint; make; cd ..
|
||||
gcc -g -Wall -Ibigint/build/include -o support.o -c support.c
|
||||
gcc -g -Wall -Ibigint/build/include -o njvm.o -c njvm.c
|
||||
gcc -g -Wall -Lbigint/build/lib -o njvm njvm.o support.o -lbigint
|
||||
|
||||
@ -2,8 +2,10 @@
|
||||
#define INSREUKTION
|
||||
|
||||
#define IMMEDIATE(x) ((x) & 0x00FFFFFF)
|
||||
|
||||
#define MSB (1 << (8 * sizeof(unsigned int) - 1))
|
||||
#define IS_PRIMITIVE(objRef) (((objRef)->size & MSB) == 0)
|
||||
#define SIGN_EXTEND(i) ((i) & 0x00800000 ? (i) | 0xFF000000 : (i))
|
||||
#define GET_ELEMENT_COUNT(objRef) ((objRef)->size & ~MSB)
|
||||
|
||||
#define HALT 0
|
||||
#define PUSHC 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user