No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tab_instruc.h 433B

123456789101112131415161718192021
  1. #define MAXTAILLE 1024
  2. #include <stdlib.h>
  3. #include <string.h>
  4. #include <stdio.h>
  5. enum opcode_t {ADD,MUL,SOU,DIV,COP,AFC,JMP,JMF,INF,SUP,EQU,PRI,GET,MOV};
  6. struct operation_t {
  7. enum opcode_t opcode;
  8. int arg1;
  9. int arg2;
  10. int arg3;
  11. };
  12. extern struct operation_t tab_op[MAXTAILLE];
  13. void add_operation(enum opcode_t opcode, int arg1, int arg2, int arg3);
  14. void create_asm();
  15. int get_current_index();
  16. void patch(int index, int arg);