Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 52 additions & 4 deletions include/jvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,36 @@ typedef enum {

LLOAD = 0x16,
FLOAD = 0x17,
// todo: test
DLOAD = 0x18,
FLOAD_0 =0X22,
FLOAD_1 =0X23,
FLOAD_2 =0X24,
FLOAD_3 =0X25,
DLOAD_0 = 0x26,
DLOAD_1 = 0x27,
DLOAD_2 = 0x28,
DLOAD_3 = 0x29,


// longs
LALOAD = 0x2e,
LAND = 0x7e,
LASTORE = 0x4f,
LCMP = 0x94,
LLOAD_0 = 0x1a,
LLOAD_1 = 0x1b,
LLOAD_2 = 0x1c,
LLOAD_3 = 0x1d,
LNEG = 0x74,
LADD = 0x61,
LSUB = 0x65,
LMUL = 0x69,
LDIV = 0x6d,
LREM = 0x71,

DREM = 0x73,


// Stores
ISTORE = 0x36,
// TODO: test
Expand All @@ -191,13 +213,11 @@ typedef enum {
LSTORE = 0x37,
FSTORE = 0x38,

// TODO: implement, prepare for 64 bits manipulation
DSTORE = 0x39,
DSTORE_0 = 0x47,
DSTORE_1 = 0x48,
DSTORE_2 = 0x49,
DSTORE_3 = 0x4a,


// Stack
POP = 0x57,
Expand All @@ -219,8 +239,36 @@ typedef enum {
// Method invocation
INVOKEDYNAMIC = 0xBA,

// Return

INSTANCEOF = 0xBF,

// branch todo
IFEQ = 0x99,
IFNE = 0x9A,
IFLT = 0x9B,
IFGE = 0x9C,
IFGT = 0x9D,
IFLE = 0x9E,
IF_ICMPEQ = 0x9F,

LDC2_W = 0x14,

DSUB = 0x67,
DMUL = 0x6B,
DDIV = 0x6F,
DNEG = 0x77,

DCMPL = 0X97,
DCMPG = 0X98,
D2F = 0X90,
D2I = 0X8E,
D2L = 0X8F,

INVOKESPECIAL = 0xB7,
CHECKCAST = 0xC0,

IRETURN = 0xB1,
RETURN = 0xb1,

} Bytecode;

Expand Down
Loading