Skip to content

Instantly share code, notes, and snippets.

@Elletra
Created November 27, 2022 01:49
Show Gist options
  • Save Elletra/07972c781c8637a242c590708a7d4761 to your computer and use it in GitHub Desktop.
Save Elletra/07972c781c8637a242c590708a7d4761 to your computer and use it in GitHub Desktop.
Forgettable Dungeon opcodes
OP_FUNC_DECL = 0
OP_CREATE_OBJECT = 1
UNUSED1 = 2
UNUSED2 = 3
OP_ADD_OBJECT = 4
OP_END_OBJECT = 5
OP_JMPIFFNOT = 6
OP_JMPIFNOT = 7
OP_JMPIFF = 8
OP_CMPLT = 9
OP_CMPLE = 10
OP_JMPIF = 11
OP_JMPIFNOT_NP = 12
OP_JMPIF_NP = 13
OP_JMP = 14
OP_CMPEQ = 15
OP_CMPGR = 16
OP_CMPGE = 17
OP_RETURN = 18
OP_XOR = 19
OP_MOD = 20
OP_BITAND = 21
OP_BITOR = 22
OP_CMPNE = 23
OP_NOT = 24
OP_NOTF = 25
OP_ONESCOMPLEMENT = 26
OP_SHR = 27
OP_SHL = 28
OP_AND = 29
OP_OR = 30
OP_ADD = 31
OP_SUB = 32
OP_MUL = 33
OP_DIV = 34
OP_NEG = 35
OP_SETCURVAR = 36
OP_SETCURVAR_CREATE = 37
OP_SETCURVAR_ARRAY = 38
OP_SETCURVAR_ARRAY_CREATE = 39
OP_LOADVAR_UINT = 40
OP_LOADVAR_FLT = 41
OP_LOADVAR_STR = 42
OP_SAVEVAR_UINT = 43
OP_SAVEVAR_FLT = 44
OP_SAVEVAR_STR = 45
OP_SETCUROBJECT = 46
OP_SETCUROBJECT_NEW = 47
OP_SETCURFIELD = 48
OP_SETCURFIELD_ARRAY = 49
OP_LOADFIELD_UINT = 50
OP_LOADFIELD_FLT = 51
OP_LOADFIELD_STR = 52
OP_SAVEFIELD_UINT = 53
OP_SAVEFIELD_FLT = 54
OP_SAVEFIELD_STR = 55
OP_STR_TO_UINT = 56
OP_STR_TO_FLT = 57
OP_STR_TO_NONE_2 = 58
OP_FLT_TO_UINT = 59
OP_FLT_TO_STR = 60
OP_FLT_TO_NONE = 61
OP_UINT_TO_FLT = 62
OP_UINT_TO_STR = 63
OP_UINT_TO_NONE = 64
OP_LOADIMMED_UINT = 65
OP_LOADIMMED_FLT = 66
OP_TAG_TO_STR = 67
OP_LOADIMMED_STR = 68
OP_LOADIMMED_IDENT = 69
OP_CALLFUNC_RESOLVE = 70
OP_CALLFUNC = 71
OP_STR_TO_NONE = 72
OP_ADVANCE_STR = 73
OP_ADVANCE_STR_APPENDCHAR = 74
OP_ADVANCE_STR_COMMA = 75
OP_ADVANCE_STR_NUL = 76
OP_REWIND_STR = 77
OP_TERMINATE_REWIND_STR = 78
OP_COMPARE_STR = 79
OP_PUSH = 80
OP_PUSH_FRAME = 81
OP_BREAK = 82
OP_INVALID = 83
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment