add: MUL, DIV instructions

This commit is contained in:
xamidev
2024-10-23 20:21:02 +02:00
parent ff5e9c07d7
commit fd0d05003e
5 changed files with 84 additions and 5 deletions

4
cpu.h
View File

@@ -23,6 +23,8 @@ typedef enum
// 0xB? -> Arithmetic operations
ADD = 0xB0,
SUB = 0xB1,
MUL = 0xB2,
DIV = 0xB3,
// 0xC? -> Bitwise operations
OR = 0xC0,
@@ -57,4 +59,4 @@ typedef struct
int flag_clear_delay;
} CPU_t;
#endif
#endif