Advertisement
Guest User

defs.h

a guest
Nov 27th, 2022
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | Source Code | 0 0
  1. #ifndef DEFS_H
  2. #define DEFS_H
  3.  
  4. #include <stdint.h>
  5.  
  6. enum { Mov, Add, Sub, Mul, Div, Mod, Not, And, Or, Xor, BNot, BAnd, BOr, BXor, Jmp, JmpIf, Read, Write };
  7. enum { Const, Reg, Mem };
  8.  
  9. typedef struct
  10. {
  11.   uint8_t opCode, dstType, srcType;
  12.   uint16_t dst, src;
  13. }
  14. command_t;
  15.  
  16. #endif
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement