Implemented LDD (HL), A

This commit is contained in:
2021-02-18 23:22:26 +00:00
parent 3e92cf5eec
commit 8f0b8d3a48
7 changed files with 92 additions and 22 deletions

View File

@@ -40,15 +40,22 @@ package cpu_pkg;
ALU_OP_CP = 3'h07
} alu_op_t;
typedef enum logic [1:0] {
ALU16_OP_ADD = 2'h00,
ALU16_INC = 2'h01,
ALU16_DEC = 2'h02
} alu16_op_t;
typedef enum {
OP_SRC_A,
OP_SRC_REG8,
OP_SRC_OPERAND16
OP_SRC_OPERAND16,
OP_SRC_REG16
} op_src_t;
typedef enum {
OP_DEST_A,
OP_DEST_R16
OP_DEST_REG16
} op_dest_t;
typedef enum {