opcodes.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #ifndef __OPCODES_H
  2. #define __OPCODES_H
  3. #define OPCODE_NOP 0x00
  4. #define OPCODE_PUSH 0x01
  5. #define OPCODE_POPI 0x02
  6. #define OPCODE_POP 0x03
  7. #define OPCODE_CMPEQ 0x08
  8. #define OPCODE_CMPNE 0x09
  9. #define OPCODE_CMPA 0x0A
  10. #define OPCODE_CMPAE 0x0B
  11. #define OPCODE_CMPB 0x0C
  12. #define OPCODE_CMPBE 0x0D
  13. #define OPCODE_JIZ 0x10
  14. #define OPCODE_JNZ 0x11
  15. #define OPCODE_JMP 0x12
  16. #define OPCODE_CALLM 0x18
  17. #define OPCODE_CALLC 0x19
  18. #define OPCODE_RET 0x20
  19. #define OPCODE_RETF 0x21
  20. #define OPCODE_CMPLT 0x28
  21. #define OPCODE_SET 0x30
  22. #define OPCODE_INCS 0x38
  23. #define OPCODE_DECS 0x39
  24. #define OPCODE_INCP 0x3A
  25. #define OPCODE_DECP 0x3B
  26. #define OPCODE_ADD 0x40
  27. #define OPCODE_SUB 0x41
  28. #define OPCODE_MUL 0x42
  29. #define OPCODE_DIV 0x43
  30. #define OPCODE_MOD 0x44
  31. #define OPCODE_AND 0x48
  32. #define OPCODE_OR 0x49
  33. #define OPCODE_NOT 0x4A
  34. #define OPCODE_BNOT 0x4B
  35. #define OPCODE_NEG 0x4C
  36. #define OPCODE_XOR 0x4D
  37. #define OPCODE_LAND 0x50
  38. #define OPCODE_LOR 0x51
  39. #define OPCODE_SHL 0x58
  40. #define OPCODE_SHR 0x59
  41. #define OPCODE_NEW 0x60
  42. #define OPCODE_DELETE 0x61
  43. #define OPCODE_UMV 0x68
  44. #define OPCODE_UMC 0x69
  45. #define OPCODE_CALLM2 0x70
  46. #endif