Implement LD r, $nn

This commit is contained in:
2021-02-20 15:56:22 +00:00
parent 7327ecffb9
commit 67361093ec
5 changed files with 41 additions and 19 deletions

View File

@@ -48,7 +48,8 @@ package cpu_pkg;
ALU_OP_XOR = 4'h05,
ALU_OP_OR = 4'h06,
ALU_OP_CP = 4'h07,
ALU_OP_BIT = 4'h08
ALU_OP_BIT = 4'h08,
ALU_OP_NOP = 4'h09
} alu_op_t;
typedef enum logic [1:0] {
@@ -66,8 +67,10 @@ package cpu_pkg;
} op_src_t;
typedef enum {
OP_DEST_A,
OP_DEST_REG8,
OP_DEST_REG16
OP_DEST_REG16,
OP_DEST_MEMORY
} op_dest_t;
typedef enum {