Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

bytecode.h 334B

1234567891011121314151617181920212223242526
  1. #ifndef L2_BYTECODE_H
  2. #define L2_BYTECODE_H
  3. #include <stdint.h>
  4. typedef uint32_t l2_word;
  5. enum l2_opcode {
  6. L2_OP_PUSH,
  7. L2_OP_ADD,
  8. L2_OP_JUMP,
  9. L2_OP_CALL,
  10. L2_OP_RET,
  11. L2_OP_ALLOC_INTEGER,
  12. L2_OP_ALLOC_REAL,
  13. L2_OP_ALLOC_STRING,
  14. L2_OP_ALLOC_ARRAY,
  15. L2_OP_HALT,
  16. };
  17. struct l2_op {
  18. enum l2_opcode code;
  19. l2_word val;
  20. };
  21. #endif